Parcourir la source

Register wpasvc service on install and unregister on uninstall

Jouni Malinen il y a 16 ans
Parent
commit
ed8db67247
1 fichiers modifiés avec 4 ajouts et 0 suppressions
  1. 4 0
      wpa_supplicant/wpa_supplicant.nsi

+ 4 - 0
wpa_supplicant/wpa_supplicant.nsi

@@ -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"