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 :
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
FOLLOW US
Get the latest news in Application Packaging