From e40348080d145b663e286bf0bceacc212792d073 Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Thu, 25 Dec 2008 16:59:37 +0200 Subject: [PATCH] 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. --- wpa_supplicant/wpa_supplicant.nsi | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/wpa_supplicant/wpa_supplicant.nsi b/wpa_supplicant/wpa_supplicant.nsi index d5eb0dd85..2783ca3c8 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"