x64 relevance

(imported topic written by SystemAdmin)

I’m trying to setup a software installation with one task, but 2 downloads, one for 32 and one for 64. When I push the action to a 64bit os, it is skipping the 64bit install (skip not relevant). I can run Q&A on the 64 bit client and x64 of operating system evalutes to true. Below is my action:

If x64 of operating system then

//Download 64 bit install

download http://server.domain:52311/Uploads/86d12d3acf195663ab08d55960b7367540cab2e9/64bit install.tmp

continue if {(size of it = 90899113 AND sha1 of it = “86d12d3acf195663ab08d55960b7367540cab2e9”) of file “64bit install.tmp” of folder “__Download”}

extract 64bit install.tmp

//install 64 bit

action uses wow64 redirection true

waithidden “{pathname of system folder & “\msiexec.exe”}” /i “{(pathname of client folder of current site) & “__Download\install.msi”}” /qn

Else

//Download 32 bit install

download http://server.domain:52311/Uploads/162d0d7b641774ffe498a0d9afcb3d3b40d5c897/32bit install.tmp

continue if {(size of it = 121751852 AND sha1 of it = “162d0d7b641774ffe498a0d9afcb3d3b40d5c897”) of file “32bit install.tmp” of folder “__Download”}

extract 32bit install.tmp

//install 32 bit

waithidden “{pathname of system folder & “\msiexec.exe”}” /i “{(pathname of client folder of current site) & “__Download\install.msi”}” /qn

(imported comment written by arnaud91)

Hi mperteso,

You have to put the relevance between curly brakets {}.

Also your action script is missing “endif” statement, and you don’t need “then” statement.

Try this code:

if {x64 of operating system} 
 
//Code to execute for x64 systems
 
else
 
//Code to execute for 32 bit systems
 
endif

Arnaud

(imported comment written by SystemAdmin)

Ok thanks that worked perfect.