Wix 默认文件夹对话框

Wix default folder dialog(Wix 默认文件夹对话框)
本文介绍了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 默认文件夹对话框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!

本站部分内容来源互联网,如果有图片或者内容侵犯您的权益请联系我们删除!

相关文档推荐

DispatcherQueue null when trying to update Ui property in ViewModel(尝试更新ViewModel中的Ui属性时DispatcherQueue为空)
Drawing over all windows on multiple monitors(在多个监视器上绘制所有窗口)
Programmatically show the desktop(以编程方式显示桌面)
c# Generic Setlt;Tgt; implementation to access objects by type(按类型访问对象的C#泛型集实现)
InvalidOperationException When using Context Injection in ASP.Net Core(在ASP.NET核心中使用上下文注入时发生InvalidOperationException)
LINQ many-to-many relationship, how to write a correct WHERE clause?(LINQ多对多关系,如何写一个正确的WHERE子句?)