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!

edsintern
Posts: 1
Joined: Wed Oct 18, 2017 3:10 pm

Create single file .exe that pulls updates from .txt or .xlsx

Hello,

I am new user to Advanced Installer. I want to create a single .exe file with a set of updates that need to be deployed on various workstations. The problem is, not each workstation needs the exact same updates, and I want to be able to edit and define each set of updates for each workstation within a text or excel file.

Is this possible? If not, how can I manipulate the .exe to select the desired updates?

Thanks
Sorin
Posts: 663
Joined: Mon May 08, 2017 1:03 pm

Re: Create single file .exe that pulls updates from .txt or .xlsx

Hello and welcome to our forums!

The most straight-forward implementation of your scenario would be using an INI config file. This file could be placed next to the setup. You could configure some INI search using our predefined support that will retrieve the required install state of the features from the ini file. The results of these searches would be used to condition the installation of their associated features.

This is the complete method:

1. Create an INI file, named for example "config.ini" with the following structure :

Code: Select all

[Feature1]
Install=yes

[Feature2]
Install=no
The state of the feature will be contained by the Install key of each section (feature)

2. Go to "Search" page of your project and create a search new search. Right click on it and select "Add search location" - "INI"
Configure the INI search as follows:
"File name: config.ini"
"Section: Feature1"
"Key: Install"
"Type : Retrieve the raw value from INI file"
"Folder : [SETUPEXEDIR]"

Repeat this workflow for each one of your features.

Note: SETUPEXEDIR property will be resolved with the EXE setup path, so for this configuration you need to place the config.ini file next to the exe setup.

3. Go to "Organization" page and create a new feature associated with each of the updates you need to deploy. Place the components associated with the files of the update under this feature.These feature should have the following "Installation Behavior" settings : Not installed. In the "Installed if" section enter a condition based on the result property of the associated INI search, for example for Feature1 use the following condition :

Code: Select all

INI_FEATURE1="yes" 
where INI_FEATUER1 is the result property associated with the INI search for the feature 1 required installation state.

In order to have a better view of this method please take a look on the attached sample configured for your scenario.


Best regards,
Sorin
Attachments
sample INI config.zip
(147.9 KiB) Downloaded 267 times
Sorin Stefan - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”