I need some help putting together a script that will check whether the client OS is 32-bit or 64-bit and depending on the result it will install an MSI package.
I had a quick search on the internet but a lot of the results come up with finding whether the processor architecture is 32 or 64 bit rather than whether the OS is.
So essentially what I need is something like:
If Package "Application X" is installed then go to end
If machine has 32-bit OS
Then msiexec \\Path\Packagex86.msi /q /norestart
If machine has 64-bit OS
Then msiexec \\Path\Packagex64.msi /q /norestart