aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2008-12-20 18:40:23 (GMT)
committerJouni Malinen <j@w1.fi>2008-12-20 18:40:23 (GMT)
commit798afa8162c1c62d1b32a1bf6235144ce3639d15 (patch)
tree4adbd5545e77e9350628731229422ca270d84cd0
parent36cb321611b557ff2e3a9fa49513e2341f4028cc (diff)
downloadhostap-06-798afa8162c1c62d1b32a1bf6235144ce3639d15.zip
hostap-06-798afa8162c1c62d1b32a1bf6235144ce3639d15.tar.gz
hostap-06-798afa8162c1c62d1b32a1bf6235144ce3639d15.tar.bz2
Added Windows NSIS installer for wpa_supplicant
-rwxr-xr-xbuild_nsis.sh16
-rwxr-xr-xbuild_release3
-rw-r--r--wpa_supplicant/wpa_supplicant.nsi75
3 files changed, 94 insertions, 0 deletions
diff --git a/build_nsis.sh b/build_nsis.sh
new file mode 100755
index 0000000..e41bc36
--- /dev/null
+++ b/build_nsis.sh
@@ -0,0 +1,16 @@
+#!/bin/sh
+
+if [ -d nsis.in ]; then
+ /bin/rm -r nsis.in
+fi
+
+unzip -j -d nsis.in $1
+VER=`echo $1 | sed "s/.*wpa_supplicant-windows-bin-\(.*\).zip/\1/"`
+
+cat wpa_supplicant/wpa_supplicant.nsi |
+ sed "s/@WPAVER@/$VER/g" \
+ > nsis.in/wpa_supplicant.nsi
+
+makensis nsis.in/wpa_supplicant.nsi
+
+/bin/rm -r nsis.in
diff --git a/build_release b/build_release
index b1a6ee8..de26c08 100755
--- a/build_release
+++ b/build_release
@@ -136,6 +136,9 @@ EOF
cd $RELDIR/..
+./build_nsis.sh "$RELDIR/$WDIR.zip"
+mv wpa_supplicant-$VER.exe $RELDIR
+
ls -l $RELDIR/*$VER*
exit 0
diff --git a/wpa_supplicant/wpa_supplicant.nsi b/wpa_supplicant/wpa_supplicant.nsi
new file mode 100644
index 0000000..604f711
--- /dev/null
+++ b/wpa_supplicant/wpa_supplicant.nsi
@@ -0,0 +1,75 @@
+!define PRODUCT_NAME "wpa_supplicant"
+!define PRODUCT_VERSION "@WPAVER@"
+!define PRODUCT_PUBLISHER "Jouni Malinen"
+
+Name "${PRODUCT_NAME} ${PRODUCT_VERSION}"
+outfile "../wpa_supplicant-@WPAVER@.exe"
+
+installDir "$PROGRAMFILES\wpa_supplicant"
+
+Page Directory
+Page InstFiles
+
+section -Prerequisites
+ SetOutPath $INSTDIR\Prerequisites
+ MessageBox MB_YESNO "Install WinPcap?" /SD IDYES IDNO endWinPcap
+ File "/opt/Qt-Win/files/WinPcap_4_0_2.exe"
+ ExecWait "$INSTDIR\Prerequisites\WinPcap_4_0_2.exe"
+ Goto endWinPcap
+ endWinPcap:
+sectionEnd
+
+
+section
+ setOutPath $INSTDIR
+
+ File wpa_gui.exe
+ File wpa_cli.exe
+ File COPYING
+ File README
+ File README-Windows.txt
+ File win_example.reg
+ File win_if_list.exe
+ File wpa_passphrase.exe
+ File wpa_supplicant.conf
+ File wpa_supplicant.exe
+ File wpasvc.exe
+
+ File /opt/Qt-Win/files/mingwm10.dll
+ File /opt/Qt-Win/files/QtCore4.dll
+ File /opt/Qt-Win/files/QtGui4.dll
+
+ writeUninstaller "$INSTDIR\uninstall.exe"
+
+ WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\wpa_supplicant" \
+ "DisplayName" "wpa_supplicant"
+WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\wpa_supplicant" \
+ "UninstallString" "$INSTDIR\uninstall.exe"
+sectionEnd
+
+
+section "uninstall"
+ DeleteRegKey HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\wpa_supplicant"
+ delete "$INSTDIR\uninstall.exe"
+
+ delete "$INSTDIR\wpa_gui.exe"
+ delete "$INSTDIR\wpa_cli.exe"
+ delete "$INSTDIR\COPYING"
+ delete "$INSTDIR\README"
+ delete "$INSTDIR\README-Windows.txt"
+ delete "$INSTDIR\win_example.reg"
+ delete "$INSTDIR\win_if_list.exe"
+ delete "$INSTDIR\wpa_passphrase.exe"
+ delete "$INSTDIR\wpa_supplicant.conf"
+ delete "$INSTDIR\wpa_supplicant.exe"
+ delete "$INSTDIR\wpasvc.exe"
+
+ delete "$INSTDIR\mingwm10.dll"
+ delete "$INSTDIR\QtCore4.dll"
+ delete "$INSTDIR\QtGui4.dll"
+
+ delete "$INSTDIR\Prerequisites\WinPcap_4_0_2.exe"
+ rmdir "$INSTDIR\Prerequisites"
+
+ rmdir "$INSTDIR"
+sectionEnd