RestartInfo() публичный Метод

public RestartInfo ( string fileToExecute, string autoUpdateID, string argumentsForFiles, bool isAService ) : void
fileToExecute string
autoUpdateID string
argumentsForFiles string
isAService bool
Результат void
Пример #1
0
        void InstallPendingUpdate()
        {
            BeforeArgs bArgs = new BeforeArgs();

            if (BeforeInstalling != null)
            {
                BeforeInstalling(this, bArgs);
            }

            // if the update is cancelled postpone the update until later
            if (bArgs.Cancel)
            {
                if (ClosingForInstall && ClosingAborted != null)
                {
                    ClosingAborted(this, EventArgs.Empty);
                    ClosingForInstall = false;
                }
                return;
            }

            // send the client the arguments that need to run on success and failure
            if (ServiceName != null)
            {
                updateHelper.RestartInfo(ServiceName, AutoUpdaterInfo.AutoUpdateID, Arguments, true);
            }
            else
            {
                updateHelper.RestartInfo(Application.ExecutablePath, AutoUpdaterInfo.AutoUpdateID, Arguments, false);
            }
        }
Пример #2
0
 void InstallPendingUpdate()
 {
     // send the client the arguments that need to run on success and failure
     updateHelper.RestartInfo(ServiceName ?? Application.ExecutablePath, AutoUpdaterInfo.AutoUpdateID, Arguments, ServiceName != null);
 }