Important Notice: On February 29th, this community will be put into read-only mode. All existing posts will remain but customers will be unable to add new posts or comment on existing. Please feel to join our Community Discord for any questions and discussions.

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

4 comments
Date Votes
  • 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)

    @ECHO OFF
    IF EXIST "%ProgramFiles(x86)%" (
    echo "64-bit"
    ) ELSE (
    echo "32-bit"
    )

    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. 

    0
  • 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

    0
  • 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.

    0
  • 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".

    0

Please sign in to leave a comment.

Didn't find what you were looking for?

New post