Skip to content
This repository has been archived by the owner on Nov 6, 2020. It is now read-only.

Commit

Permalink
Set passive mode for first run only (#3214)
Browse files Browse the repository at this point in the history
  • Loading branch information
arkpar authored and gavofyork committed Nov 5, 2016

Unverified

The signing certificate or its chain could not be verified.
1 parent 2cb41f9 commit 77136b8
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions nsis/installer.nsi
Original file line number Diff line number Diff line change
@@ -11,7 +11,8 @@
!define VERSIONMAJOR 1
!define VERSIONMINOR 5
!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

0 comments on commit 77136b8

Please sign in to comment.