简体   繁体   中英

someone knows how to add a setup file into a setup project in visual studio?

我有一个项目也需要安装其他msi的文件才能运行我以前的应用程序,但是我想知道我的安装程序项目是否可以仅在一个安装文件中完成所有这一切,这可能吗?

From what I know, you can add merge module (msm) in the VS Setup project and not MSI files directly. You can check with msi provider if msm file is also available or not. In case msm files are not available, one of the work-around would be to include msi files in setup package and launch them using custom action. Obvious issue is that if child msi fails then you may not able to rollback entire thing cleanly.

Usually this is done through prerequisites. In Visual Studio you can add them through the project properties dialog.

This requires an EXE bootstrapper. So if you want a single setup file you can try finding a tool which can include everything in a bootstrapper. Most commercial setup authoring tools can do this.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM