sysmyth
Posts: 1
Joined: Wed Sep 09, 2020 10:20 am

set public properties from configuration file?

Hi,

I'm trying to create an installer that can read in a configuration file, and set some public properties within my installer. This will allow someone testing to try multiple values quickly through the installation process.

Ideally I would like,

an xml file / or dll file that would accompany the installer, that has an example property below
url1 = https://www.google.com
url2 = https://www.yahoo.com

and when the installer is started, it will set a public property right at the beginning of the process, say

WEBSITE_URL1 = https://www.google.com
WEBSITE_URL2 = https://www.yahoo.com

is this possible?

Many thanks
Catalin
Posts: 6585
Joined: Wed Jun 13, 2018 7:49 am

Re: set public properties from configuration file?

Hello and welcome to our forums,

Yes, that is possible.

To achieve this, you can make use of our predefined support for Searches.

For instance, if your file is an XML file, you can create an XML Search.

If you want your configuration file to be of INI type, you can add a simple search and then right click on it --> "Add Search location" --> "INI".

Hope this helps.

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”