Wix 默认文件夹对话框 [英] Wix default folder dialog

查看:21
本文介绍了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 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.

一些链接:

这篇关于Wix 默认文件夹对话框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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