Skip to content

Commit

Permalink
move old config file out of the way so it won't be mistaken for the r…
Browse files Browse the repository at this point in the history
…eal one

git-svn-id: https://xpra.org/svn/Xpra/trunk@14464 3bb7dfac-3a0b-4e04-842a-767bc560f471
  • Loading branch information
totaam committed Nov 19, 2016
1 parent 9ae4d2e commit 81f5b36
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/win32/xpra.iss
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ end;
procedure PostInstall();
var
cert, config, args, cmd: string;
cert, config, saved_config, args, cmd: string;
ResultCode: integer;
begin
cert := ExpandConstant('{commonappdata}\Xpra\ssl-cert.pem');
Expand All @@ -138,4 +138,11 @@ begin
cmd := ExpandConstant('{app}\OpenSSL.exe');
Exec(cmd, args, '', SW_HIDE, ewWaitUntilTerminated, ResultCode);
end;
// move old config file:
config := ExpandConstant('{app}\xpra.conf');
saved_config := ExpandConstant('{app}\etc\xpra.conf.bak');
if (FileExists(config)) then
begin
RenameFile(config, saved_config);
end;
end;

0 comments on commit 81f5b36

Please sign in to comment.