woodhoct
Posts: 15
Joined: Wed Nov 04, 2015 9:52 pm

custom dialogue box determines configuration settings

Hello,

I have been using AI Pro for a while and am evaluating AI Enterprise.

I have a dialogue box for a user like QA to select the environment they want to test my code. I am having difficulty figuring out how to either update values in my .config file or swap out my app.config with a config for the selected environment.

Any insight will be appreciated.
Dan
Posts: 4529
Joined: Wed Apr 24, 2013 3:51 pm

Re: custom dialogue box determines configuration settings

Hello and welcome to Advanced Installer forums,

To to import and edit an .config file, please take a look on the How to import and edit an XML file? article that explains how to import and edit XML files into your installation project.

If you encounter any difficulties in implementing your installation scenario just send us a description of your installation scenario and we will gladly try to guide you.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
woodhoct
Posts: 15
Joined: Wed Nov 04, 2015 9:52 pm

Re: custom dialogue box determines configuration settings

Hello,

I'm still not understanding how to do what I'm trying to do. I've emailed support and attached my AIP file.
Dan
Posts: 4529
Joined: Wed Apr 24, 2013 3:51 pm

Re: custom dialogue box determines configuration settings

Hello,

This is happening because you are using a property value for the radio button group control.

Please note that Windows Installer properties are global variables that Windows Installer uses during an installation.
There are two main types of Windows Installer properties:
  • Private Properties (contain lower-case letters in their name, example: My_Prop)
  • Public Properties (contain only upper-case letters in their name, example: MY_PROP)
The difference between Public and Private properties consists in the way their values are being passed on. Only the value of a Public Property is passed on from the Wizard Dialogs Stage (in which the dialogs are showed) to the Install Execution Stage (in which the system is modified).

Therefore, make sure that you use a Public Property for an UI control (Editbox, Combobox etc) if you want its value to be available in the InstallExecute Sequence (for instance, if the value of this Property is written in the registry, .ini file), otherwise you will get the default value assigned to this property.

Please let me know if the behaviour still persist after performing the corresponding change.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
woodhoct
Posts: 15
Joined: Wed Nov 04, 2015 9:52 pm

Re: custom dialogue box determines configuration settings

Thanks Dan.

I'll give this a try. This is very helpful.
Dan
Posts: 4529
Joined: Wed Apr 24, 2013 3:51 pm

Re: custom dialogue box determines configuration settings

You're welcome,

Please let me know if you need any help.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”