Create a permanent registry entry - 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!

dms
Posts: 164
Joined: Tue Aug 28, 2007 7:11 am
Location: UK

Create a permanent registry entry

I have an application that requires that a registry setting remains on the computer after uninstall. Cosmin kindly pointed me to the fact that I needed to mark this particular entry as 'Do not register this component with the Windows Installer' in the general section of the organisation page, whic I duly did and it doesn't get removed on uninstall.

It is also vital that the original install value remains and does not get overwritten but a subsequent install or upgrade. I assumed that checking 'Permanent' and 'Never Overwrite' in the attributes section of the organisation page would do the trick. However on susequent installations the value of that registry key is being overwritten. What else should I be doing to ensure that this particular entry remains in place and is never overwritten on subsequent installs or upgrades?

Thanks

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

Hi Dom,

This happens because of the "Do not register this component with the Windows Installer" option for the component of the registry entry.

If you need this registry entry to always remain the same you will use the "Permanent" and "Never Overwrite" attributes, without using the "Do not register this component with the Windows Installer" option.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
dms
Posts: 164
Joined: Tue Aug 28, 2007 7:11 am
Location: UK

Thanks Cosmin, That makes sense.

Return to “Common Problems”