

"Microsoft Office Visio Professional 2007" "Microsoft Office Professional Plus 2007" Wmic product get name | findstr /C:%%a & wmic product where name=%%a call uninstall /nointeractive & ping 127.0.0.1 -n 120 > NUL || echo Product %%a is not installed, nothing to do Ping 127.0.0.1 -n 120 > NUL || echo %%a not installed skipping Ping 127.0.0.1 -n 120 > NUL|| echo %%a not installed skippingĮcho %%a selected checking if installed & wmic product get name | findstr /C:%%a & "\\Path\to\Microsoft Visio 2013 x86\setup.exe" /uninstall VisStd /config config.xml & Set meme2="Microsoft Visio Standard 2013"įor /f "tokens=*" %%a in (\\path\to\Office13InstallerScripts\OfficeProducts.txt) do (Įcho %%a selected checking if installed & wmic product get name | findstr /C:%%a & "\\Path\to\Microsoft Office 2013 x86\setup.exe" /uninstall ProPlus /config config.xml & Set meme="Microsoft Office Professional Plus 2013" "\\Path\to\Office13InstallerScripts\OfficeUnInstall.bat" & "\\Path\to\64bit\Microsoft Office 2013\setup.exe" /config off "\\path\to\Microsoft Office 2013 x86\setup.exe" /config config.xml (Config xml are setup for silent installs, and also have custom msp files in the updates off I ran it manually as admin and worked fine, So I'm assuming it will work once placed as a startup script in a GPO, but will verify today. To anyone following this thread, i managed a scripted batch solution to the problem. Replies execution success Return Value 1603 (just like Visio 2007 which worked) but still installed. It works good, but when when i manually just run wmic product where name="Microsoft Office Professional Plus 2013" call uninstall /nointeracive Wmic product get name | findstr /C:%%a & wmic product where name=%%a call uninstall /nointeractive || product not found nothing to uninstall
Wmic uninstall bat 64 Bit#
With 2007 but doesn't actually uninstall, I need this part to work for 64 bit machines that currently have 32 bit office 2013 installed.įor /f "tokens=*" %%a in (\\path\to\list\32OfficeProducts.txt) do ( however when I run the script to uninstall office 2013 32 bit, it returns execution successful like it did
Wmic uninstall bat pro#
My Idea was to set a beginning part of the script to uninstall old 2007 office products, which seemed to work for both office pro and visio pro 2007.
Wmic uninstall bat update#
Problem 64 deployment failed stating it can't uninstall 32 bit Office, even with msp file in update folder set to uninstall old office versions and begins the 32 bit installation as the first command failed. Ran the 32 bit installer as the double pipe is designed to do.


My basic plan of running a super simple batch script of "\\path\to\office圆4\setup.exe /config" config.xml || \\path\to\officex86\setup.exe" /config config.xml worked when deploying to 32 bit systems since the 64 one failed (as expected) and My Goal was to get all 64 bit O/S's in our Domain to get 64 bit Office '13 and 32 bit O/S's to get the 32 bit Office '13. So to start I was set to Deploy New Office 2013, thing is 2013 comes with either 32 bit or 64 bit.
