Wix安装,服务器,客户端或两者 [英] Wix installation, server, client or both

查看:59
本文介绍了Wix安装,服务器,客户端或两者的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我要创建Wix安装程序来安装,客户端服务器或基于用户选择安装两者.

I want create Wix installer to install, Client, Server or Both based on User selection.

我的问题是,当用户选择服务器"(由于其级别为1时,它已安装)时,如何限制客户端的安装.我已自定义 WixUI_Mondo .

My question is How can I restrict installing client when user selects Server (it gets installed as it has Level=1). I have customizied WixUI_Mondo.

我尝试对组件使用Condition,但是没有运气.

I tried using Condition for Component but no luck.

<Feature Id="Client" Level="1">
    <ComponentRef Id="ClientMainExecutable" />
    <ComponentRef Id="ClientConfigurations" />
  </Feature>
  <Feature Id="Server" Level="3">
     <ComponentRef Id="ServerExecutable" />
     <ComponentRef Id="ServerConfigurations" />
  </Feature>
  <Feature Id="Both" Level="1000">
  </Feature>
</Feature>

<UIRef Id="myWixUI_Mondo" />

推荐答案

请考虑按照

Please consider the danger of installing multiple software with the same setup as explained in this stackoverflow answer before pursuing more complex setup logic.

对于不是一次性交付"产品的产品,将设置分为可维护性质量保证本地化,以及几个概念上技术上的原因.尤其是可能具有完全不同的升级计划的服务器和客户端产品.

For a product that isn't a "one time delivery" it is almost always better to split the setups for maintainability, quality assurance, localization and several conceptual and technical reasons. Especially server and client products that may have different upgrade schedules outright.

也许还可以看看 这个问题 ,并使用 Wix的刻录启动器以编写更智能的启动逻辑,或者您自己的EXE启动器.

Perhaps also have a look at this question and look at using Wix's Burn launcher to write more intelligent launching logic, or your own EXE launcher.

尽管您的要求看起来相当简单,但是如果我认为有更高的要求,那么使用MSI的内置GUI几乎是没有希望的.它很复杂,但不是很灵活.尤其是缺乏控制以及事件对话框更新的情况非常令人沮丧.

Though your requirements look reasonably simple, it is almost hopeless to work with MSI's built in GUI if you have advanced requirements in my opinion. It is complicated, but not very flexible. Especially the lack of control with events and dialog updating is very frustrating.

这篇关于Wix安装,服务器,客户端或两者的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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