Register wpasvc service on install and unregister on uninstall
authorJouni Malinen <j@w1.fi>
Sat, 20 Dec 2008 18:49:58 +0000 (20:49 +0200)
committerJouni Malinen <j@w1.fi>
Sat, 20 Dec 2008 18:49:58 +0000 (20:49 +0200)
wpa_supplicant/wpa_supplicant.nsi

index 604f711..27761bd 100644 (file)
@@ -45,6 +45,8 @@ section
                "DisplayName" "wpa_supplicant"
 WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\wpa_supplicant" \
                "UninstallString" "$INSTDIR\uninstall.exe"
+
+       ExecWait "$INSTDIR\wpasvc.exe reg"
 sectionEnd
 
 
@@ -52,6 +54,8 @@ section "uninstall"
        DeleteRegKey HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\wpa_supplicant"
        delete "$INSTDIR\uninstall.exe"
 
+       ExecWait "$INSTDIR\wpasvc.exe unreg"
+
        delete "$INSTDIR\wpa_gui.exe"
        delete "$INSTDIR\wpa_cli.exe"
        delete "$INSTDIR\COPYING"