1

I'm trying to create an installer in VS2010.

My situation is: I have 2 app, during installing a application, I need to check if the other app exists or not. If it exists, just install the first app, otherwise install both of them. How can I do this in VS2010. I've searched and find a solution here. But I don't know where I can put these codes.

Any instruction in details would be appreciated. Thank you.

4

1 回答 1

0

您可能需要考虑创建自定义 BootStrapper

从上面的链接:

安装程序是一个通用安装程序,可配置为检测和安装可再发行组件,例如 Windows Installer (.msi) 文件和可执行程序。安装程序也称为引导程序。它通过一组 XML 清单进行编程,这些清单指定元数据来管理组件的安装。

引导程序首先检测是否已安装任何先决条件。如果未安装先决条件,则引导程序首先显示许可协议。其次,在最终用户接受许可协议后,安装开始满足先决条件。否则,如果检测到所有先决条件,引导程序只会启动应用程序安装程序。

于 2012-10-29T05:39:53.230 回答