WixUI_Mondo 和 WixUI_InstallDir [英] WixUI_Mondo and WixUI_InstallDir

查看:16
本文介绍了WixUI_Mondo 和 WixUI_InstallDir的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以结合 WixUI_Mondo 和 WixUI_InstallDir?我需要一个对话框,用户可以在其中更改目标文件夹,然后继续选择安装类型.请帮忙,我是 Wix 工具集的新手.谢谢!

解决方案

Mondo:我可能在这里遗漏了一些您需要的基本内容,但 Mondo 对话框集确实有一个这样的对话框 - 按顺序第三个,选择 "Custom".也许这就是你所需要的?:

要使 Browse... 按钮起作用(而不是变灰),您必须

<Feature Id="MainApplication" Title="MainApplication" ConfigurableDirectory="MYCUSTOMDIR"><!-- 你的东西在这里--></功能>

以及 WiX 源中的其他位置,实际可配置目录:

<!-- 必须更改的模型 GUID,自定义目标目录不适用于自动 GUID --><Component Id="MyFile.exe" Guid="{00000000-0000-0000-0000-000000000000}" Feature="FeatureDirectory"><File Source="C:\SourceControl\MyFile.exe"/></组件></目录>

Is it possible to combine WixUI_Mondo and WixUI_InstallDir? I need a dialog where the user is able to change the destination folder then proceed to selecting instalation type. Please help, I am new to Wix toolset. Thanks!

解决方案

Mondo: I might be missing something essential you need here, but the Mondo dialog set does have a dialog like that - 3rd in sequence, select "Custom". Maybe this is all you need?:

For the Browse... button to be work (not be grayed out) you must set the feature directory to be configurable. See that link - some way down the page - or minimal markup at the bottom here:

<!-- A configurable directory feature -->
<Feature Id="MainApplication" Title="MainApplication" ConfigurableDirectory="MYCUSTOMDIR">
        <!-- your stuff here -->
</Feature>

And elsewhere in the WiX source, the actual configurable directory:

<Directory Id="MYCUSTOMDIR">
     <!-- Mock-up GUID that MUST be changed, custom target directories do not function with auto-GUIDs -->
     <Component Id="MyFile.exe" Guid="{00000000-0000-0000-0000-000000000000}" Feature="FeatureDirectory">
         <File Source="C:\SourceControl\MyFile.exe" />
     </Component>    
</Directory>

这篇关于WixUI_Mondo 和 WixUI_InstallDir的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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