|
Answer» Win XP Pro SP.3 + all updates etc.
For experimental purposes I'd like to delete all hotfixes etc using the $NTUninstallKB..... folders which have been created in the C:\Windows folder.
If in doing this the system is damaged it doesn't matter, it's a tryout machine only.
Can someone PLEASE POINT me in the direction of instructions on how to write a batch script which can give the necessary responses to Spuninst.exe which consist of clicking the Next box on two occasions.
I've tried this without success:
Code: [Select] echo off cls setlocal
pushd c:\windows\$ntuninstallkb951748$\spuninst\
echo echo. | spuninst.exe echo.
Notice: This solution is only for the original POSTER. Do not run this on your own machine.
Spuninst has a set of switches (spuninst /?) that run the program in passive or silent mode, and also not to restart after an uninstall.
Code: [Select]echo off pushd %cd% for /F "tokens=*" %%a in ('dir c:\windows\$nt* /b /s /a:d') do ( cd %%a if exist .\spuninst ( cd spuninst spuninst /passive /norestart ) ) popd
I didn't do a live TEST of the code (for obvious reasons), but substituted echo statements at critical points.
Good luck and be careful. Thank you Sidewinder. I've found that SpUninst.exe supports some of the shortened Setup.exe switches so will try them as well:
Quote from: KB886185 The utility supports the following Setup switches:
* /? : Show the list of installation switches. * /u : Use Unattended mode. * /f : Force other programs to quit when the computer shuts down. * /z : Do not restart when the installation is completed. * /q : Use Quiet mode (no user interaction).
Back to report that installation and deletion of hotfixes went without a hitch.
Thanks again.
|