Standardize on a single definition of auth_alg bitfield values
[hostap-gosc2009.git] / wpa_supplicant / wpa_supplicant.nsi
blob2783ca3c8e649c7c2c9d76792b6fa0d85b9ce829
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"
10 Page Directory
11 Page InstFiles
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"
18 Goto endWinPcap
19 endWinPcap:
20 sectionEnd
23 section
24 setOutPath $INSTDIR
26 File wpa_gui.exe
27 File wpa_cli.exe
28 File COPYING
29 File README
30 File README-Windows.txt
31 File win_example.reg
32 File win_if_list.exe
33 File wpa_passphrase.exe
34 File wpa_supplicant.conf
35 File wpa_supplicant.exe
36 File wpasvc.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"
67 sectionEnd
70 Function un.onInit
71 MessageBox MB_YESNO "This will uninstall wpa_supplicant. Continue?" IDYES NoAbort
72 Abort
73 NoAbort:
74 FunctionEnd
76 section "uninstall"
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"
103 rmdir "$INSTDIR"
105 delete "$SMPROGRAMS\wpa_supplicant\wpa_gui.lnk"
106 delete "$SMPROGRAMS\wpa_supplicant\Uninstall.lnk"
107 rmdir "$SMPROGRAMS\wpa_supplicant"
108 sectionEnd