Uninstallur (Win/C#)

Did a re-install of my daughters Vista machine the other day and got annoyed at all the bloat that came with it that I had to remove, and thought that there must be a better way than to remove all those applications one at a time throught the control panel.

After having looked around for a short while and not found a good solution I made one by simply looking into HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall and HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall and getting all the applications there, putting it up in a multi-select view and then uninstall all the selected ones by using one of the following methods:

1) If the program is installed with msiexe (preferred) then uninstall by using the /passive and /norestart switches. Also any /i is replaced with /x

2) If the program is installed with setup.exe use the /qb! command line switches.

3) Any other method, just run the uninstall script (sadly no way of knowing how to make that passive..)

Anyway, it worked out pretty ok, at least for the programs installed with msiexe and setup.exe. Sadly, most of the bloatware wasn’t..


Anyway. Here is a link to the .cs file. It’s not very well made, just a straight forward hack (and there can be some exceptions cast using it.. nothing serious though).

…and don’t think that this is a complete solution. There can be programs in another locations on the computer and some won’t uninstall using this method, but many will, and that was enough for me.


Leave a Reply

Your email address will not be published. Required fields are marked *