aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2008-12-25 14:59:37 (GMT)
committerJouni Malinen <j@w1.fi>2008-12-25 14:59:37 (GMT)
commite40348080d145b663e286bf0bceacc212792d073 (patch)
tree02934019acba882aa7b4b252dee10fef7f214249 /wpa_supplicant
parent9904b53d6727b00e5be8f635406d3d2665823c3a (diff)
downloadhostap-06-e40348080d145b663e286bf0bceacc212792d073.zip
hostap-06-e40348080d145b663e286bf0bceacc212792d073.tar.gz
hostap-06-e40348080d145b663e286bf0bceacc212792d073.tar.bz2
Add Windows registry entries during installation
The NSIS installer will now add Windows registry entries for wpa_supplicant during installation and removes them during uninstallation. This allows wpa_gui to start wpasvc and add new interfaces without requiring the user to do any manual registry editing.
Diffstat (limited to 'wpa_supplicant')
-rw-r--r--wpa_supplicant/wpa_supplicant.nsi15
1 files changed, 15 insertions, 0 deletions
diff --git a/wpa_supplicant/wpa_supplicant.nsi b/wpa_supplicant/wpa_supplicant.nsi
index d5eb0dd..2783ca3 100644
--- a/wpa_supplicant/wpa_supplicant.nsi
+++ b/wpa_supplicant/wpa_supplicant.nsi
@@ -39,6 +39,19 @@ section
File /opt/Qt-Win/files/QtCore4.dll
File /opt/Qt-Win/files/QtGui4.dll
+ WriteRegDWORD HKLM "Software\wpa_supplicant" "debug_level" 0
+ WriteRegDWORD HKLM "Software\wpa_supplicant" "debug_show_keys" 0
+ WriteRegDWORD HKLM "Software\wpa_supplicant" "debug_timestamp" 0
+ WriteRegDWORD HKLM "Software\wpa_supplicant" "debug_use_file" 0
+
+ WriteRegDWORD HKLM "Software\wpa_supplicant\configs\default" "ap_scan" 2
+ WriteRegDWORD HKLM "Software\wpa_supplicant\configs\default" "update_config" 1
+ WriteRegDWORD HKLM "Software\wpa_supplicant\configs\default\networks" "dummy" 1
+ DeleteRegValue HKLM "Software\wpa_supplicant\configs\default\networks" "dummy"
+
+ WriteRegDWORD HKLM "Software\wpa_supplicant\interfaces" "dummy" 1
+ DeleteRegValue HKLM "Software\wpa_supplicant\interfaces" "dummy"
+
writeUninstaller "$INSTDIR\uninstall.exe"
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\wpa_supplicant" \
@@ -66,6 +79,8 @@ section "uninstall"
ExecWait "$INSTDIR\wpasvc.exe unreg"
+ DeleteRegKey HKLM "Software\wpa_supplicant"
+
delete "$INSTDIR\wpa_gui.exe"
delete "$INSTDIR\wpa_cli.exe"
delete "$INSTDIR\COPYING"