How to Contribute

Tips on automating the uninstall process
(Most of this taken from the follow-up blog entry)
Send any enhancements you make to: pcdc at yorkspace dot com

The first time the PC De-Crapifier runs on a machine it will take a snapshot of RUN and UNINSTALL registry keys before it does anything. It saves this information to: c:\pc-decrap-reg.txt. If you have a brand new out of the box PC and you’ve run the De-Crapifier, but there’s still extra “goodies” that you think should have been removed, please zip and send the c:\pc-decrap-reg.txt file along with the name of the program(s) to: pcdc at yorkspace dot com. This will be particularaly helpful to improve the program. Especially if you have a non-Dell PC I could really use some more data.

Using SciTE, select “AU3Recorder (ALT+F6)” from the Tools menu. Then manually step through the uninstall process and save off the resulting script. You should first play around with the macro recorder with some other program first, like notepad. Just to get a feel for how it works. Take a look at the online help for this too. The other thing to do is to take a look at the registry entries. All the programs that can be uninstalled are stored under this folder.

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall

Each one of these should have a key called UninstallString. This is what gets executed when you run the uninstall from Add/Remove Applications under Control Panel. If the uninstall string uses MsiExec then it’s really easy to run an unattended uninstall. You just need to get that long GUID string in the /X parameter and you can add a line to the De-Crapifier like:

UninstallMsiByGuid("QuickBooks Trial", "{F543B12A-13F5-487E-9314-F7D25E1BBE3E}")

The last thing to take a look at is the Run registry entries. Many programs like to add entries here to do useless things like launch task tray programs that continually check for updates. Programs like QuickTime and RealPlayer are particularly annoying.

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run

If you find one to remove, add a line like this to the De-Crapifier:

RegDelete("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run", "QuickTime Task")

Also know that a basic log file is generated when the De-Crapifier is run. It’s stored on the root of the C: drive.

2 Responses to How to Contribute

  1. Barry says:

    any way to get this to work on a machine that doesn’t have a C drive (e.g. my main drive is J, C is a removable drive)?

  2. Jason says:

    In Response to Barry:
    Currently there is no easy way to change from the C drive to another. Many things are hard coded to the ‘C’ drive. You could do a global search and replace on the source and run it from AutoIT directly. I may investigate this for a future version. Thanks.

Comments are closed.