2 Replies Latest reply on Mar 8, 2017 5:46 AM by Kenyon

    Deploy 32 bit and 64 bit plugins

    RoMar333 Rookie

      Hello everyone,

       

      I have to deploy 32 bit and 64 bit plugins on Windows 7 systems with 32 bit or 64 bit MS Office.

      Is there a way to create one deployment package that can check which architecture is used and then deploy the appropriate plugin?

       

      Thanks

        • 1. Re: Deploy 32 bit and 64 bit plugins
          michael.odriscoll SupportEmployee

          Hi,

           

          Thanks for posting the Community.

           

          Were you able to find an answer to this? You could try our new search page The Advice Center.

           

          Michael

          • 2. Re: Deploy 32 bit and 64 bit plugins
            Kenyon Expert

            This can be accomplished with a Custom Definition in Patch manager or if using a batch file you can use one of the following;

             

            ---------------------------------------------------------------------------------------------------------------------------------------------------------

            @echo off

            IF EXIST "%PROGRAMFILES(X86)%" (GOTO 64BIT) ELSE (GOTO 32BIT)

             

             

            :64BIT

            echo This is 64-bit...

            GOTO END

             

             

            :32BIT

            echo This is 32-bit...

            GOTO END

             

             

            :END

            ---------------------------------------------------------------------------------------------------------------------------------------------------------

            @echo off

             

            if "%PROCESSOR_ARCHITECTURE%"=="x86" goto 32bit

            if "%PROCESSOR_ARCHITECTURE%"=="AMD64" goto 64bit

             

            :32bit

            ECHO 32bit Detected

            ECHO.

            ECHO.

             

             

             

            :64bit

            ECHO 64bit Detected

            ECHO.

            ECHO.

             

            ---------------------------------------------------------------------------------------------------------------------------------------------------------

             

            :This script does not work on WindowsXP

             

             

            @echo off

            For /F "tokens=2 delims==,-" %%a In ('wmic os get osarchitecture /value') Do (

            set _osarch=%%a

            )

             

             

            IF _osarch==32 (

            echo I am a 32 Bit OS

            ) ELSE (

            echo I am a 64 Bit OS

            )

             

            ---------------------------------------------------------------------------------------------------------------------------------------------------------

             

            Refer to this document for even more batch file distribution details;

            About Batch File Distribution Packages