From f7534ccb6c11231d5b2c04b2e4197cf30f5da12a Mon Sep 17 00:00:00 2001 From: Ruben Pollan Date: Fri, 13 Jul 2018 18:56:07 +0200 Subject: [pkg] make the tap installer silent - Resolves: #4 --- win/template.nsi | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'win') diff --git a/win/template.nsi b/win/template.nsi index df36b44..fefbdf2 100755 --- a/win/template.nsi +++ b/win/template.nsi @@ -68,18 +68,13 @@ Section "InstallService" ExecWait '"$INSTDIR\nssm.exe" install $app_name_lower-helper "$INSTDIR\bitmask_helper.exe"' ExecWait '"$INSTDIR\nssm.exe" set $app_name_lower-helper AppDirectory "$INSTDIR"' ExecWait '"$INSTDIR\nssm.exe" start $app_name_lower-helper' - - ; why are these here? - Delete "C:\$app_name_lower.ico" - Delete "C:\$app_name_lower.png" SectionEnd Section /o "TAP Virtual Ethernet Adapter" SecTAP ; Adapted from the windows nsis installer from OpenVPN (openvpn-build repo). DetailPrint "Installing TAP (may need confirmation)..." - ExecWait '"$INSTDIR\tap-windows.exe" /SELECT_UTILITIES=1' - ;Making it explicit for now. It looks like the /S flag is "silent", isn't it? - ;ExecWait '"$INSTDIR\tap-windows.exe" /S /SELECT_UTILITIES=1' + ; The /S flag make it "silent", remove it if you want it explicit + ExecWait '"$INSTDIR\tap-windows.exe" /S /SELECT_UTILITIES=1' Pop $R0 # return value/error/timeout WriteRegStr HKLM "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\$app_name" "tap" "installed" DetailPrint "TAP installed!" -- cgit v1.2.3