Installer values reload while upgrading - Advanced Installer Community
vasu0020
Posts: 22
Joined: Wed Aug 27, 2014 9:55 am

Installer values reload while upgrading

Dear Advanced installer Team,

My requirement is to save the SQL credentials and IIS configuration values at first installation and reload the saved values in to the controls while upgrading the installer to the next version.

Please let me know the best option to do this.

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

Re: Installer values reload while upgrading

Hi Srinu,

To achieve this you can use the method described in the "Read Registray value during uninstall" thread.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
vasu0020
Posts: 22
Joined: Wed Aug 27, 2014 9:55 am

Re: Installer values reload while upgrading

Dear Eusebiu,

In my installer first i will install the latest version and then uninstall the older version. I think the given solution will not work for me.

Can you please provide me a sample .aip file to do this that will be very helpful.

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

Re: Installer values reload while upgrading

Hi Srinu,

I'm afraid that I do not have a sample project that implements your scenario, but the solution I mentioned should work in your case, too. Can you try and let me know if any problem appears?

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
vasu0020
Posts: 22
Joined: Wed Aug 27, 2014 9:55 am

Re: Installer values reload while upgrading

Dear Eusebiu,

I have done this by enabling "Set Persistent Property". However this option is not working for Path edit controls.

Can you please let me know the solution for Path Edit controls.

Thanks in advance
Srinu
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Installer values reload while upgrading

Hi Srinu,

This option should work for "Path Edit" controls, too. Did you check the "Set persistent property" option for the properties related to those controls and it did not work for you? Please make sure that the values of those properties are not changed during the installation by some of your custom actions.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
vasu0020
Posts: 22
Joined: Wed Aug 27, 2014 9:55 am

Re: Installer values reload while upgrading

Dear Eusebiu,

We have a problem with registry values for multiple controls i.e.) Path edit(Browse), Dropdown List (IIS entity) and Check Box.
I have set "Set Persistence Property" for these controls but still i can't see the persistence values loading into the controls.

I am attaching .AIP please have a look and let me know the issue.

Thanks
Srinu
Attachments
SetPersistentForCheckBox.aip
(31.37 KiB) Downloaded 445 times
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Installer values reload while upgrading

Hi Srinu,

Your project seems to be configured correctly. Do all the controls you mentioned not preserve their valued during the upgrade? If so, can you please send me a verbose log of the installation, so I can investigate it?

Indeed, I noticed that the value of the checkbox control is not preserved when the "Selected" attribute is set to "True" for that checkbox. This happens because of an architectural design limitation. So, you can set that attribute to "False" by default in order to avoid this.

If you want to keep the "Selected" attribute set to "True" and still preserve the state of the checkbox you can use a "Set installer property" custom action after the "Install Execute Sequence -> Searches" action group to set another property based on the state of the checkbox (i.e. Checked/Not Checked) and set that property as persistent.

Then, add a new "Set installer property" custom action after the "Wizard Dialogs Stage -> Searches" action group that will uncheck the checkbox (set its property to empty) based on the value of the other property. For example:
  • Install Execute Sequence:
    Property: CHECKBOX_STATE
    Value: Not Checked
    Condition: NOT CHECKBOX_PROP


    Wizard Dialogs Stage:
    Property: CHECKBOX_PROP
    Value: {}
    Condition: CHECKBOX_STATE = "Not Checked"
Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”