Deploy software with both 32/64-bit MSI installations
If solely using PDQ Deploy without a full inventory tool in place, would there be a "best recommendation" on how to push an install without knowing which machines are what? My only thought at this point would be to push out and execute a script:
IF %PROCESSOR_ARCHITECTURE%==AMD64 GOTO [64-bit package]
IF %PROCESSOR_ARCHITECTURE%==x64 GOTO [64-bit package]
ELSE
GOTO [32-bit package]
Thoughts?
0
Comments
That should work fine. I have used the following logic in batch files to determine if the OS was 32 or 64 bit... (obviously replace the echo line with your command or GOTO statement)
This has worked for me without problems.
In version 1.6 we are planning on offering a native conditional to determine, at run time, the OS architecture. This way you can effectively say what your current batch file says. If Arch is 64 bit run x.exe else run y.exe.
So probably build into the MSI command the same thing PDQ does with the switches:
@ECHO OFF
IF EXIST "%ProgramFiles(x86)%" (
msiexec.exe /i "\\server\share\Application64.msi" /qb
) ELSE (
msiexec.exe /i "\\server\share\Application86.msi" /qb
)
Thanks for the update and advice in the meanwhile.
-Ken
Kind of. The native feature that we will use won't reference %ProgramFiles(x86)% to determine OS Arch. We will use a Windows API to determine whether the OS is 64 bit or 32 bit. Referencing the %ProgramFiles(x86)% variable is just a decent work around until this new feature is available.
I understand, was just referring to the script I'll use in the meanwhile. Thanks for the clarification and this can be marked as "resolved".