Quantcast
Channel: wixsharp Discussions Rss Feed
Viewing all articles
Browse latest Browse all 1354

New Post: Window handle of UI window

$
0
0
I show the user a MessageBox from a custom action, and I need to pass the window handle of the install dialog as the first parameter to MessageBox.Show(), so the user can't click behind it and continue with the installation. Right now I use

FindWindow(null, "Installing " + e.ProductName)

to get it, but I'd rather have a more robust way of getting this. Since I am using the ManagedUI, ManagedUIShell looks like what I need, but it's not available in the custom action. Any good way of accessing its HWND?

By the way you are doing a terrific job on this, I've written installers for years, and this seems like the best way yet.

Viewing all articles
Browse latest Browse all 1354

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>