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

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

推荐答案

刻录 :您可以使用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.

某些链接 :

Some Links:

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

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