维克斯 - 自定义安装目录 [英] Wix - Custom installation directory

查看:245
本文介绍了维克斯 - 自定义安装目录的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用维克斯3.x和用户应该能够选择目标目录。我Setup.wxs目前喜欢这里: http://pastebin.com/uH1EjbDQ

I'm using Wix 3.x and the user should be able to choose the target directory. My Setup.wxs is currently like here: http://pastebin.com/uH1EjbDQ

什么是要求一个自定义的目标目录的用户最简单的方法是什么? (INSTALLDIR / TARGETDIR?!)我看到的例子中,人们建立有自己的对话页面,但是这是不是真的有必要,是吧?

What is the simplest way to ask the user for a custom target directory? (INSTALLDIR/TARGETDIR?!) I have seen example in which people build there own dialog pages but this isn't really necessary, is it?

更新:

当我添加

<Property Id="WIXUI_INSTALLDIR" Value="INSTALLDIR"/>
<UIRef Id="WixUI_InstallDir" />

&LT; UIRef n =WixUI_Mondo/&GT; 但在此之前&LT; /产品&GT; 我得到以下错误:

after <UIRef Id="WixUI_Mondo" /> but before </Product> I get the following error:

的主键ExitDialog /整理/的EndDialog /返回/ 1表复制ControlEvent。请取出条目之一或重命名的主键,以避免碰撞的一部分。 (LGHT0130) - C:\送货\开发\ wix30_public的\ src \分机\ UIExtension \ wixlib \ WixUI_Mondo.wxs:44

现在,当我删除&LT; UIRef n =WixUI_Mondo/&GT; 我可以生成安装。但是对话框中的选择安装类型(完整,典型,自定义)已不再显示。而另一个奇怪的事情:有时候,一个弹出对话框,说明它计算的磁盘空间(它有一个取消按钮),但最终它永远不会关闭本身。当我关闭它我还是可以继续。有没有办法解决这个问题简单的方式?

Now when I remove <UIRef Id="WixUI_Mondo" /> I can build the setup. But the dialog "Choose Setup Type" (Complete, Typical, Custom) is not shown anymore. And another weird thing: Sometimes a dialog pops up, stating it calculates disk space (it has a cancel button), but eventually it never closes by itself. When I close it I can still continue. Is there a way to fix this in a simple manner?

谢谢你,菲利普

推荐答案

在UIRef元素是指由维克斯提供的标准用户界面序列之一:

The UIRef element refers to one of the standard user interface sequences provided by WiX:

  • WixUI_Mondo
  • WixUI_Advanced
  • WixUI_FeatureTree
  • WixUI_InstallDir
  • WixUI_Minimal

您只能使用在你安装这些序列中的一个。这些每个人都有一组对话框。的信息,什么对话框包含在每个这些序列的维克斯维基的具有良好的概述

You can only use one of these sequences in your installer. Each one of these has a set of dialogs. For information on what dialogs are included in each of these sequences the WiX wiki has a good overview.

该WixUI_Mondo允许,如果他们选择自定义安装用户指定安装目录。只有WixUI_Mondo允许用户选择典型,自定义或完成安装。

The WixUI_Mondo allows the user to specify the installation directory if they choose a Custom install. Only WixUI_Mondo allows the user to choose a typical, custom or complete install.

要允许用户选择安装目录的最简单方法是使用WixUI_InstallDir对话框序列。

The simplest way to allow the user to choose the installation directory is to use the WixUI_InstallDir dialog sequence.

SharpDevelop的自己的安装程序使用WixUI_FeatureTree对话框序列。

SharpDevelop's own installer uses the WixUI_FeatureTree dialog sequence.

因此​​,如果由维克斯提供对话框的标准设置之一是不是你想要的,你可以看看定制什么对话序列的。创建自己的自定义对话框通常是最后的手段。

So if one of the standard sets of dialogs provided by WiX is not what you want you could look at customising the dialog sequence. Creating your own custom dialogs is generally the last resort.

这篇关于维克斯 - 自定义安装目录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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