Esempio n. 1
0
        public Process RunUpdate(WebFile file, string args = "")
        {
            args += " /NOCANCEL /NORESTART /CLOSEAPPLICATIONS";
            if (DateTime.UtcNow - AppConfigs.Configuration.LastDonationNagTime < AppConfigs.Configuration.TimeBetweenDonateNag)
            {
                args += " /NODONATE";
            }
            else
            {
                AppConfigs.Configuration.LastDonationNagTime = DateTime.UtcNow;
                AppConfigs.Configuration.Save();
            }

            return file.Start(args);
        }
 public Process RunFile(WebFile file, string args = "")
 {
     //args += $" /{(IsInProgramFile() ? "ALLUSERS" : "CURRENTUSER")}";
     return(file.Start(args));
 }