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"
52 DeleteRegKey HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\wpa_supplicant"
53 delete "$INSTDIR\uninstall.exe"
55 delete "$INSTDIR\wpa_gui.exe"
56 delete "$INSTDIR\wpa_cli.exe"
57 delete "$INSTDIR\COPYING"
58 delete "$INSTDIR\README"
59 delete "$INSTDIR\README-Windows.txt"
60 delete "$INSTDIR\win_example.reg"
61 delete "$INSTDIR\win_if_list.exe"
62 delete "$INSTDIR\wpa_passphrase.exe"
63 delete "$INSTDIR\wpa_supplicant.conf"
64 delete "$INSTDIR\wpa_supplicant.exe"
65 delete "$INSTDIR\wpasvc.exe"
67 delete "$INSTDIR\mingwm10.dll"
68 delete "$INSTDIR\QtCore4.dll"
69 delete "$INSTDIR\QtGui4.dll"
71 delete "$INSTDIR\Prerequisites\WinPcap_4_0_2.exe"
72 rmdir "$INSTDIR\Prerequisites"