Skip to main content

Batch Script to Uninstall Programs by Keywords

Small software developers often try to generate revenue from their free software by bundling third-party software as well as display advertisements into the installer. These third-party software serve no useful purpose other than try to push the user into paying for something they don’t need, such as Windows registry cleaners. Then, there are browser toolbars whose purpose is to gather data about the user’s browsing habits such as the websites they visit, search engine they use and the queries they make. What happens to the data is anybody’s guess. Occasionally, there would be malicious programs that harm the system or consume inordinate amount of resources that makes the computer less responsive.

These programs are not difficult to remove. Unlike, malware they usually make no attempt to hide or obfuscate their executables. You can find them listed plainly under “Programs and Features” tool in Windows’ Control Panel and can identify them from their names. If you have tons of crapware on your computer (maybe your kid downloaded too many smilies or free games), and you don’t have the time to manually uninstall each and every program, you can try uninstalling them by keywords.

To do this, we will use a free and open source batch script called Crap Killer. The script searches through the registry for installed programs and makes a list of useless ones based on their names. Then it automatically uninstalls them using msiexec.exe or, if that's not an option, using their built-in uninstaller.

Crap Killer contains a list of keywords that are commonly associated with crapware. These keywords can be edited by the user by opening the batch script in a text editor of their choice, making the necessary edits and saving the changes.

crapkiller-keywords

The keywords that Crap Killer looks for in the registry are as follows. They appear on line no#97 on the batch script.

wallpaper, ebay, screen save, screensave, tuner, tuneup, tune up, toolbar, bar, coupon, rebate, shopp, shop to, shopat, shop at, bargain, trial, evaluation, j2se, security scan, securityscan, smile, my web, fun, optimize, free, search, registry, arcade, tweak, price, savin, deal, weather, 24x7, games, speed, discount, price, tab, mypc

You will notice that some of these keywords are potentially “dangerous” in the sense that they can affect legitimate programs. For instance, the string “free” often appears in the names of many great freeware such as those developed by “Freemake” and many others, as you can see from the screenshot below.

crapkiller

Similarly, the string “speed” will flag “Need For Speed” as a bad program, while “weather” and “wallpaper” will attempt to uninstall any innocent weather and wallpaper changing program you may have. Herein lies the real problem with the script - Crap Killer will uninstall all programs that returns a positive match for any of these keywords, without warning or confirmation.

It is recommended to edit the list of keywords before you run it. Remove problematic keywords like “speed” and “free”, and add genuine offenders like “AOL” and “WildTangent” to further enhance the function of the script.

Comments

  1. It now has been updated with a version that confirms removal first

    ReplyDelete

Post a Comment

Popular posts from this blog

How to Record CPU and Memory Usage Over Time in Windows?

Whenever the computer is lagging or some application is taking too long to respond, we usually fire up task manager and look under the Performance tab or under Processes to check on processor utilization or the amount of free memory available. The task manager is ideal for real-time analysis of CPU and memory utilization. It even displays a short history of CPU utilization in the form of a graph. You get a small time-window, about 30 seconds or so, depending on how large the viewing area is.

How to Schedule Changes to Your Facebook Page Cover Photo

Facebook’s current layout, the so called Timeline, features a prominent, large cover photo that some people are using in a lot of different creative ways. Timeline is also available for Facebook Pages that people can use to promote their website or business or event. Although you can change the cover photo as often as you like, it’s meant to be static – something which you design and leave it for at least a few weeks or months like a redesigned website. However, there are times when you may want to change the cover photo frequently and periodically to match event dates or some special promotion that you are running or plan to run. So, here is how you can do that.

Diagram 101: Different Types of Diagrams and When To Use Them

Diagrams are a great way to visualize information and convey meaning. The problem is that there’s too many different types of diagrams, so it can be hard to know which ones you should use in any given situation. To help you out, we’ve created this diagram that lays out the 7 most common types of diagrams and when they’re best used: