InstallShield:插入powershell自定义操作以安装序列

时间:2021-03-05 22:40:18

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?

我有installshield项目和几个powershell自定义操作。脚本更改文件系统(提取zip文件,复制文件,安装包等)。我想知道我应该把安装顺序放在哪里?

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

我看着这里的guilde,但他们没有掩盖它。

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).

我尝试将它放在“InstallInitialize”之后的执行序列中,但这使得我的脚本表现得很奇怪(一些cmdlet工作而一些不工作)。

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..

然后我将它们移动到“ExecuteAction”之后的UI序列,这似乎工作正常但我在某处读到了我不应该在UI序列中添加任何更改文件系统的脚本。

What is the right place?

什么是正确的地方?

Thanks

谢谢

1 个解决方案

#1


1  

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.

更改系统的事件不应放在UI序列中,原因之一是没有任何东西阻止用户跳过UI序列。

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.

在执行序列期间,您无法安装另一个MSI包。某些安装程序可能看起来像.exe但具有捆绑的MSI。如果您的目标是处理安装先决条件,则需要使用InstallShield Suite / Advanced UI安装。这有一种管理多个安装先决条件的方法。我怀疑您遇到的问题是您尝试安装的某些软件包嵌入了MSI安装程序。

#1


1  

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.

更改系统的事件不应放在UI序列中,原因之一是没有任何东西阻止用户跳过UI序列。

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.

在执行序列期间,您无法安装另一个MSI包。某些安装程序可能看起来像.exe但具有捆绑的MSI。如果您的目标是处理安装先决条件,则需要使用InstallShield Suite / Advanced UI安装。这有一种管理多个安装先决条件的方法。我怀疑您遇到的问题是您尝试安装的某些软件包嵌入了MSI安装程序。