Feature #3296 - Windows installer should check OS architecture

This commit is contained in:
Nick Bolton 2012-07-28 19:31:18 +00:00
parent ede57b0c81
commit d635be9432
2 changed files with 16 additions and 1 deletions

View File

@ -25,7 +25,7 @@ var avgInstallHomepage
var avgImage var avgImage
var avgImageHandle var avgImageHandle
Function .onInit Function avgInit
InitPluginsDir InitPluginsDir
File /oname=$PLUGINSDIR\avgtb.bmp "..\res\avgtb.bmp" File /oname=$PLUGINSDIR\avgtb.bmp "..\res\avgtb.bmp"

View File

@ -84,6 +84,21 @@ InstallDirRegKey HKEY_LOCAL_MACHINE "SOFTWARE\${product}" ""
!macroend !macroend
Function .onInit
IfFileExists $WINDIR\SYSWOW64\*.* end is32bit
is32bit:
${If} ${arch} == "x64"
MessageBox MB_OK "It is not possible to use the 64-bit Synergy installer \
on a 32-bit system. Please download the 32-bit Synergy installer."
Abort
${EndIf}
end:
Call avgInit
FunctionEnd
Section Section
SetShellVarContext all SetShellVarContext all