]> git.ipfire.org Git - thirdparty/hostap.git/blob - wpa_supplicant/wpa_supplicant.nsi
Add flag indicating which global configuration parameters have changed
[thirdparty/hostap.git] / wpa_supplicant / wpa_supplicant.nsi
1 !define PRODUCT_NAME "wpa_supplicant"
2 !define PRODUCT_VERSION "@WPAVER@"
3 !define PRODUCT_PUBLISHER "Jouni Malinen"
4
5 Name "${PRODUCT_NAME} ${PRODUCT_VERSION}"
6 outfile "../wpa_supplicant-@WPAVER@.exe"
7
8 installDir "$PROGRAMFILES\wpa_supplicant"
9
10 Page Directory
11 Page InstFiles
12
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_1_2.exe"
17 ExecWait "$INSTDIR\Prerequisites\WinPcap_4_1_2.exe"
18 Goto endWinPcap
19 endWinPcap:
20 sectionEnd
21
22
23 section
24 setOutPath $INSTDIR
25
26 File wpa_gui.exe
27 File wpa_gui_de.qm
28 File wpa_cli.exe
29 File COPYING
30 File README
31 File README-Windows.txt
32 File win_example.reg
33 File win_if_list.exe
34 File wpa_passphrase.exe
35 File wpa_supplicant.conf
36 File wpa_supplicant.exe
37 File wpasvc.exe
38
39 File /opt/Qt-Win/files/mingwm10.dll
40 File /opt/Qt-Win/files/libgcc_s_dw2-1.dll
41 File /opt/Qt-Win/files/QtCore4.dll
42 File /opt/Qt-Win/files/QtGui4.dll
43
44 WriteRegDWORD HKLM "Software\wpa_supplicant" "debug_level" 0
45 WriteRegDWORD HKLM "Software\wpa_supplicant" "debug_show_keys" 0
46 WriteRegDWORD HKLM "Software\wpa_supplicant" "debug_timestamp" 0
47 WriteRegDWORD HKLM "Software\wpa_supplicant" "debug_use_file" 0
48
49 WriteRegDWORD HKLM "Software\wpa_supplicant\configs\default" "ap_scan" 2
50 WriteRegDWORD HKLM "Software\wpa_supplicant\configs\default" "update_config" 1
51 WriteRegDWORD HKLM "Software\wpa_supplicant\configs\default\networks" "dummy" 1
52 DeleteRegValue HKLM "Software\wpa_supplicant\configs\default\networks" "dummy"
53
54 WriteRegDWORD HKLM "Software\wpa_supplicant\interfaces" "dummy" 1
55 DeleteRegValue HKLM "Software\wpa_supplicant\interfaces" "dummy"
56
57 writeUninstaller "$INSTDIR\uninstall.exe"
58
59 WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\wpa_supplicant" \
60 "DisplayName" "wpa_supplicant"
61 WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\wpa_supplicant" \
62 "UninstallString" "$INSTDIR\uninstall.exe"
63
64 CreateDirectory "$SMPROGRAMS\wpa_supplicant"
65 CreateShortCut "$SMPROGRAMS\wpa_supplicant\wpa_gui.lnk" "$INSTDIR\wpa_gui.exe"
66 CreateShortCut "$SMPROGRAMS\wpa_supplicant\Uninstall.lnk" "$INSTDIR\uninstall.exe"
67
68 ExecWait "$INSTDIR\wpasvc.exe reg"
69 sectionEnd
70
71
72 Function un.onInit
73 MessageBox MB_YESNO "This will uninstall wpa_supplicant. Continue?" IDYES NoAbort
74 Abort
75 NoAbort:
76 FunctionEnd
77
78 section "uninstall"
79 DeleteRegKey HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\wpa_supplicant"
80 delete "$INSTDIR\uninstall.exe"
81
82 ExecWait "$INSTDIR\wpasvc.exe unreg"
83
84 DeleteRegKey HKLM "Software\wpa_supplicant"
85
86 delete "$INSTDIR\wpa_gui.exe"
87 delete "$INSTDIR\wpa_gui_de.qm"
88 delete "$INSTDIR\wpa_cli.exe"
89 delete "$INSTDIR\COPYING"
90 delete "$INSTDIR\README"
91 delete "$INSTDIR\README-Windows.txt"
92 delete "$INSTDIR\win_example.reg"
93 delete "$INSTDIR\win_if_list.exe"
94 delete "$INSTDIR\wpa_passphrase.exe"
95 delete "$INSTDIR\wpa_supplicant.conf"
96 delete "$INSTDIR\wpa_supplicant.exe"
97 delete "$INSTDIR\wpasvc.exe"
98
99 delete "$INSTDIR\mingwm10.dll"
100 delete "$INSTDIR\libgcc_s_dw2-1.dll"
101 delete "$INSTDIR\QtCore4.dll"
102 delete "$INSTDIR\QtGui4.dll"
103
104 delete "$INSTDIR\Prerequisites\WinPcap_4_1_2.exe"
105 rmdir "$INSTDIR\Prerequisites"
106
107 rmdir "$INSTDIR"
108
109 delete "$SMPROGRAMS\wpa_supplicant\wpa_gui.lnk"
110 delete "$SMPROGRAMS\wpa_supplicant\Uninstall.lnk"
111 rmdir "$SMPROGRAMS\wpa_supplicant"
112 sectionEnd