diff options
author | james <james@e7ae566f-a301-0410-adde-c780ea21d3b5> | 2007-02-27 23:29:17 +0000 |
---|---|---|
committer | james <james@e7ae566f-a301-0410-adde-c780ea21d3b5> | 2007-02-27 23:29:17 +0000 |
commit | ee313a978f7aa9eff8163e3f6be3a59b12e03fe0 (patch) | |
tree | ac35ef74779ebc991174737eea15b8f9cb3a7333 /install-win32/openvpn.nsi.in | |
parent | --reneg-sec clarification in man page. (diff) | |
download | openvpn-ee313a978f7aa9eff8163e3f6be3a59b12e03fe0.tar.xz |
Renamed TAP-Win32 driver from tap0801.sys to tap0901.sys
to reflect the fact that Vista has blacklisted the tap0801.sys
file name due to previous compatibility issues which have now
been resolved. TAP-Win32 major/minor version number is now 9/1.
Windows installer will delete a previously installed
tap0801.sys TAP driver before installing tap0901.sys.
Added code to Windows installer to fail gracefully on 64 bit
installs until 64-bit TAP driver issues can be resolved.
Added code to Windows installer to fail gracefully on
versions of Windows which are not explicitly supported.
git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@1746 e7ae566f-a301-0410-adde-c780ea21d3b5
Diffstat (limited to 'install-win32/openvpn.nsi.in')
-rwxr-xr-x | install-win32/openvpn.nsi.in | 52 |
1 files changed, 42 insertions, 10 deletions
diff --git a/install-win32/openvpn.nsi.in b/install-win32/openvpn.nsi.in index 9a5b47a..8c24158 100755 --- a/install-win32/openvpn.nsi.in +++ b/install-win32/openvpn.nsi.in @@ -9,6 +9,7 @@ !include "MUI.nsh" !include "setpath.nsi" +!include "GetWindowsVersion.nsi" !define HOME ".." !define BIN "${HOME}\bin" @@ -16,7 +17,7 @@ !define PRODUCT_NAME "OpenVPN" !define VERSION "@VERSION@" # AUTO_VERSION -!define TAP "tap0801" +!define TAP "tap0901" !define TAPDRV "${TAP}.sys" ; something like "-DBG2" @@ -168,6 +169,8 @@ FunctionEnd Function .onInit ClearErrors + +# Verify that user has admin privs UserInfo::GetName IfErrors ok Pop $R0 @@ -177,6 +180,35 @@ Function .onInit Messagebox MB_OK "Administrator privileges required to install OpenVPN [$R0/$R1]" Abort ok: + + Call GetWindowsVersion + Pop $1 + StrCmp $1 "2000" goodwinver + StrCmp $1 "XP" goodwinver + StrCmp $1 "2003" goodwinver + StrCmp $1 "VISTA" goodwinver + + Messagebox MB_OK "Sorry, OpenVPN does not currently support Windows $1" + Abort + +goodwinver: + System::Call "kernel32::GetCurrentProcess() i .s" + System::Call "kernel32::IsWow64Process(i s, *i .r0)" + IntCmp $0 0 init32bits + + ; we are running on 64-bit windows + StrCmp $1 "VISTA" vista64bummer + + Messagebox MB_OK "Sorry, OpenVPN doesn't currently support 64-bit Windows." + Abort + +vista64bummer: + + Messagebox MB_OK "Sorry, OpenVPN doesn't currently support 64-bit Vista because Microsoft doesn't allow the installation of 64 bit unsigned drivers." + Abort + +init32bits: + FunctionEnd !define SF_SELECTED 1 @@ -290,13 +322,15 @@ Section "TAP-Win32 Virtual Ethernet Adapter" SecTAP DetailPrint "We are running on a 64-bit system." SetOutPath "$INSTDIR\bin" - File "${BIN}\ti3790-amd64\tapinstall.exe" + +; File "${BIN}\ti3790-amd64\tapinstall.exe" SetOutPath "$INSTDIR\driver" - File "${HOME}\tap-win32\amd64\OemWin2k.inf" - File "${HOME}\tap-win32\amd64\${TAPDRV}" - goto tapend +; File "${HOME}\tap-win32\amd64\OemWin2k.inf" +; File "${HOME}\tap-win32\amd64\${TAPDRV}" + +goto tapend tap-32bit: @@ -382,12 +416,10 @@ Section -post tapinstall: DetailPrint "TAP-Win32 REMOVE OLD TAP" - nsExec::ExecToLog '"$INSTDIR\bin\tapinstall.exe" remove TAP' - Pop $R0 # return value/error/timeout - DetailPrint "tapinstall remove TAP returned: $R0" - nsExec::ExecToLog '"$INSTDIR\bin\tapinstall.exe" remove TAPDEV' + + nsExec::ExecToLog '"$INSTDIR\bin\tapinstall.exe" remove TAP0801' Pop $R0 # return value/error/timeout - DetailPrint "tapinstall remove TAPDEV returned: $R0" + DetailPrint "tapinstall remove TAP0801 returned: $R0" DetailPrint "TAP-Win32 INSTALL (${TAP})" nsExec::ExecToLog '"$INSTDIR\bin\tapinstall.exe" install "$INSTDIR\driver\OemWin2k.inf" ${TAP}' |