一个设置中的多个应用程序 [英] multiple applications in one setup

查看:119
本文介绍了一个设置中的多个应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有2个Windows服务要安装在一个安装程序中.我可以一次安装两个,但是我需要做的是;让用户选择并选择要安装的服务.我创建了一个自定义对话框.在对话框中,我有两个复选框代表服务.但是我无法弄清楚如何安装已检查的服务.

I have 2 windows services to install in one setup. I can install both in once but what I need to do is; Let the user pick and choose the service or the services to install. I have created a custom dialog. On the dialog I have two checkboxes which represents the services. But I couldnt figure out how to install the checked service(s).

推荐答案

我认为您需要在 Condition 属性上进行设置每个服务/自定义操作/文件夹,具体取决于设置的组织方式. 条件将查看自定义属性",并根据该属性的值确定是否要安装.自定义对话框上的复选框将设置自定义属性"的值.

这应该可以帮助您开始:
自定义Windows Installer程序包 [
I think you will need to set the Condition property on each service/custom action/folder depending on how your setup is organized. The Condition will look at a Custom Property and determine based on the value of the property whether or not to install. The checkboxes on your custom dialog would set the value of the Custom Property.

This should get you started:
Customizing Windows Installer Packages [^]

Note: You may need to use Orca (or some other tool for editing MSI databases) to create your Custom Property.


这篇关于一个设置中的多个应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆