diff --git a/innoSetup/browserOverlayScript.iss b/innoSetup/browserOverlayScript.iss index 91780227..820e7107 100644 --- a/innoSetup/browserOverlayScript.iss +++ b/innoSetup/browserOverlayScript.iss @@ -53,6 +53,8 @@ VCRedistFailedToLaunch=Failed to launch VCRedist Installer with error "%1". Plea VCRedistFailedOther=The VCRedist installer exited with an unexpected status code "%1". Please review any other messages shown by the installer to determine whether the installation completed successfully, and abort this installation and fix the problem if it did not. [Code] +var + requiresRestart: boolean; function InitializeSetup(): Boolean; begin @@ -117,6 +119,9 @@ begin 0: begin // Successful end; + 3010: begin + requiresRestart := True; + end; else begin MsgBox(FmtMessage(CustomMessage('VCRedistFailedOther'), [IntToStr(resultCode)]), mbError, MB_OK); end; @@ -130,6 +135,11 @@ begin end; end; +function NeedRestart(): Boolean; +begin + Result := requiresRestart; +end; + function PrepareToInstall(var NeedsRestart: Boolean): String; begin if VCRedistIsMissing() then diff --git a/innoSetup/osuOverlayScript.iss b/innoSetup/osuOverlayScript.iss index f1063622..750f9132 100644 --- a/innoSetup/osuOverlayScript.iss +++ b/innoSetup/osuOverlayScript.iss @@ -51,6 +51,8 @@ VCRedistFailedToLaunch=Failed to launch VCRedist Installer with error "%1". Plea VCRedistFailedOther=The VCRedist installer exited with an unexpected status code "%1". Please review any other messages shown by the installer to determine whether the installation completed successfully, and abort this installation and fix the problem if it did not. [Code] +var + requiresRestart: boolean; function InitializeSetup(): Boolean; begin @@ -116,6 +118,9 @@ begin 0: begin // Successful end; + 3010: begin + requiresRestart := True; + end; else begin MsgBox(FmtMessage(CustomMessage('VCRedistFailedOther'), [IntToStr(resultCode)]), mbError, MB_OK); end; @@ -129,6 +134,11 @@ begin end; end; +function NeedRestart(): Boolean; +begin + Result := requiresRestart; +end; + function PrepareToInstall(var NeedsRestart: Boolean): String; begin if VCRedistIsMissing() then