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.
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.