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 WriteRegDWORD HKLM "Software\wpa_supplicant" "debug_level" 0
43 WriteRegDWORD HKLM "Software\wpa_supplicant" "debug_show_keys" 0
44 WriteRegDWORD HKLM "Software\wpa_supplicant" "debug_timestamp" 0
45 WriteRegDWORD HKLM "Software\wpa_supplicant" "debug_use_file" 0
47 WriteRegDWORD HKLM "Software\wpa_supplicant\configs\default" "ap_scan" 2
48 WriteRegDWORD HKLM "Software\wpa_supplicant\configs\default" "update_config" 1
49 WriteRegDWORD HKLM "Software\wpa_supplicant\configs\default\networks" "dummy" 1
50 DeleteRegValue HKLM "Software\wpa_supplicant\configs\default\networks" "dummy"
52 WriteRegDWORD HKLM "Software\wpa_supplicant\interfaces" "dummy" 1
53 DeleteRegValue HKLM "Software\wpa_supplicant\interfaces" "dummy"
55 writeUninstaller
"$INSTDIR\uninstall.exe"
57 WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\wpa_supplicant" \
58 "DisplayName" "wpa_supplicant"
59 WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\wpa_supplicant" \
60 "UninstallString" "$INSTDIR\uninstall.exe"
62 CreateDirectory "$SMPROGRAMS\wpa_supplicant"
63 CreateShortCut "$SMPROGRAMS\wpa_supplicant\wpa_gui.lnk" "$INSTDIR\wpa_gui.exe"
64 CreateShortCut "$SMPROGRAMS\wpa_supplicant\Uninstall.lnk" "$INSTDIR\uninstall.exe"
66 ExecWait "$INSTDIR\wpasvc.exe reg"
71 MessageBox MB_YESNO "This will uninstall wpa_supplicant. Continue?" IDYES NoAbort
77 DeleteRegKey HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\wpa_supplicant"
78 delete
"$INSTDIR\uninstall.exe"
80 ExecWait "$INSTDIR\wpasvc.exe unreg"
82 DeleteRegKey HKLM "Software\wpa_supplicant"
84 delete
"$INSTDIR\wpa_gui.exe"
85 delete
"$INSTDIR\wpa_cli.exe"
86 delete
"$INSTDIR\COPYING"
87 delete
"$INSTDIR\README"
88 delete
"$INSTDIR\README-Windows.txt"
89 delete
"$INSTDIR\win_example.reg"
90 delete
"$INSTDIR\win_if_list.exe"
91 delete
"$INSTDIR\wpa_passphrase.exe"
92 delete
"$INSTDIR\wpa_supplicant.conf"
93 delete
"$INSTDIR\wpa_supplicant.exe"
94 delete
"$INSTDIR\wpasvc.exe"
96 delete
"$INSTDIR\mingwm10.dll"
97 delete
"$INSTDIR\QtCore4.dll"
98 delete
"$INSTDIR\QtGui4.dll"
100 delete
"$INSTDIR\Prerequisites\WinPcap_4_0_2.exe"
101 rmdir
"$INSTDIR\Prerequisites"
105 delete
"$SMPROGRAMS\wpa_supplicant\wpa_gui.lnk"
106 delete
"$SMPROGRAMS\wpa_supplicant\Uninstall.lnk"
107 rmdir
"$SMPROGRAMS\wpa_supplicant"