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!

JustinWolbeck
Posts: 7
Joined: Tue Aug 11, 2015 8:11 pm

Conditionally Add an INI section and keys

I want to have a conditional dialog show if a user chooses option X. Then only if they choose the option prompt them for some settings I need to place in an ini file we deliver.

I think I have everything else working except I do not see a way to condition adding to the ini file. Is there a way to do this?
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Conditionally Add an INI section and keys

Hello,

The IniFile Table file does not allow to conditionally create an entry in the .ini file.

I have added this improvement on our TODO list and it will be available in a future version of Advanced Installer. Thank you for your suggestion.

If you need to update .ini files, the workaround will be to create two .ini files, and depending the selected option by the user, only one of the .ini file get installed. Please note that you can condition the .ini file installation through its component.

If you don't need to update existing .ini files you can use the .XML file support as you can conditionally add elements in an .XML file based on a condition. Through the Condition field from XML Element Settings Tab you can add a condition to create this element on install.

Please let me know if you need any help.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
JustinWolbeck
Posts: 7
Joined: Tue Aug 11, 2015 8:11 pm

Re: Conditionally Add an INI section and keys

Thanks, we will look forward to the feature.

We do need to use an INI file as our program natively handles INI files much better than XML files. Good suggested workaround in the meantime.
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Conditionally Add an INI section and keys

You're welcome,

Should there be any difficulty you encounter implementing something, please do not hesitate to contact me and I will gladly assist.

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

Return to “Building Installers”