I have a requirement where I need to uninstall MS Office
2010 as part of the build process.
So I have created a package using OffScrub10.vbs (extracted from
MicrosoftFixit50450.msi) deployed to a test machine. All the MS Office 2010
components were uninstalled without any problem. So I have added the same
package to the task sequence. The TS has failed multiple times with “The System
cannot find the file specified”.
To overcome this issue, I have to copy the OffScrub10.vbs to
locally and launch it from there.
Here are the steps to move forward:
In the task sequence add a Run Command Line and add xcopy.exe ".\*.*"
"C:\Office2010" /D /E /C /I /Q /H /R /Y /S command to copy the
actual package source to local machine.
Please Note: After the xcopy ”.\*.*” add the .\ line. If we won’t add that “.\”
the xcopy will copy all the packages from the DP.
Add another Run Command Line then add cscript.exe OffScrub10.vbs /All This
command will uninstall all the installed MS Office 2010 products from the
target machine. While running the command, make sure you tick the Disable
64-bit file system redirection and also Start in C:\Office2010 as shown below:
You can also tick the box Continue on error:
Great post. I really love it, just love it so much that the greedy gnome in me wants more ! Thanks for sharing !
ReplyDeleteThanks. This helped me to resolve office 2010 issue in my environment.
ReplyDeleteOne question through, why do we need to select continue on error?
thanks
Great article. Really helped me to remove office 2010 and upgrade office 2013.
ReplyDeleteThis worked like a champ...thanks!
ReplyDeleteWhere should the OffScub.vbs be saved to ensure that it is copied across?
ReplyDeleteYou could also create a package with the files. Then, tick the box that the files are included in a package, reference that package. Then you can run the same command line and save the step to copy the files locally.
ReplyDeleteTaking very long time to complete the script process . is there any mis configured ?
ReplyDelete