Beispiel #1
0
        public void Start(string[] args)
        {
            var startupContext = ParseArgs(args);
            var targetFolder   = GetInstallationDirectory(startupContext);

            _installUpdateService.Start(targetFolder, startupContext.ProcessId);
        }
Beispiel #2
0
        public void Start(string[] args)
        {
            var startupContext = ParseArgs(args);
            var targetFolder   = GetInstallationDirectory(startupContext);

            Logger.Info("Starting update process. Target Path:{0}", targetFolder);
            _installUpdateService.Start(targetFolder, startupContext.ProcessId);
        }
Beispiel #3
0
        public void Start(string[] args)
        {
            int processId = ParseProcessId(args);

            var    exeFileInfo  = new FileInfo(_processProvider.GetProcessById(processId).StartPath);
            string targetFolder = exeFileInfo.Directory.FullName;

            logger.Info("Starting update process. Target Path:{0}", targetFolder);
            _installUpdateService.Start(targetFolder);
        }
Beispiel #4
0
        public void Start(string[] args)
        {
            var    startupContext = ParseArgs(args);
            string targetFolder;

            if (startupContext.ExecutingApplication.IsNullOrWhiteSpace())
            {
                var exeFileInfo = new FileInfo(_processProvider.GetProcessById(startupContext.ProcessId).StartPath);
                targetFolder = exeFileInfo.Directory.FullName;
            }

            else
            {
                var exeFileInfo = new FileInfo(startupContext.ExecutingApplication);
                targetFolder = exeFileInfo.Directory.FullName;
            }

            logger.Info("Starting update process. Target Path:{0}", targetFolder);
            _installUpdateService.Start(targetFolder, startupContext.ProcessId);
        }