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.
@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.
![Cool 8)](https://www.computerhope.com/forum/Smileys/classic/cool.gif)