Skip to content
Snippets Groups Projects
Unverified Commit 3c20f6ea authored by Kali Kaneko's avatar Kali Kaneko
Browse files

[pkg] change installer to use new windows service

parent 4ab2fcc1
No related branches found
No related tags found
No related merge requests found
...@@ -56,8 +56,6 @@ Section "InstallFiles" ...@@ -56,8 +56,6 @@ Section "InstallFiles"
Abort Abort
noError: noError:
ExecShellWait "runas" "$INSTDIR\nssm.exe" 'stop $applicationNameLower-helper'
ExecShellWait "runas" "$INSTDIR\nssm.exe" 'remove $applicationNameLower-helper confirm'
SetOutPath $INSTDIR SetOutPath $INSTDIR
WriteUninstaller $INSTDIR\uninstall.exe WriteUninstaller $INSTDIR\uninstall.exe
...@@ -78,7 +76,6 @@ Section "InstallFiles" ...@@ -78,7 +76,6 @@ Section "InstallFiles"
createShortCut "$SMPROGRAMS\$applicationName\$applicationName.lnk" "$INSTDIR\bitmask-vpn.exe" "" "$INSTDIR\icon.ico" createShortCut "$SMPROGRAMS\$applicationName\$applicationName.lnk" "$INSTDIR\bitmask-vpn.exe" "" "$INSTDIR\icon.ico"
File "readme.txt" File "readme.txt"
File "..\staging\nssm.exe"
File "/oname=icon.ico" "..\assets\icon.ico" File "/oname=icon.ico" "..\assets\icon.ico"
$extra_install_files $extra_install_files
...@@ -86,10 +83,8 @@ Section "InstallFiles" ...@@ -86,10 +83,8 @@ Section "InstallFiles"
SectionEnd SectionEnd
Section "InstallService" Section "InstallService"
; Easy service management thanks to nssm ExecWait '"$INSTDIR\bitmask_helper.exe" install'
ExecWait '"$INSTDIR\nssm.exe" install $applicationNameLower-helper "$INSTDIR\bitmask_helper.exe"' ExecWait '"$INSTDIR\bitmask_helper.exe" start'
ExecWait '"$INSTDIR\nssm.exe" set $applicationNameLower-helper AppDirectory "$INSTDIR"'
ExecWait '"$INSTDIR\nssm.exe" start $applicationNameLower-helper'
SectionEnd SectionEnd
Section /o "TAP Virtual Ethernet Adapter" SecTAP Section /o "TAP Virtual Ethernet Adapter" SecTAP
...@@ -103,11 +98,9 @@ Section /o "TAP Virtual Ethernet Adapter" SecTAP ...@@ -103,11 +98,9 @@ Section /o "TAP Virtual Ethernet Adapter" SecTAP
SectionEnd SectionEnd
Section "Uninstall" Section "Uninstall"
ExecShellWait "runas" "$INSTDIR\nssm.exe" 'stop $applicationNameLower-helper' ExecShellWait "runas" "$INSTDIR\bitmask_helper.exe" 'remove'
ExecShellWait "runas" "$INSTDIR\nssm.exe" 'remove $applicationNameLower-helper confirm'
Delete $INSTDIR\readme.txt Delete $INSTDIR\readme.txt
Delete $INSTDIR\nssm.exe
Delete $INSTDIR\helper.log Delete $INSTDIR\helper.log
Delete "$SMPROGRAMS\$applicationName\$applicationName.lnk" Delete "$SMPROGRAMS\$applicationName\$applicationName.lnk"
RMDir "$SMPROGRAMS\$applicationName\" RMDir "$SMPROGRAMS\$applicationName\"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment