donaddon
Posts: 15
Joined: Wed Apr 30, 2014 6:21 pm

Uninstaller always deleting registry key

I added a new registry key with some sub-keys and values. I opened the Properties dialog and selected (Create (ifabsent)).

But even though I did not select "Delete (if present) at uninstall", the registry key gets deleted at uninstall every time. Even if there are other keys / values in the registry key.

I have another registry key in the same location that doesn't have this problem (I created it long ago), even though the two keys are peers. I'm stumped. Every new key I create has this problem.

I went into the "Organization" section, found the key, and even selected "Permanent". But it _still_ gets deleted on uninstall.

Did I inadvertently turn on some new option that deletes all new registry keys on uninstall?
donaddon
Posts: 15
Joined: Wed Apr 30, 2014 6:21 pm

Re: Uninstaller always deleting registry key

----
Last edited by donaddon on Thu May 01, 2014 5:17 am, edited 2 times in total.
donaddon
Posts: 15
Joined: Wed Apr 30, 2014 6:21 pm

Re: Uninstaller always deleting registry key

Well, damn, it started doing it again. It is deleting registry keys that I have asked to be "Permanent". And consequently deleting child registry keys that the installer did not create.

Can someone call out the full registry key deletion logic? This registry key is marked as Permanent, and I have NOT checked delete on uninstall. Why would it EVER delete it?

I am doing my testing directly from Advanced Installer's "Run" button. Does that do something special that might cause the problem?

I am stumped at why this simple functionality has been such a struggle.
Daniel
Posts: 8276
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Uninstaller always deleting registry key

Hello,

First of all I apologize for my delayed reply. We had a few days off here last week due to a national holiday.

I'm not sure why this happens. Can you go to "Registry" page, use the "Properties" context menu option of the problematic registry key, go to "Operations" tab and make sure there is no registry key removal operation added on uninstall? If so, can you please send us the .AIP (project file) and a verbose log of the uninstall to support at advancedinstaller dot com so we can investigate them? Also, please specify which is the problematic registry key.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”