public SquirreledHost(
            ISelfUpdatableService selfUpdatableService,
            string serviceName        = null,
            string serviceDisplayName = null, IUpdater updater = null, bool withOverlapping = false, bool promtCredsWhileInstall = false)
        {
            var assemblyName = Assembly.GetEntryAssembly().GetName().Name;

            this.serviceName            = serviceName ?? assemblyName;
            this.serviceDisplayName     = serviceDisplayName ?? assemblyName;
            this.selfUpdatableService   = selfUpdatableService;
            this.withOverlapping        = withOverlapping;
            this.promtCredsWhileInstall = promtCredsWhileInstall;
            this.updater = updater;
        }
Ejemplo n.º 2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="SquirreledHost"/> class.
 /// </summary>
 public SquirreledHost(
     ISelfUpdatableService selfUpdatableService, Assembly pHostAssembly, IUpdater updater = null, bool withOverlapping = false, RunAS pTypeRunAs = RunAS.LocalSystem)
 {
     this.HostAssembly         = pHostAssembly;
     this.selfUpdatableService = selfUpdatableService;
     this.withOverlapping      = withOverlapping;
     TypeRunAs = pTypeRunAs;
     promptForCredentialsWhileInstalling = false;
     serviceLogin    = "";
     servicePassword = "";
     if (pTypeRunAs == RunAS.PromptForCredentials)
     {
         promptForCredentialsWhileInstalling = true;
     }
     this.updater = updater;
 }