Wix default folder dialog(Wix 默认文件夹对话框)
问题描述
我想知道是否有一种方法可以使用 Windows 选择文件夹对话框,而不是 WIX 中默认设置的非常难看的对话框.
I would like to know if there is a way how to use windows choose folder dialog instead of really bad looking one which is in WIX as a default.
推荐答案
Burn:您可以使用 WiX 的 Burn(引导程序等)替换整个 MSI GUI自定义引导程序应用程序.引导程序应用程序可以在 GUI 方面做任何事情".
Burn: You can replace the whole MSI GUI by using WiX's Burn (bootstrapper and more) featuring a custom bootstrapper application. The bootstrapper application can do "anything" in terms of GUI.
请查看这些类似的问题 &答案:
Please see these similar questions & answers:
- 具有现代外观和感觉的 WIX 安装程序
- 将文本颜色更改为 Wix 对话框
- 从 MSI 中删除默认对话框(请检查所有答案)
- WIX Installer with modern look and feel
- Changing text color to Wix dialogs
- Removing Default dialogs from MSI (please check all answers)
MSI:是的,应该可以通过将自定义操作连接到 MSI 对话框的 浏览按钮单击来显示标准的 Windows 目录选择对话框事件 - 然后将调用文件夹部分的 Windows 通用对话框.然后,您可以使用 C++ 或 C# 甚至我猜的脚本从自定义操作中设置目录属性.从未尝试过脚本.这个旧的 C++ 项目可以通过一些小的按摩工作一个>.或者 可能是这里的第一部分.
MSI: And yes, it should be possible to show the standard Windows directory selection dialog by hooking up a custom action to the MSI dialog's browse button click event - which will then invoke the Windows common dialog for folder section. Then you set the directory property from the custom action using either C++ or C# or even scripts I guess. Never tried scripts. This old C++ project could work with some minor massage. Or maybe the first section here.
我在很多年前就这样做了,我记得我遇到了对话 Z 顺序的问题.换句话说,在某些情况下,文件夹选择器对话框出现在 MSI 对话框下方.我不记得我做了什么来修复它,但我认为它涉及一些功能失调的发送密钥,然后我得出结论认为 MSI 对话框存在根本缺陷.我认为在您浪费大量时间之前进行烟雾测试是必要的.这是我多年来没有尝试过的最好的建议.
I did this many years ago, and as I recall I ran into problems with dialog Z-order. In other words the folder selector dialog showed up underneath the MSI dialogs in some cases. I can't recall what I did to fix it, but I think it involved some dysfunctional send-keys stuff before I concluded that MSI dialogs are fundamentally flawed. I think a smoke test is in order before you waste significant time on it. That is the best advice I can cough up since I haven't tried it in years.
一些链接:
- MsiSetExternalUI 函数
- 自定义操作和用户界面
- Win32 - 从 C/C++ 中选择目录对话框
这篇关于Wix 默认文件夹对话框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:Wix 默认文件夹对话框


基础教程推荐
- 如何激活MC67中的红灯 2022-01-01
- MS Visual Studio .NET 的替代品 2022-01-01
- 将 XML 转换为通用列表 2022-01-01
- rabbitmq 的 REST API 2022-01-01
- c# Math.Sqrt 实现 2022-01-01
- 将 Office 安装到 Windows 容器 (servercore:ltsc2019) 失败,错误代码为 17002 2022-01-01
- 有没有办法忽略 2GB 文件上传的 maxRequestLength 限制? 2022-01-01
- SSE 浮点算术是否可重现? 2022-01-01
- 为什么Flurl.Http DownloadFileAsync/Http客户端GetAsync需要 2022-09-30
- 如何在 IDE 中获取 Xamarin Studio C# 输出? 2022-01-01