I am developing a Windows installation project using the installer class. Before installation, the Windows form opens and it opens successfully. I want to open this form as the topmost form, but it opens behind the installation wizard in Windows 7.
This form opens as the topmost form in Windows XP during setup. The problem only occurs in Windows 7.
I use the following code to open this form in my installer class:
namespace MyApp
{
[RunInstaller(true)]
public partial class DbInstallerClass : Installer
{
public DbInstallerClass()
{
InitializeComponent();
Form frm = new DBInstallerForm();
frm.TopMost = true;
frm.ShowDialog();
}
}
}
Is this issue specific to a specific platform or OS?
source
share