cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Reureu
Level 10

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
Labels (1)
0 Kudos
(6) Replies
AaronM
Level 6

If your goal is to have the installer that is kicked off from your installer to be hidden from the user, you could pass command line arguments accordingly in the prerequisite definition.

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.
0 Kudos
AaronM
Level 6

FYI - If you are ever installing SQL Server, I would highly recommend using /qb instead of /qn. We have found that SQL Server fails at an unacceptable rate and in cases where it does fail users will not see a descriptive error message other than that it failed if using /qn flag. The /qb flag will be fully visible but not allow any user interaction.
0 Kudos
Reureu
Level 10

Hi Aaron,

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
0 Kudos
MichaelU
Level 12 Flexeran
Level 12 Flexeran

Prerequisites can, in general, only be launched outside the execute sequence. This is because many prerequisites install MSI packages, and you can only do one of those at a time. If you need to support silent installations with feature prerequisites, launch them with a command line similar to setup.exe /s /v"/qn ADDLOCAL=...", where ADDLOCAL=... (replace the ellipsis) is optional, but allows specific features to be specified and assumed for feature prerequisite selection.
0 Kudos
marketware
Level 6

If you run SQL Server Express silent...with all dialog options defaulting, can you still see a progress bar to alert the user that something is happening?

Bob
0 Kudos
MichaelU
Level 12 Flexeran
Level 12 Flexeran

Last I knew, SQL Server Express only had an EXE version. Since we can only capture and show progress from raw MSI packages, you would have to instruct the SQL Server Express EXE to show its progress somehow (if that's possible).
0 Kudos