Add Start menu shortcuts to wpa_gui and uninstall
In addition, make uninstall use confirm dialog to avoid accidental uninstalls.
This commit is contained in:
parent
d6e0ce9ac8
commit
45832ddd4d
1 changed files with 14 additions and 0 deletions
|
@ -46,10 +46,20 @@ section
|
||||||
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\wpa_supplicant" \
|
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\wpa_supplicant" \
|
||||||
"UninstallString" "$INSTDIR\uninstall.exe"
|
"UninstallString" "$INSTDIR\uninstall.exe"
|
||||||
|
|
||||||
|
CreateDirectory "$SMPROGRAMS\wpa_supplicant"
|
||||||
|
CreateShortCut "$SMPROGRAMS\wpa_supplicant\wpa_gui.lnk" "$INSTDIR\wpa_gui.exe"
|
||||||
|
CreateShortCut "$SMPROGRAMS\wpa_supplicant\Uninstall.lnk" "$INSTDIR\uninstall.exe"
|
||||||
|
|
||||||
ExecWait "$INSTDIR\wpasvc.exe reg"
|
ExecWait "$INSTDIR\wpasvc.exe reg"
|
||||||
sectionEnd
|
sectionEnd
|
||||||
|
|
||||||
|
|
||||||
|
Function un.onInit
|
||||||
|
MessageBox MB_YESNO "This will uninstall wpa_supplicant. Continue?" IDYES NoAbort
|
||||||
|
Abort
|
||||||
|
NoAbort:
|
||||||
|
FunctionEnd
|
||||||
|
|
||||||
section "uninstall"
|
section "uninstall"
|
||||||
DeleteRegKey HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\wpa_supplicant"
|
DeleteRegKey HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\wpa_supplicant"
|
||||||
delete "$INSTDIR\uninstall.exe"
|
delete "$INSTDIR\uninstall.exe"
|
||||||
|
@ -76,4 +86,8 @@ section "uninstall"
|
||||||
rmdir "$INSTDIR\Prerequisites"
|
rmdir "$INSTDIR\Prerequisites"
|
||||||
|
|
||||||
rmdir "$INSTDIR"
|
rmdir "$INSTDIR"
|
||||||
|
|
||||||
|
delete "$SMPROGRAMS\wpa_supplicant\wpa_gui.lnk"
|
||||||
|
delete "$SMPROGRAMS\wpa_supplicant\Uninstall.lnk"
|
||||||
|
rmdir "$SMPROGRAMS\wpa_supplicant"
|
||||||
sectionEnd
|
sectionEnd
|
||||||
|
|
Loading…
Reference in a new issue