示例#1
0
        public void InstallUpdate()
        {
            var portable = Settings.IsPortable ? "/Portable 1" : "/Portable 0";

            logger.Info("Installing new update to {0}, in {1} mode", Paths.ProgramFolder, portable);

            Task.Run(() =>
            {
                Process.Start(updaterPath, string.Format(@"/ProgressOnly 1 {0} /D={1}", portable, Paths.ProgramFolder));
            });

            playniteApp.Quit();
        }
示例#2
0
        public void InstallUpdate()
        {
            var portable = Settings.IsPortable ? "/PORTABLE" : "";

            logger.Info("Installing new update to {0}, in {1} mode", Paths.ProgramFolder, portable);

            Task.Run(() =>
            {
                Process.Start(updaterPath, string.Format(@"/SILENT /NOCANCEL /DIR=""{0}"" /UPDATE {1}", Paths.ProgramFolder, portable));
            });

            playniteApp.Quit();
        }
示例#3
0
        public void InstallUpdate()
        {
            var portable = PlayniteSettings.IsPortable ? "/PORTABLE" : "";

            logger.Info("Installing new update to {0}, in {1} mode", PlaynitePaths.ProgramPath, portable);

            Task.Run(() =>
            {
                var args = string.Format(@"/SILENT /NOCANCEL /DIR=""{0}"" /UPDATE {1}", PlaynitePaths.ProgramPath, portable);
                if (FileSystem.CanWriteToFolder(PlaynitePaths.ProgramPath))
                {
                    ProcessStarter.StartProcess(updaterPath, args);
                }
                else
                {
                    ProcessStarter.StartProcess(updaterPath, args, true);
                }
            });

            playniteApp.Quit();
        }