I am trying to run an MSI that will run a 32-bit installer if the OS is 32-bit, or 64-bit if needed. It is to upgrade VMWare Tools. I have extracted them and use the Software Distribution Wizard to get them to the server, but my MSI seems to fail on the line where I run the executable.
This is what I am running
// 32-bit
waithidden “{pathname of system folder & “\msiexec.exe”}” /i "{(pathname of client folder of current site) & “__Download\vmware tools.msi” addlocal=all /qn REINSTALLMODE=vamus REINSTALL=ALL REBOOT=ReallySuppress
//64-bit
waithidden “{pathname of system folder & “\msiexec.exe”}” /i "{(pathname of client folder of current site) & “__Download\vmware tools64.msi” addlocal=all /qn REINSTALLMODE=vamus REINSTALL=ALL REBOOT=ReallySuppress
I would really like to do an if 64-bit, then run 64-bit MSI else run 32-bit MSI, but am unable to figure out how to do this.
if
{x64 of operating system
}
//64-bit waithidden
"{pathname of system folder & "\msiexec.exe
"}" /i
"{(pathname of client folder of current site) & "\__Download\vmware tools64.msi
"}" addlocal=all /qn REINSTALLMODE=vamus REINSTALL=ALL REBOOT=ReallySuppress
else
// 32-bit waithidden
"{pathname of system folder & "\msiexec.exe
"}" /i
"{(pathname of client folder of current site) & "\__Download\vmware tools.msi
"}" addlocal=all /qn REINSTALLMODE=vamus REINSTALL=ALL REBOOT=ReallySuppress endif