I'm using Inno Setup to create the setup file for my C# application! If the user choose C:\Program Files\ as installation folder the tool can't start with exception
'System.NullReferenceException'
at Main
static class Program
{
[STAThread]
static void Main()
{
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
Application.Run(new View.MainGUI()); // EXCEPTION IN THIS LINE
}
}
Remarks:
- installation works fine with
PrivilegesRequired=admin
in[Setup]
- default folder for installation C:\UserData\ (no issues)
- Windows 7 32bit
Any hints why the application crashes here?
Thx