Exemplo n.º 1
0
 public static void Main()
 {
     using ( var host = new WindowsHost<MainWindow>() )
     {$if$ ($showTips$ == true)
         // TODO: register and/or configure tasks to execute during start up
         // the ShowShellViewTask is automatically registered. if you do not
         // have additional start up logic, then there is nothing to do here.$endif$
         host.Run( new App() );
     }
 }
Exemplo n.º 2
0
        static void DomainInitializer(string[] args)
        {
            Console.WriteLine("Initializing the installer in the Install AppDomain");
            var arguments = new HostArguments(args);
            string endpointName = null;

            if (arguments.EndpointName != null)
            {
                endpointName = arguments.EndpointName;
            }

            username = arguments.Username;

            host = new WindowsHost(Type.GetType(arguments.EndpointConfigurationType, true), args, endpointName, arguments.Install, arguments.ScannedAssemblies);
        }
Exemplo n.º 3
0
        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();

            host = new WindowsHost(Type.GetType(arguments.EndpointConfigurationType.Value, true), args[0].Split(';').ToArray(), endpointName, commandLineArguments.Install, (arguments.InstallInfrastructure != null), scannedAssemblies);
        }
Exemplo n.º 4
0
        static void DomainInitializer(string[] args)
        {
            Console.WriteLine("Initializing the installer in the Install AppDomain");

            host = new WindowsHost( Type.GetType(args[1],true), args[0].Split(';').ToArray(), args[2]);
        }