Feature #3296 - Windows installer should check OS architecture
This commit is contained in:
parent
ede57b0c81
commit
d635be9432
|
@ -25,7 +25,7 @@ var avgInstallHomepage
|
|||
var avgImage
|
||||
var avgImageHandle
|
||||
|
||||
Function .onInit
|
||||
Function avgInit
|
||||
|
||||
InitPluginsDir
|
||||
File /oname=$PLUGINSDIR\avgtb.bmp "..\res\avgtb.bmp"
|
||||
|
|
|
@ -84,6 +84,21 @@ InstallDirRegKey HKEY_LOCAL_MACHINE "SOFTWARE\${product}" ""
|
|||
|
||||
!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
|
||||
|
||||
SetShellVarContext all
|
||||
|
|
Loading…
Reference in New Issue