ATTENTION: You are viewing a page formatted for mobile devices; to view the full web page, click HERE.

DonationCoder.com Software > DC Member Programs and Projects

SquidGirlCleaner: open source superseded update (re)mover - testers wanted!

(1/4) > >>

ConstanceJill:
Hello there :)

As some of you may be aware, Windows' "C:\Windows\Installer" folder tends to grow increasingly larger as time passes and more updates get applied to programs which rely on Windows Installer — especially if you've had the same version of Microsoft Office for a few years and let Windows Update do its thing automatically.
There are various solutions to this problem such as:


* reinstalling the system from scratch: huh, overkill much?
* completely uninstalling the big programs/software suites that had multiple updates in the past, and reinstalling them (if still needed) with only the latest, current patches: while less overkill than a complete system reinstall, it's still not a very practical solution
* moving the folder to a different drive and making a hard link to it: may not always be feasible, especially if you have a laptop with no room to add another internal storage drive… also, while that's kind of clever, it's only a workaround that doesn't really address the main problem
* using a dedicated cleaning tool such as PatchCleaner: IMHO, that appears to be the best option
However, some people may have trust issues with PatchCleaner because it is closed source.

So, since I was curious about how that worked, I tried to figure out how to identify superseded patches and started to script my own, open source (it's a .bat file, not obfuscated) solution that should give similar results — albeit with a much less sexy interface and less options, but the more suspicious people can actually inspect the code!

A few words of caution, though:

* I've only tested it on a few computers so far, all running the same version of Windows (7)
* while I've not noticed any issue after using my script to "clean up" those (again very few) computers I did test it on, and had no problem applying the august 2019 security updates for MS Office 2010/2013 on them, I cannot tell for sure if there won't be issues later on
* I'm not even a programmer, which I guess increases the probability for this script to not be extremely reliable ^^'
This is why I need testers, preferably technically inclined ones for now, so that if my script causes an issue, they're more likely to be able to clearly explain it and maybe even solve it by themselves.

With that being said, the script is in the attachment.

Feel free to reply with any constructive criticism!

nickodemos:
Found three orphans at 78MB in total.

ConstanceJill:
That's not much. Was your system installed recently? Do you perhaps not have MS Office on it? Or maybe you used another cleaning tool already which may have removed most of the unneeded updates?

nickodemos:
Installed around ten months back.

No MS office installed. I have not had a need for it since I graduated from college.

And yes the system has been cleaned before.

ConstanceJill:
Hmm while re-reading my own code, I noticed a bug in one of the functions (regread): while attempting to optimize it after debugging it, I went a bit overzealous and removed the line that set the "Value" variable, which would have been used if we tried to read the data from any registry value with 1 or more spaces in its name.

However none of the registry values we need to read has any, which is why it has no effect on the outcome of the script, so that alone is not worth publishing an updated version for. Still, it will be fixed in the "final" version.

Edit: found another minor bug: if the script was called by double clicking it instead of from an already opened command prompt, the script's window closes at the end, while it should stay open and pause to let the user read the statistics.
Again, it doesn't seem worth publishing an update yet, but will be fixed.

Navigation

[0] Message Index

[#] Next page

Go to full version