How can I minimize registry entries? - Advanced Installer Community

We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

jeff2600
Posts: 2
Joined: Mon Dec 22, 2008 7:00 am

How can I minimize registry entries?

I'm trying to install an application that can be invoked from a windows context menu using AI. In order to set this up I, want to add a key to the registry under HKCR\Directory\shell\MyApp. I may not be doing it correctly, but it seems that when I add the registry key, I end up with all the other keys that are under HKCR\Directory included as part of my install. Then when I uninstall I lose all those other keys (despite the fact that I didn't mark them to be added or deleted).

Is there a way to add a key under HKCR\Directory without including all the other keys?

Environment: AI version 6.7.1 running on Windows 2000 SP4.
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: How can I minimize registry entries?

Hi,

I'm not sure how you are adding this key in your project. Can you please give me more details about this? Also, what other keys are removed during an uninstall?

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
jeff2600
Posts: 2
Joined: Mon Dec 22, 2008 7:00 am

My mistake

I guess I used "Add key" when I should have used "New key". I thought I had to add the registry path before adding the new key. I changed to using only the "New key" function and then the other registry keys (anything under HKCR\Directory) were no longer part of the install. So that problem is solved.

On the other hand, it's still true that my new registry key is created/deleted during installation/uninstallation even though I didn't set that in the properties of the keys. It's not a problem for me, but it's not what I would expect. Given that I'm a new user who has already made one mistake, it's possible that I'm just missing something.

Thanks for your help.

Jeff
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: How can I minimize registry entries?

Hi Jeff,
it's still true that my new registry key is created/deleted during installation/uninstallation even though I didn't set that in the properties of the keys.
Please note that this is the normal behavior. During an uninstall Windows Installer will remove all resources installed by the package. However, if you want to prevent this, you can use the "Permanent" attribute for the components of the registry entries (in the "Organization" page). During an uninstall, the components which use this attribute will not be removed.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”