From f978b3e833c06b914fbabcb18514d81af941725f Mon Sep 17 00:00:00 2001 From: Arkadiy Paronyan Date: Sat, 5 Nov 2016 15:51:14 +0100 Subject: [PATCH] Set passive mode for first run only (#3214) (#3216) Former-commit-id: 17f57c6b70bb2ec2bfbbb0f6721057ee4a5e349a --- nsis/installer.nsi | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/nsis/installer.nsi b/nsis/installer.nsi index 5f7c98f60..747b85dc0 100644 --- a/nsis/installer.nsi +++ b/nsis/installer.nsi @@ -11,7 +11,8 @@ !define VERSIONMAJOR 1 !define VERSIONMINOR 4 !define VERSIONBUILD 0 -!define ARGS "--warp --mode=passive" +!define ARGS "--warp" +!define FIRST_START_ARGS "--warp --mode=passive" !addplugindir .\ @@ -133,7 +134,7 @@ section "install" WriteRegDWORD HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\${COMPANYNAME} ${APPNAME}" "EstimatedSize" ${INSTALLSIZE} WriteRegStr HKEY_LOCAL_MACHINE "Software\Microsoft\Windows\CurrentVersion\Run" ${APPNAME} "$INSTDIR\ptray.exe ${ARGS}" - ExecShell "" "$INSTDIR\ptray.exe" "${ARGS}" + ExecShell "" "$INSTDIR\ptray.exe" "${FIRST_START_ARGS}" sectionEnd # Uninstaller