[英]How to install msi file in silent mode inside an InstallShield project
I have an InstallShield project which consists of two files and several folders,我有一个 InstallShield 项目,它由两个文件和几个文件夹组成,
MainSoftware.exe AuxSoftware.msi FolderA FolderB etc... MainSoftware.exe AuxSoftware.msi FolderA FolderB 等...
The main purpose of the project is just copying all of these files in the path specified by the user.该项目的主要目的只是将所有这些文件复制到用户指定的路径中。 It is very simple.
这很简单。 However, after copying AuxSoftware.msi in the destination path, I need that a silent installation begins with this file.
但是,在目标路径中复制AuxSoftware.msi后,我需要从该文件开始静默安装。 I know that a silent installation can be run by the following command:
我知道可以通过以下命令运行静默安装:
msiexec /i AuxSoftware.msi /qn msiexec /i 辅助软件.msi /qn
But I don't know how to tell InstallShield that this command must be executed in the destination path after copying AuxSoftware.msi.但是我不知道如何告诉InstallShield 复制AuxSoftware.msi 后必须在目标路径中执行此命令。
Could you please help me?请你帮助我好吗?
Thanks in advance提前致谢
You can only execute one installer at a time once it is in the InstallExecuteSequence.一旦安装程序位于 InstallExecuteSequence 中,您一次只能执行一个安装程序。 Stein has a very good, brief explanation in the answer here .
Stein 在此处的答案中有一个非常好的简短解释。
I would suggest using a bootstrapper (setup.exe) that can install them in sequence.我建议使用可以按顺序安装它们的引导程序(setup.exe)。
Thanks for your suggestions.感谢您的建议。 I found a way.
我找到了一个方法。 They call it "nested installations".
他们称之为“嵌套安装”。 I created a Custom Action having the second .msi or .exe installer I want to run after a specific point in the process of the main installation.
我创建了一个自定义操作,其中包含我想在主安装过程中的特定点之后运行的第二个 .msi 或 .exe 安装程序。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.