Exemple #1
0
        public override int Run(string[] remainingArguments)
        {
            if (!SixElevatedServiceMisc.IsElevatedServiceInstalled())
            {
                return(0);
            }

            ManagedInstallerClass.InstallHelper(new[] { "/u", Common.Paths.EntryLocation.ToString() });
            return(0);
        }
Exemple #2
0
        public int Run(params string[] args)
        {
            MainLog.Logger.Info("Args: {0}", args.CombineParameters());

            if (Environment.UserInteractive || (args.Length != 0) ||
                !SixElevatedServiceMisc.IsElevatedServiceInstalled())
            {
                return(RunCommandsAndLog(args));
            }

            Run(this);
            return(0);
        }