Manoj Savalia Manoj Savalia - 5 months ago 49
C# Question

Custom Installer in .Net showing Form behind installer

public partial class Installer1 : Installer
public Installer1()

public override void Install(System.Collections.IDictionary stateSaver)
private void Installer1_AfterInstall(object sender, InstallEventArgs e)
Form1 topmostForm = new Form1();
topmostForm.TopMost = true;
} }

I need to display the topmostForm in front of the default Windows Installer UI. The above is sample code inside my CustomAction that I am using to create a Form. Setting the TopMost property or using ShowDialog is not helping. Is there any other solution to make my form the top most and focussed?


If you want to show your own UI in the installer, you won't be able to use a setup and deployment project, because it lacks the features necessary to implement that. Consider using an installer toolkit like WiX or Inno Setup instead.

Concerning the first part of your question, are you passing the custom dialog box in the owner argument to MessageBox.Show()?