1 !define PRODUCT_NAME "wpa_supplicant"
2 !define PRODUCT_VERSION "@WPAVER@"
3 !define PRODUCT_PUBLISHER "Jouni Malinen"
5 Name "${PRODUCT_NAME} ${PRODUCT_VERSION}"
6 outfile "../wpa_supplicant-@WPAVER@.exe"
8 installDir "$PROGRAMFILES\wpa_supplicant"
13 section -Prerequisites
14 SetOutPath $INSTDIR\Prerequisites
15 MessageBox MB_YESNO "Install WinPcap?" /SD IDYES IDNO endWinPcap
16 File "/opt/Qt-Win/files/WinPcap_4_0_2.exe"
17 ExecWait "$INSTDIR\Prerequisites\WinPcap_4_0_2.exe"
30 File README-Windows.txt
33 File wpa_passphrase.exe
34 File wpa_supplicant.conf
35 File wpa_supplicant.exe
38 File /opt/Qt-Win/files/mingwm10.dll
39 File /opt/Qt-Win/files/QtCore4.dll
40 File /opt/Qt-Win/files/QtGui4.dll
42 writeUninstaller "$INSTDIR\uninstall.exe"
44 WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\wpa_supplicant" \
45 "DisplayName" "wpa_supplicant"
46 WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\wpa_supplicant" \
47 "UninstallString" "$INSTDIR\uninstall.exe"
49 CreateDirectory "$SMPROGRAMS\wpa_supplicant"
50 CreateShortCut "$SMPROGRAMS\wpa_supplicant\wpa_gui.lnk" "$INSTDIR\wpa_gui.exe"
51 CreateShortCut "$SMPROGRAMS\wpa_supplicant\Uninstall.lnk" "$INSTDIR\uninstall.exe"
53 ExecWait "$INSTDIR\wpasvc.exe reg"
58 MessageBox MB_YESNO "This will uninstall wpa_supplicant. Continue?" IDYES NoAbort
64 DeleteRegKey HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\wpa_supplicant"
65 delete "$INSTDIR\uninstall.exe"
67 ExecWait "$INSTDIR\wpasvc.exe unreg"
69 delete "$INSTDIR\wpa_gui.exe"
70 delete "$INSTDIR\wpa_cli.exe"
71 delete "$INSTDIR\COPYING"
72 delete "$INSTDIR\README"
73 delete "$INSTDIR\README-Windows.txt"
74 delete "$INSTDIR\win_example.reg"
75 delete "$INSTDIR\win_if_list.exe"
76 delete "$INSTDIR\wpa_passphrase.exe"
77 delete "$INSTDIR\wpa_supplicant.conf"
78 delete "$INSTDIR\wpa_supplicant.exe"
79 delete "$INSTDIR\wpasvc.exe"
81 delete "$INSTDIR\mingwm10.dll"
82 delete "$INSTDIR\QtCore4.dll"
83 delete "$INSTDIR\QtGui4.dll"
85 delete "$INSTDIR\Prerequisites\WinPcap_4_0_2.exe"
86 rmdir "$INSTDIR\Prerequisites"
90 delete "$SMPROGRAMS\wpa_supplicant\wpa_gui.lnk"
91 delete "$SMPROGRAMS\wpa_supplicant\Uninstall.lnk"
92 rmdir "$SMPROGRAMS\wpa_supplicant"