/build/static/layout/Breadcrumb_cap_w.png

Office 32 and 64 bit managed installation

I'm trying to setup a managed installation for Office 2013 and am having trouble getting the 64 bit installer to launch.  I have the managed installation set to run a batch file that has this in it:

if %PROCESSOR_ARCHITECTURE%==x86 32\setup.exe /adminfile 32\upgrade.msp
if %PROCESSOR_ARCHITECTURE%==AMD64 64\setup.exe /adminfile 64\upgrade.msp

This works for the 32 bit computer but the 64 bit computer tries running the 32 bit installer which fails.  I also tried 'if exist "C:\Program Files (x86)"' but that didn't help either.  I don't understand why this doesn't work.  This is the first time I've tried a managed installation that had two seperate installers for the different architectures so maybe I'm going about this the wrong way.  Any help is appreciated.


0 Comments   [ + ] Show comments

Answers (3)

Answer Summary:
SDNBTP's suggestion solved the problem
Posted by: LBarclay 10 years ago
Orange Senior Belt
1
:CheckOS
IF EXIST "%PROGRAMFILES(X86)%" (GOTO 64BIT) ELSE (GOTO 32BIT)
 
:64BIT
start /wait YourSetupHere.exe
GOTO END
 
:32BIT
start /wait YourSetupHere.exe
GOTO END
 
:END
 
 
That should work, give that a try!
Posted by: SDNBTP 10 years ago
Third Degree Blue Belt
0

The K1000 agent is 32 bit so it usually craps out when you do arch check and runs the 32 bit section. Better to use Program Files (x86) check. Not sure why that wouldn't have worked. Does the script work with Program Files (x86) when you run it manually?

Microsoft recommends using 32 bit version of Office on 64 bit machines for add-on compatibility.

Posted by: kcorrie 10 years ago
Senior Purple Belt
0

I didn't know I needed the parentheses so I changed the script as such

if exist "C:\Program Files (x86)" (64\setup.exe /adminfile 64\upgrade.msp) else (32\setup.exe /adminfile 32\upgrade.msp)

This correctly launched the installer but then an error message popped up that the admin file could not be found or did not contain patch information.

So I tried the other sugestion

if exist "C:\Program Files (x86)" goto 64 else goto 32
:64
start /wait 64\setup.exe /adminfile 64\upgrade.msp
goto end
:32
start /wait 32\setup.exe /adminfile 32\upgrade.msp

This yieled the same result as before and I was given a message that the admin file was not found.

I'm working on this outside of the managed install right now.  This was all done manually.


Comments:
  • Try removing the directory from your admin file path to test...
    start /wait 64\setup.exe /adminfile upgrade.msp - SDNBTP 10 years ago
    • Dang... that worked! - kcorrie 10 years ago
      • Awesome. start /wait 64\setup.exe /adminfile 64\upgrade.msp would be looking for 64\64\upgrade.msp - SDNBTP 10 years ago
 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ