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:
Jouni Malinen 2008-12-21 19:50:39 +02:00
parent d6e0ce9ac8
commit 45832ddd4d

View file

@ -46,10 +46,20 @@ section
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\wpa_supplicant" \
"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"
sectionEnd
Function un.onInit
MessageBox MB_YESNO "This will uninstall wpa_supplicant. Continue?" IDYES NoAbort
Abort
NoAbort:
FunctionEnd
section "uninstall"
DeleteRegKey HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\wpa_supplicant"
delete "$INSTDIR\uninstall.exe"
@ -76,4 +86,8 @@ section "uninstall"
rmdir "$INSTDIR\Prerequisites"
rmdir "$INSTDIR"
delete "$SMPROGRAMS\wpa_supplicant\wpa_gui.lnk"
delete "$SMPROGRAMS\wpa_supplicant\Uninstall.lnk"
rmdir "$SMPROGRAMS\wpa_supplicant"
sectionEnd