aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2008-12-21 17:50:39 (GMT)
committerJouni Malinen <j@w1.fi>2008-12-21 17:50:39 (GMT)
commit45832ddd4db7cfeceaf71d953f75c9df9ddade56 (patch)
tree2226fc144d268e53ad9a3aa37a4245a28cce912d /wpa_supplicant
parentd6e0ce9ac8d77fcf0646b8cb9fbebd193eb4c3fd (diff)
downloadhostap-06-45832ddd4db7cfeceaf71d953f75c9df9ddade56.zip
hostap-06-45832ddd4db7cfeceaf71d953f75c9df9ddade56.tar.gz
hostap-06-45832ddd4db7cfeceaf71d953f75c9df9ddade56.tar.bz2
Add Start menu shortcuts to wpa_gui and uninstall
In addition, make uninstall use confirm dialog to avoid accidental uninstalls.
Diffstat (limited to 'wpa_supplicant')
-rw-r--r--wpa_supplicant/wpa_supplicant.nsi14
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