Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
265 views
in Technique[技术] by (71.8m points)

c# - Wix default folder dialog

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.

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

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:


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.

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:


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...