From 81f5b36914eb84fbe4ebe90c73f4ec40107b0d6d Mon Sep 17 00:00:00 2001 From: Antoine Martin Date: Sat, 19 Nov 2016 18:15:10 +0000 Subject: [PATCH] move old config file out of the way so it won't be mistaken for the real one git-svn-id: https://xpra.org/svn/Xpra/trunk@14464 3bb7dfac-3a0b-4e04-842a-767bc560f471 --- src/win32/xpra.iss | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/win32/xpra.iss b/src/win32/xpra.iss index 9a24c78eb1..6aafa80245 100644 --- a/src/win32/xpra.iss +++ b/src/win32/xpra.iss @@ -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'); @@ -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; \ No newline at end of file