Jump to content

Uninstaller doesn't remove shortcut


Recommended Posts

A minor problem I've noticed after downloading 2.6 today: the uninstaller doesn't remove the program shortcut in the start menu. Happens when I use the manual install and an unattended MSI install with a custom shortcut location (using the PROGRAMSGROUP parameter)

"Uninstalling Paint.NET? What a crazy suggestion!" I hear you cry. Sure, I don't intent to uninstall it anytime soon, but I do plan to roll it out to about a hundred computers on my school network, and I don't want to have to clean up afterwards if and when I have to remove it. Ideally, I'd like the uninstaller to remove at least the program icon, and preferably the folder too if it was created by the installer, and is empty.

Can anyone else confirm this problem or is it just me?

Link to comment
Share on other sites

I've found and fixed the bug (it'll be there for v2.61).

We store the location of the shortcut in the registry in HKLM \ Software \ Paint.NET \ ProgramsShortcut. When we go to delete it, we do some sanity checking on the filename there: does it end in .lnk, and is it in the right directory? Turns out the code for the latter was flawed and was returning false negatives (I guess I'd rather have that than false positive and have it delete some other file).

The Paint.NET Blog: https://blog.getpaint.net/

Donations are always appreciated! https://www.getpaint.net/donate.html

forumSig_bmwE60.jpg

Link to comment
Share on other sites

  • 2 weeks later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...