diff options
author | Jouni Malinen <j@w1.fi> | 2008-12-21 19:50:39 +0200 |
---|---|---|
committer | Jouni Malinen <j@w1.fi> | 2008-12-21 19:50:39 +0200 |
commit | 45832ddd4db7cfeceaf71d953f75c9df9ddade56 (patch) | |
tree | 2226fc144d268e53ad9a3aa37a4245a28cce912d | |
parent | d6e0ce9ac8d77fcf0646b8cb9fbebd193eb4c3fd (diff) | |
download | external_wpa_supplicant_8_ti-45832ddd4db7cfeceaf71d953f75c9df9ddade56.zip external_wpa_supplicant_8_ti-45832ddd4db7cfeceaf71d953f75c9df9ddade56.tar.gz external_wpa_supplicant_8_ti-45832ddd4db7cfeceaf71d953f75c9df9ddade56.tar.bz2 |
Add Start menu shortcuts to wpa_gui and uninstall
In addition, make uninstall use confirm dialog to avoid accidental
uninstalls.
-rw-r--r-- | wpa_supplicant/wpa_supplicant.nsi | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/wpa_supplicant/wpa_supplicant.nsi b/wpa_supplicant/wpa_supplicant.nsi index 27761bd..d5eb0dd 100644 --- a/wpa_supplicant/wpa_supplicant.nsi +++ b/wpa_supplicant/wpa_supplicant.nsi @@ -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 |