

InterviewSolution
Saved Bookmarks
1. |
Solve : Uninstalling hotfixes/updates? |
Answer» <html><body><p>Win XP Pro SP.3 + all updates etc.<br/><br/>For experimental purposes I'd like to delete all hotfixes etc using the $NTUninstallKB..... folders which have been created in the C:\Windows folder. <br/><br/>If in doing this the system is damaged it doesn't matter, it's a tryout machine only.<br/><br/>Can someone <a href="https://interviewquestions.tuteehub.com/tag/please-601513" style="font-weight:bold;" target="_blank" title="Click to know more about PLEASE">PLEASE</a> <a href="https://interviewquestions.tuteehub.com/tag/point-239421" style="font-weight:bold;" target="_blank" title="Click to know more about POINT">POINT</a> 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.<br/><br/>I've tried this without success:<br/> Code: <a>[Select]</a><br/>echo off<br/>cls<br/>setlocal<br/><br/>pushd c:\windows\$ntuninstallkb951748$\spuninst\<br/><br/>echo echo. | spuninst.exe<br/>echo.<br/><br/><strong>Notice: This solution is only for the original <a href="https://interviewquestions.tuteehub.com/tag/poster-592364" style="font-weight:bold;" target="_blank" title="Click to know more about POSTER">POSTER</a>. Do not run this on your own machine.</strong><br/><br/>Spuninst has a set of switches (<em>spuninst /?</em>) that run the program in passive or silent mode, and also not to restart after an uninstall.<br/><br/> Code: <a>[Select]</a>echo off<br/>pushd %cd%<br/>for /<a href="https://interviewquestions.tuteehub.com/tag/f-236701" style="font-weight:bold;" target="_blank" title="Click to know more about F">F</a> "tokens=*" %%a in ('dir c:\windows\$nt* /b /s /a:d') do (<br/> cd %%a<br/> if exist .\spuninst (<br/> cd spuninst<br/> spuninst /passive /norestart<br/> )<br/>) <br/>popd <br/><br/>I didn't do a live <a href="https://interviewquestions.tuteehub.com/tag/test-13460" style="font-weight:bold;" target="_blank" title="Click to know more about TEST">TEST</a> of the code (for obvious reasons), but substituted <em>echo</em> statements at critical points.<br/><br/>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:<br/><br/> Quote from: KB886185</p><blockquote>The utility supports the following Setup switches:<br/><br/> * /? : Show the list of installation switches.<br/> * /u : Use Unattended mode.<br/> * /f : Force other programs to quit when the computer shuts down.<br/> * /z : Do not restart when the installation is completed.<br/> * /q : Use Quiet mode (no user interaction). </blockquote> Back to report that installation and deletion of hotfixes went without a hitch.<br/><br/>Thanks again.</body></html> | |