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: