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!

aatwo
Posts: 5
Joined: Thu Feb 12, 2015 1:46 pm

Installation Values

Hi everyone. I just encountered an issue with advanced installer and was hoping to get some advice.

I have a number of properties that can be specified using command line arguments. They all have default values and at the end of the installation they are written to the registry. The problem I am having is that if a user performs an upgrade or re-installs the product all their former registry values are lost are set to the new default installation values.

Is there a way around this?

Kind regards, Aaron.
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Installation Values

Hi Aaron and welcome to Advanced Installer forums.

In order to achieve this, you can go in the "Registry" page, right-click on your registry keys and select "Properties", then go to the "Operations" tab and check the "Preserve key content" option using the condition "OLDPRODUCTS".

For more details you can take a look on the How do I prevent a file or registry entry from being uninstalled or repaired article.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
aatwo
Posts: 5
Joined: Thu Feb 12, 2015 1:46 pm

Re: Installation Values

Hi and thanks for the reply. I have tried the suggestion above but am still encountering the issue.

Basically I have an application that can auto update itself. When it downloads and installs a new version of my application the registry values that were written by the previous version of the installer are set to the new installers default values.

I have a few solutions in mind (for example I can gather the installation parameters required and pass them to the new installer when performing the update) but I was hoping to achieve this using advanced installer. Is there a way to load install parameters from pre-existing registry values? Or perhaps are there any other suggestions?

Kind regards, Aaron.
aatwo
Posts: 5
Joined: Thu Feb 12, 2015 1:46 pm

Re: Installation Values

Issue has been resolved by checking the registry for pre-existing values and passing them into the installer.
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Installation Values

Hi Aaron,

I'm glad you solved the problem. Just let us know anytime you need help.

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

Return to “Building Installers”