Exemplo 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);
        }
Exemplo n.º 2
0
 public Process RunFile(WebFile file, string args = "")
 {
     //args += $" /{(IsInProgramFile() ? "ALLUSERS" : "CURRENTUSER")}";
     return(file.Start(args));
 }