VMWare Tools Upgrade

(imported topic written by FITZPAW91)

Hello,

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.

Could someone give me some help

Thanks

William

(imported comment written by MattBoyd)

This will tell you if the OS is 64-bit:

x64 of operating system

I think you’re missing a curly brace and quotation mark after .msi"

// 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

(imported comment written by FITZPAW91)

Thanks

But how do I put both these lines in one expression using the x64 of operating system

William

(imported comment written by MattBoyd)

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

(imported comment written by FITZPAW91)

Wow, that was alot easier than I was trying to do, thanks boyd.