public static void Main(string[] args) { if (args.Length > 0 && File.Exists(args[0])) { InfInstallerApp driverInstaller = new InfInstallerApp(); driverInstaller.InstallInfDriverFile(args[0]); } }
public static void Main(string[] args) { // this sets the global culture for the app and all new threads CultureInfo.DefaultThreadCurrentCulture = CultureInfo.InvariantCulture; CultureInfo.DefaultThreadCurrentUICulture = CultureInfo.InvariantCulture; // and make sure the app is set correctly Thread.CurrentThread.CurrentCulture = CultureInfo.InvariantCulture; Thread.CurrentThread.CurrentUICulture = CultureInfo.InvariantCulture; if (args.Length > 0 && File.Exists(args[0])) { InfInstallerApp driverInstaller = new InfInstallerApp(); driverInstaller.InstallInfDriverFile(args[0]); } }