feature install order - Advanced Installer Community
Hunted
Posts: 10
Joined: Mon Oct 21, 2013 1:44 pm

feature install order

I have a installer with different features.
Is it possible to change the order in wich these feature are installed?
Because there are several files with same name and path but diferent code.

Example: I have 3 features:

Fature A: File A + File X(1)
Fature B: File B + File X(2)
Fature C: File C + File X(3)

So what i want, is that if all 3 features are installed, File X(3) is installed.
I thought someting like an order of the features could do that but i dont know if or how this ist posible.

Greetings Hunted
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: feature install order

Hi there,

Windows Installer doesn't guarantee the installation order of the features, this is why conditioning one feature's installation based on another feature's action is not possible.

You can try conditioning the installation of the file based on a custom feature selection dialog. If a user unselects Feature A or Feature B from the dialog then don't install the file:
- follow How do I show a custom feature selection dialog? article, the "Use checkboxes to select which features will be installed" section
- then go to the Files and Folders page, select the file and press F8
(this will jump to the file's associated component in the Organization page)
- now type the following text in the "Condition" field of the component in the Organization page

Code: Select all

CHECK1 AND CHECK2
where CHECK1 and CHECK2 are the properties associated with Feature 1(or A) and Feature 2(or B).

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”