buri
Posts: 17
Joined: Mon Nov 25, 2013 8:59 pm

Property Values Resetting to Default on Uninstall

I let users customize certain values in my installer. When my custom actions run on uninstall to basically undo what other custom actions did during install, the values that get passed are the defaults as listed in AI's Install Parameters screen. The result is that the custom actions on uninstall don't do what I need them to. Is this a bug or by design?

If by design, I've thought of moving these values to the registry. As AI can automate the creation of registry keys, how do I have AI report the key location so I don't have to parse together a string?

Thanks.
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Property Values Resetting to Default on Uninstall

Hi,
Is this a bug or by design?
This is the Windows Installer default behavior.
If by design, I've thought of moving these values to the registry. As AI can automate the creation of registry keys, how do I have AI report the key location so I don't have to parse together a string?
The easiest way to achieve what you want is to check the Set persistent property option for your properties in the Install Parameters page.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
buri
Posts: 17
Joined: Mon Nov 25, 2013 8:59 pm

Re: Property Values Resetting to Default on Uninstall

Thanks! When I set a property to be persistent, can I use it normally like I do now or do I need to manually make a call to the registry to get its value?
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Property Values Resetting to Default on Uninstall

Hi,

If you set a property as persistent, you don't have to do anything manually, all the work will be done automatically by the installer (it will write the property to the registry and will get its value from there).

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”