I wrote a tool that should be called as part of a .Net installer project.
It should ask the user for a directory and then update my config.
I use the following code to show the file-chooser dlg:
{
FolderBrowserDialog dlg = new FolderBrowserDialog();
dlg.Description = "Trace-Verzeichnis auswählen";
dlg.ShowNewFolderButton = true;
if (DialogResult.OK == dlg.ShowDialog( this ))
{
tbTraceDir.Text = dlg.SelectedPath;
}
}
If I run the tool from the command line, the FolderBrowserDialog
shows ok.
If it is called as part of the installer package, from the installer class, it hangs indefinitely at ShowDialog()
Edit: Same behaviour when I run it form VStudio or from the command line... I am running .Net 4 (not the client profile)
Any hints what I might be doing wrong?
thanks
Mario