Noam
Noam

Reputation: 1804

InstallShield: Insert powershell custom action to install sequence

I'm having installshield project and I several powershell custom actions. The scripts change the file system (extract zip files, copy files, install packages, etc). I wonder where in the install sequence should I put them?

I looked at the guilde here but they don't cover it.

I tried to put it in the execute sequence after "InstallInitialize" but that made my scripts behave weird (some of the cmdlets work and some don't).

Then I moved them to the UI sequence after "ExecuteAction" and that seems to be working fine but I read somewhere that I shouldn't put in the UI sequence any scripts that change the file system..

What is the right place?

Thanks

Upvotes: 0

Views: 1535

Answers (1)

Daniel Lee
Daniel Lee

Reputation: 694

Events that change the system should not be placed in the UI sequence, one reason is that there isn't anything preventing your user from skipping the UI sequence.

During the execute sequence, you cannot install another MSI package. Some installers may look like a .exe but have a bundled MSI. If your goal is to handle installing prerequisites, then you need to possibly use the InstallShield Suite/Advanced UI install. That has a method of managing multiple install prerequisites. I suspect that the problem you encounter is that some of those packages you try to install have imbedded MSI installs.

Upvotes: 1

Related Questions