nibb
Posts: 16
Joined: Sat Feb 12, 2011 11:44 pm

Reusing Values for Upgrade

Hi friends,

I wanted to know how most of you proceed to reuse config values on a upgrade.

I write the values currently to a XML file in the install folder. I can write it to a ini as well but this is what I did from start.

When I upgrade I use "Uninstall first and install later". I cannot use the other way around because it disables firewall and other settings I use.

Its nice that AI already remembers the installation path. I actually wrote that in the xml file as well because I did not knew it would remember it.

So when a new user installs he is asked with a dialog to input a value like username, etc.

All this with the install path is saved to the xml.

I was able to make this dialog to be ignore on upgrades and the install path is already not shown as AI is smart to reuse it already. So its not displayed when someone is upgrading but Im not sure how I can make AI take the username and the other values from XML first to reuse them on upgrade.
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Reusing Values for Upgrade

Hi,

You can use XML searches to retrieve the information from your XML file. These searches can use the properties you want.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
nibb
Posts: 16
Joined: Sat Feb 12, 2011 11:44 pm

Re: Reusing Values for Upgrade

cosmin wrote:Hi,

You can use XML searches to retrieve the information from your XML file. These searches can use the properties you want.

Regards,
Cosmin
Thank you, this could work. I will try it, but I guess AI deletes the XML before installing the new version.
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Reusing Values for Upgrade

Hi,

Searches are executed before the old version is removed. So it shouldn't be a problem.

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

Return to “Common Problems”