
jyreutter1.5524935091546646E12 asked a question.
Using feature prerequisites in silent mode
Hi,
I am working on a Basic MSI project and I have started using feature prerequisites, as it allows to perform some custom actions before the prerequisites are installed.
I have noticed that a ISInstallPrerequisites custom action is scheduled only in the UI sequence.
- Is there any reason to add this custom action only in the UI sequence?
- Does that mean a silent installation (which by definition does not run the UI sequence) will not allow to install the feature prerequisites?
- Would it be a problem to move this custom action at the beginning of the Execute Sequence?
Regards
1. Go to Redistributables view
2. Right click the prerequisite and select Edit Prerequisite
3. Go to Application to Run tab
4. Add parameters accordingly
NOTE: You would want to include it in both text boxes since you are wanting the prerequisite to be hidden even when your main installer is not running in silent mode.
Step four would vary depending on what command arguments are supported for your desired installer.
SQL Server 2005 for instance, takes a /qn flag to signify that it should be completely hidden.
Thank you for your answer.
This is not what I was looking for.
What I meant was:
If I enable some feature prerequisites in my Basic MSI project, then the ISInstallPrerequisites custom action is added to the UI sequence, which allows to install the feature prerequisites when the UI sequence is executed.
The problem is: as ISInstallPrerequisites only appears in the UI sequence, the prerequisites are not installed when I launch my setup in silent mode.
Indeed, launching my setup in silent mode means that the UI sequence is not executed, hence ISInstallPrerequisites is not called.
I hope this clarifies the problem.
Regards
Bob