1.

Solve : Uninstalling Software using BAT file?

Answer»

I know this has got to be possible, but haven't had any luck getting it to work. I want to uninstall the software, start a reboot, and if possible restart the BAT file. Any ideas? I need this to be compatible with WIN2000 and XP.Uninstalling software can be as simple as deleting a few directories to such complex ACTIONS as REMOVING registry keys, directories, and shortcuts.

If the software has an uninstall feature use that. See what would run if you clicked it (right click then Properties) and put the same info in a batch file. Another possibilty is to use msiexec with the /x switch in which case you would need to know the application's GUID from when it was installed. Another possibility is to use the application's install log as a guide to reversing all the actions.

Restarting the system is the easy part: shutdown -r

As for the restarting the batch file, you can use 1 of 7 RunOnce registry keys or you could copy the batch file to the Startup directory prior to running the re-boot. You would need some mechanism to DETERMINE that the app had already been removed to pick up the code somewhere beyond the re-boot.



Discussion

No Comment Found