Skip to content

Commit

Permalink
fix: use full product name
Browse files Browse the repository at this point in the history
  • Loading branch information
Nerixyz committed Sep 29, 2023
1 parent d6f6afc commit 5ac0f54
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .CI/build-installer.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ ISCC `
/DWORKING_DIR="$($pwd.Path)\" `
/DINSTALLER_BASE_NAME="$installerBaseName" `
/DSHIPPED_VCRT_BUILD="$($VCRTVersion.FileBuildPart)" `
/DSHIPPED_VCRT_VERSION="'$($VCRTVersion.FileVersion)'" `
/DSHIPPED_VCRT_VERSION="$($VCRTVersion.FileDescription)" `
$defines `
/O. `
"$PSScriptRoot\chatterino-installer.iss";
Expand Down
8 changes: 3 additions & 5 deletions .CI/chatterino-installer.iss
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
#endif
; Set to the string representation of the VCRT version
#ifndef SHIPPED_VCRT_VERSION
#define SHIPPED_VCRT_VERSION '?'
#define SHIPPED_VCRT_VERSION ?
#endif

[Setup]
Expand Down Expand Up @@ -66,7 +66,7 @@ SetupWindowTitle=Setup - %1 (Nightly)

[Tasks]
; Only show this option if the VCRT can be updated.
Name: "vcredist"; Description: "Install the required Visual C++ 2022 Redistributable ({code:VCRTDescription})"; Check: NeedsNewVCRT();
Name: "vcredist"; Description: "Install the required {#SHIPPED_VCRT_VERSION} ({code:VCRTDescription})"; Check: NeedsNewVCRT();
; GroupDescription: "{cm:AdditionalIcons}";
Name: "desktopicon"; Description: "{cm:CreateDesktopIcon}"; Flags: unchecked
Name: "freshinstall"; Description: "Fresh install (delete old settings/logs)"; Flags: unchecked
Expand Down Expand Up @@ -112,14 +112,12 @@ end;
function VCRTDescription(Param: String): String;
var
VCRTVersion: Variant;
ShippedVersion: String;
begin
VCRTVersion := GetVCRT;
ShippedVersion := {#SHIPPED_VCRT_VERSION};
if VarIsNull(VCRTVersion) then
Result := 'none is installed'
else
Result := VCRTVersion + ' is installed, but this installer ships v' + ShippedVersion;
Result := VCRTVersion + ' is installed';
end;
// Checks if a new VCRT is needed by comparing the builds.
Expand Down

0 comments on commit 5ac0f54

Please sign in to comment.