static void DomainInitializer(string[] args) { Console.WriteLine("Initializing the installer in the Install AppDomain"); Parser.Args commandLineArguments = Parser.ParseArgs(args); var arguments = new HostArguments(commandLineArguments); string endpointName = string.Empty; if (arguments.EndpointName != null) { endpointName = arguments.EndpointName.Value; } string[] scannedAssemblies = null; if (arguments.ScannedAssemblies != null) { scannedAssemblies = arguments.ScannedAssemblies.Value.Split(';').ToArray(); } if (arguments.Username != null) { MsmqUtilities.AccountToBeAssignedQueuePermissions(arguments.Username.Value); } host = new WindowsHost(Type.GetType(arguments.EndpointConfigurationType.Value, true), args, endpointName, commandLineArguments.Install, (arguments.InstallInfrastructure != null), scannedAssemblies); }