简体   繁体   English

如何在 InstallShield 项目中以静默模式安装 msi 文件

[英]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.

相关问题 InstallShield 2009基本MSI静默安装:默认情况下如何设置“修复” - InstallShield 2009 basic MSI silent install: how to set “Repair” by default 如何将Msi文件添加到Installshield Project? - How to add msi file to Installshield Project? 如何使用 InstallShield 安装水晶报表静默模式? - How i can install crystal report silent mode using InstallShield? 如何在Installshield Installscript-MSI项目中将文件安装到注册表项/值所指向的目录中? - How can I install a file to a directory pointed to by a registry key/value in an Installshield Installscript-MSI project? Installshield 2013 Basic MSI:如何在静默安装期间默认设置修复 - Installshield 2013 Basic MSI: How to set repair by default during silent install InstallShield静默安装-如何检查其是否完整? - InstallShield Silent Install - How to check if its complete? 将MSI文件添加到新的Installshield项目 - Add a MSI file to new Installshield project Installshield 静默安装日志 - Installshield Silent Install Log 在installshield basic msi的静默安装过程中禁止显示消息框,但在可视安装过程中允许此消息框 - Suppress message box during silent install of installshield basic msi, but allow it during visual install 如何在InstallShield Basic MSI项目中的ZIP文件中更改文本文件 - How to do Text file changes in a ZIP file in InstallShield Basic MSI project
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM