Compare commits

...

13 commits

Author SHA1 Message Date
Calyx Hikari
abb1cd3919 Fix corrupted VC2013 URL
Some checks failed
Automatic Build Script / build (push) Has been cancelled
2025-12-14 13:26:16 +08:00
Calyx Hikari
563eef0546 Update generate_all_github.sh
Some checks failed
Automatic Build Script / build (push) Has been cancelled
2025-11-28 23:23:58 +08:00
Calyx Hikari
fd37944ea1 Copy NSI scripts to current dir 2025-11-28 23:23:07 +08:00
Calyx Hikari
bab519b639 Remove unusable commands 2025-11-28 23:21:39 +08:00
Calyx Hikari
141f58487d Update generate_all_github.sh 2025-11-28 23:19:52 +08:00
Calyx Hikari
35c2d657b2 Switch to GitHub Actions only script 2025-11-28 23:17:59 +08:00
Calyx Hikari
fd729fcab0 Add zlib1g-dev 2025-11-28 23:06:44 +08:00
Calyx Hikari
98d0a8da73 Update build.yml 2025-11-28 23:02:53 +08:00
Calyx Hikari
49f3f027d5 Update build.yml 2025-11-28 23:01:39 +08:00
Calyx Hikari
2d00bbb535 Update build.yml 2025-11-28 23:00:02 +08:00
Calyx Hikari
d5f6c91fa3 Add multi language
Some checks are pending
Automatic Build Script / build (push) Waiting to run
2025-11-28 15:15:38 +08:00
Calyx Hikari
c99a3c7384 Update index.html
Some checks failed
Automatic Build Script / build (push) Has been cancelled
2025-11-16 12:16:17 +08:00
Calyx Hikari
32c0730ee1 Fix server check 2025-11-16 12:10:51 +08:00
12 changed files with 186 additions and 29 deletions

BIN
$OEM$.zip

Binary file not shown.

View file

@ -27,8 +27,8 @@ jobs:
- name: Run generate.sh
run: |
chmod +x ./generate_all.sh
./generate_all.sh
chmod +x ./generate_all_github.sh
./generate_all_github.sh
- name: Get build date
id: date

2
32
View file

@ -94,7 +94,7 @@ function Main {
@{ Name = "vcredist_2008_x86.exe"; Url = "https://download.microsoft.com/download/5/D/8/5D8C65CB-C849-4025-8E95-C3966CAFD8AE/vcredist_x86.exe"; Year = "2008" },
@{ Name = "vcredist_2010_x86.exe"; Url = "https://download.microsoft.com/download/1/6/5/165255E7-1014-4D0A-B094-B6A430A6BFFC/vcredist_x86.exe"; Year = "2010" },
@{ Name = "vcredist_2012_x86.exe"; Url = "https://download.microsoft.com/download/1/6/B/16B06F60-3B20-4FF2-B699-5E9B7962F9AE/VSU_4/vcredist_x86.exe"; Year = "2012" },
@{ Name = "vcredist_2013_x86.exe"; Url = "https://aka.ms/highdpimfc2013x86enu"; Year = "2013" }
@{ Name = "vcredist_2013_x86.exe"; Url = "https://download.visualstudio.microsoft.com/download/pr/10912113/5da66ddebb0ad32ebd4b922fd82e8e25/vcredist_x86.exe"; Year = "2013" }
)
if ($buildVersion -ge 10240) {

4
64
View file

@ -105,8 +105,8 @@ function Main {
@{ Name = "vcredist_2010_x64.exe"; Url = "https://download.microsoft.com/download/1/6/5/165255E7-1014-4D0A-B094-B6A430A6BFFC/vcredist_x64.exe"; Year = "2010" },
@{ Name = "vcredist_2012_x86.exe"; Url = "https://download.microsoft.com/download/1/6/B/16B06F60-3B20-4FF2-B699-5E9B7962F9AE/VSU_4/vcredist_x86.exe"; Year = "2012" },
@{ Name = "vcredist_2012_x64.exe"; Url = "https://download.microsoft.com/download/1/6/B/16B06F60-3B20-4FF2-B699-5E9B7962F9AE/VSU_4/vcredist_x64.exe"; Year = "2012" },
@{ Name = "vcredist_2013_x86.exe"; Url = "https://aka.ms/highdpimfc2013x86enu"; Year = "2013" },
@{ Name = "vcredist_2013_x64.exe"; Url = "https://aka.ms/highdpimfc2013x64enu"; Year = "2013" }
@{ Name = "vcredist_2013_x86.exe"; Url = "https://download.visualstudio.microsoft.com/download/pr/10912113/5da66ddebb0ad32ebd4b922fd82e8e25/vcredist_x86.exe"; Year = "2013" },
@{ Name = "vcredist_2013_x64.exe"; Url = "https://download.visualstudio.microsoft.com/download/pr/10912041/cee5d6bca2ddbcd039da727bf4acb48a/vcredist_x64.exe"; Year = "2013" }
)
if ($buildVersion -ge 10240) {

Binary file not shown.

Before

Width:  |  Height:  |  Size: 81 KiB

After

Width:  |  Height:  |  Size: 52 KiB

Before After
Before After

View file

@ -29,10 +29,10 @@ https://download.microsoft.com/download/1/6/B/16B06F60-3B20-4FF2-B699-5E9B7962F9
https://download.microsoft.com/download/1/6/B/16B06F60-3B20-4FF2-B699-5E9B7962F9AE/VSU_4/vcredist_x64.exe
out=vcredist_2012_x64.exe
https://aka.ms/highdpimfc2013x86enu
https://download.visualstudio.microsoft.com/download/pr/10912113/5da66ddebb0ad32ebd4b922fd82e8e25/vcredist_x86.exe
out=vcredist_2013_x86.exe
https://aka.ms/highdpimfc2013x64enu
https://download.visualstudio.microsoft.com/download/pr/10912041/cee5d6bca2ddbcd039da727bf4acb48a/vcredist_x64.exe
out=vcredist_2013_x64.exe
EOF

View file

@ -29,10 +29,10 @@ https://download.microsoft.com/download/1/6/B/16B06F60-3B20-4FF2-B699-5E9B7962F9
https://download.microsoft.com/download/1/6/B/16B06F60-3B20-4FF2-B699-5E9B7962F9AE/VSU_4/vcredist_x64.exe
out=vcredist_2012_x64.exe
https://aka.ms/highdpimfc2013x86enu
https://download.visualstudio.microsoft.com/download/pr/10912113/5da66ddebb0ad32ebd4b922fd82e8e25/vcredist_x86.exe
out=vcredist_2013_x86.exe
https://aka.ms/highdpimfc2013x64enu
https://download.visualstudio.microsoft.com/download/pr/10912041/cee5d6bca2ddbcd039da727bf4acb48a/vcredist_x64.exe
out=vcredist_2013_x64.exe
https://download.visualstudio.microsoft.com/download/pr/566435ac-4e1c-434b-b93f-aecc71e8cffc/0D59EC7FDBF05DE813736BF875CEA5C894FFF4769F60E32E87BD48406BBF0A3A/VC_redist.x86.exe

79
generate_all_github.sh Normal file
View file

@ -0,0 +1,79 @@
#!/bin/bash
# This script is for GitHub Actions only.
shopt -s nocasematch
cat << EOF > downloadLink.txt
https://download.microsoft.com/download/8/b/4/8b42259f-5d70-43f4-ac2e-4b208fd8d66a/vcredist_x86.exe
out=vcredist_2005_x86.exe
https://download.microsoft.com/download/8/b/4/8b42259f-5d70-43f4-ac2e-4b208fd8d66a/vcredist_x64.exe
out=vcredist_2005_x64.exe
https://download.microsoft.com/download/5/D/8/5D8C65CB-C849-4025-8E95-C3966CAFD8AE/vcredist_x86.exe
out=vcredist_2008_x86.exe
https://download.microsoft.com/download/5/D/8/5D8C65CB-C849-4025-8E95-C3966CAFD8AE/vcredist_x64.exe
out=vcredist_2008_x64.exe
https://download.microsoft.com/download/1/6/5/165255E7-1014-4D0A-B094-B6A430A6BFFC/vcredist_x86.exe
out=vcredist_2010_x86.exe
https://download.microsoft.com/download/1/6/5/165255E7-1014-4D0A-B094-B6A430A6BFFC/vcredist_x64.exe
out=vcredist_2010_x64.exe
https://download.microsoft.com/download/1/6/B/16B06F60-3B20-4FF2-B699-5E9B7962F9AE/VSU_4/vcredist_x86.exe
out=vcredist_2012_x86.exe
https://download.microsoft.com/download/1/6/B/16B06F60-3B20-4FF2-B699-5E9B7962F9AE/VSU_4/vcredist_x64.exe
out=vcredist_2012_x64.exe
https://download.visualstudio.microsoft.com/download/pr/10912113/5da66ddebb0ad32ebd4b922fd82e8e25/vcredist_x86.exe
out=vcredist_2013_x86.exe
https://download.visualstudio.microsoft.com/download/pr/10912041/cee5d6bca2ddbcd039da727bf4acb48a/vcredist_x64.exe
out=vcredist_2013_x64.exe
https://download.visualstudio.microsoft.com/download/pr/566435ac-4e1c-434b-b93f-aecc71e8cffc/0D59EC7FDBF05DE813736BF875CEA5C894FFF4769F60E32E87BD48406BBF0A3A/VC_redist.x86.exe
out=vcredist_v14_nt52_x86.exe
https://download.visualstudio.microsoft.com/download/pr/566435ac-4e1c-434b-b93f-aecc71e8cffc/B75590149FA14B37997C35724BC93776F67E08BFF9BD5A69FACBF41B3846D084/VC_redist.x64.exe
out=vcredist_v14_nt52_x64.exe
https://download.visualstudio.microsoft.com/download/pr/ed95ef9e-da02-4735-9064-bd1f7f69b6ed/CF92A10C62FFAB83B4A2168F5F9A05E5588023890B5C0CC7BA89ED71DA527B0F/VC_redist.x86.exe
out=vcredist_v14_nt60_x86.exe
https://download.visualstudio.microsoft.com/download/pr/ed95ef9e-da02-4735-9064-bd1f7f69b6ed/CE6593A1520591E7DEA2B93FD03116E3FC3B3821A0525322B0A430FAA6B3C0B4/VC_redist.x64.exe
out=vcredist_v14_nt60_x64.exe
https://aka.ms/vs/17/release/vc_redist.x86.exe
out=vcredist_v14_nt63_x86.exe
https://aka.ms/vs/17/release/vc_redist.x64.exe
out=vcredist_v14_nt63_x64.exe
https://aka.ms/vc14/vc_redist.x86.exe
out=vcredist_v14_latest_x86.exe
https://aka.ms/vc14/vc_redist.x64.exe
out=vcredist_v14_latest_x64.exe
EOF
mkdir msvc_offline
aria2c --dir=msvc_offline --allow-overwrite=true --retry-wait=5 --max-connection-per-server=8 --split=8 --min-split-size=1M -i downloadLink.txt
pushd msvc_offline
cp ../favicon.ico ./
cp ../*.nsi ./
makensis install_AllOS.nsi
makensis install_AtLeastWin7.nsi
makensis install_AtLeastWin10.nsi
rm vcredist*.exe
installerFileName=$(ls *.exe)
mv *.exe ../
popd
rm -rf msvc_offline
echo -e "All installer files are generated at current directory. "

View file

@ -48,10 +48,10 @@ function Main {
# --- Elevated section ---
New-Item -Path $flagPath -ItemType File -Force | Out-Null
Write-Host "Running with elevated privileges..."
$dxInstallOption = "Y"
if ($isServer) {
Write-Host "Windows Server detected. Would you like to install DirectX Runtime?"
Write-Host "Windows Server detected. Would you like to install DirectX Runtime (Y/N)?"
$dxInstallOption = Get-UserConfirmation -Message "" -TimeoutSeconds 10 -Default "N"
}
@ -125,8 +125,8 @@ function Main {
@{ Name = "vcredist_2010_x64.exe"; Url = "https://download.microsoft.com/download/1/6/5/165255E7-1014-4D0A-B094-B6A430A6BFFC/vcredist_x64.exe"; Year = "2010" },
@{ Name = "vcredist_2012_x86.exe"; Url = "https://download.microsoft.com/download/1/6/B/16B06F60-3B20-4FF2-B699-5E9B7962F9AE/VSU_4/vcredist_x86.exe"; Year = "2012" },
@{ Name = "vcredist_2012_x64.exe"; Url = "https://download.microsoft.com/download/1/6/B/16B06F60-3B20-4FF2-B699-5E9B7962F9AE/VSU_4/vcredist_x64.exe"; Year = "2012" },
@{ Name = "vcredist_2013_x86.exe"; Url = "https://aka.ms/highdpimfc2013x86enu"; Year = "2013" },
@{ Name = "vcredist_2013_x64.exe"; Url = "https://aka.ms/highdpimfc2013x64enu"; Year = "2013" }
@{ Name = "vcredist_2013_x86.exe"; Url = "https://download.visualstudio.microsoft.com/download/pr/10912113/5da66ddebb0ad32ebd4b922fd82e8e25/vcredist_x86.exe"; Year = "2013" },
@{ Name = "vcredist_2013_x64.exe"; Url = "https://download.visualstudio.microsoft.com/download/pr/10912041/cee5d6bca2ddbcd039da727bf4acb48a/vcredist_x64.exe"; Year = "2013" }
)
if ($buildVersion -ge 10240) {
@ -159,7 +159,7 @@ function Main {
if ($item.Name -Match "x64" -and $procArch -ne "AMD64" -and $buildVersion -lt 21390) {
continue
}
if ($item.Name -Match "directx" -and $isServer) {
if ($item.Name -Match "directx" -and $dxInstallOption -eq "N") {
continue
}
$line = "$($item.Url)`n out=$($item.Name)"

View file

@ -3,34 +3,60 @@
!include "WinVer.nsh"
!include "x64.nsh"
LoadLanguageFile "${NSISDIR}\Contrib\Language files\English.nlf"
LoadLanguageFile "${NSISDIR}\Contrib\Language files\Japanese.nlf"
LoadLanguageFile "${NSISDIR}\Contrib\Language files\TradChinese.nlf"
LoadLanguageFile "${NSISDIR}\Contrib\Language files\SimpChinese.nlf"
Unicode true
SetCompressor /solid /final lzma
RequestExecutionLevel admin
!define /date BUILD_YEAR "%Y"
!define /date BUILD_MONTH "%m"
!define /date BUILD_DAY "%d"
LangString InstallerTitle ${LANG_ENGLISH} "MSVC Redistributable Runtime Offline Installer"
LangString InstallerTitle ${LANG_SIMPCHINESE} "MSVC 运行时离线安装程序"
LangString InstallerTitle ${LANG_TRADCHINESE} "MSVC 可再發行運行時離線安裝程式"
LangString InstallerTitle ${LANG_JAPANESE} "MSVC 再頒布可能ランタイムオフラインインストーラー"
Name "MSVC Redistributable Runtime Offline Installer"
LangString OSVersionMessage ${LANG_ENGLISH} "This installer requires Windows XP or newer."
LangString OSVersionMessage ${LANG_SIMPCHINESE} "此安装程序仅支持 Windows XP 或更高版本。"
LangString OSVersionMessage ${LANG_TRADCHINESE} "此安裝程式僅支援 Windows XP 或更高版本。"
LangString OSVersionMessage ${LANG_JAPANESE} "このインストーラーには Windows XP 以降が必要です。"
Name "$(InstallerTitle)"
Icon "favicon.ico"
OutFile "MSVC_Offline_Setup_${BUILD_YEAR}.${BUILD_MONTH}.${BUILD_DAY}_AllOS.exe"
InstallDir $TEMP
BrandingText "msvc.win"
VIProductVersion "${BUILD_YEAR}.${BUILD_MONTH}.${BUILD_DAY}.0"
VIAddVersionKey /LANG=0x0409 "ProductName" "MSVC Offline Installer"
VIAddVersionKey /LANG=0x0409 "FileDescription" "MSVC Offline Installer"
VIAddVersionKey /LANG=0x0409 "FileVersion" "${BUILD_YEAR}.${BUILD_MONTH}.${BUILD_DAY}.0"
VIAddVersionKey /LANG=0x0409 "LegalCopyright" "msvc.win Project"
VIAddVersionKey /LANG=0x0404 "ProductName" "MSVC 可再發行運行時離線安裝程式"
VIAddVersionKey /LANG=0x0404 "FileDescription" "MSVC 可再發行運行時離線安裝程式"
VIAddVersionKey /LANG=0x0404 "FileVersion" "${BUILD_YEAR}.${BUILD_MONTH}.${BUILD_DAY}.0"
VIAddVersionKey /LANG=0x0404 "LegalCopyright" "msvc.win Project"
VIAddVersionKey /LANG=0x0804 "ProductName" "MSVC 运行时离线安装程序"
VIAddVersionKey /LANG=0x0804 "FileDescription" "MSVC 运行时离线安装程序"
VIAddVersionKey /LANG=0x0804 "FileVersion" "${BUILD_YEAR}.${BUILD_MONTH}.${BUILD_DAY}.0"
VIAddVersionKey /LANG=0x0804 "LegalCopyright" "msvc.win Project"
Unicode true
SetCompressor /solid /final lzma
RequestExecutionLevel admin
VIAddVersionKey /LANG=0x0411 "ProductName" "MSVC 再頒布可能ランタイムオフラインインストーラー"
VIAddVersionKey /LANG=0x0411 "FileDescription" "MSVC 再頒布可能ランタイムオフラインインストーラー"
VIAddVersionKey /LANG=0x0411 "FileVersion" "${BUILD_YEAR}.${BUILD_MONTH}.${BUILD_DAY}.0"
VIAddVersionKey /LANG=0x0411 "LegalCopyright" "msvc.win Project"
Function .onInit
${IfNot} ${AtLeastWinXP}
MessageBox MB_ICONSTOP "This installer requires Windows XP or newer."
MessageBox MB_ICONSTOP "$(OSVersionMessage)"
Abort
${EndIf}
FunctionEnd

View file

@ -3,34 +3,60 @@
!include "WinVer.nsh"
!include "x64.nsh"
LoadLanguageFile "${NSISDIR}\Contrib\Language files\English.nlf"
LoadLanguageFile "${NSISDIR}\Contrib\Language files\Japanese.nlf"
LoadLanguageFile "${NSISDIR}\Contrib\Language files\TradChinese.nlf"
LoadLanguageFile "${NSISDIR}\Contrib\Language files\SimpChinese.nlf"
Unicode true
SetCompressor /solid /final lzma
RequestExecutionLevel admin
!define /date BUILD_YEAR "%Y"
!define /date BUILD_MONTH "%m"
!define /date BUILD_DAY "%d"
LangString InstallerTitle ${LANG_ENGLISH} "MSVC Redistributable Runtime Offline Installer"
LangString InstallerTitle ${LANG_SIMPCHINESE} "MSVC 运行时离线安装程序"
LangString InstallerTitle ${LANG_TRADCHINESE} "MSVC 可再發行運行時離線安裝程式"
LangString InstallerTitle ${LANG_JAPANESE} "MSVC 再頒布可能ランタイムオフラインインストーラー"
Name "MSVC Redistributable Runtime Offline Installer"
LangString OSVersionMessage ${LANG_ENGLISH} "This installer requires Windows 10 or newer."
LangString OSVersionMessage ${LANG_SIMPCHINESE} "此安装程序仅支持 Windows 10 或更高版本。"
LangString OSVersionMessage ${LANG_TRADCHINESE} "此安裝程式僅支援 Windows 10 或更高版本。"
LangString OSVersionMessage ${LANG_JAPANESE} "このインストーラーには Windows 10 以降が必要です。"
Name "$(InstallerTitle)"
Icon "favicon.ico"
OutFile "MSVC_Offline_Setup_${BUILD_YEAR}.${BUILD_MONTH}.${BUILD_DAY}_Win10_11.exe"
InstallDir $TEMP
BrandingText "msvc.win"
VIProductVersion "${BUILD_YEAR}.${BUILD_MONTH}.${BUILD_DAY}.0"
VIAddVersionKey /LANG=0x0409 "ProductName" "MSVC Offline Installer"
VIAddVersionKey /LANG=0x0409 "FileDescription" "MSVC Offline Installer"
VIAddVersionKey /LANG=0x0409 "FileVersion" "${BUILD_YEAR}.${BUILD_MONTH}.${BUILD_DAY}.0"
VIAddVersionKey /LANG=0x0409 "LegalCopyright" "msvc.win Project"
VIAddVersionKey /LANG=0x0404 "ProductName" "MSVC 可再發行運行時離線安裝程式"
VIAddVersionKey /LANG=0x0404 "FileDescription" "MSVC 可再發行運行時離線安裝程式"
VIAddVersionKey /LANG=0x0404 "FileVersion" "${BUILD_YEAR}.${BUILD_MONTH}.${BUILD_DAY}.0"
VIAddVersionKey /LANG=0x0404 "LegalCopyright" "msvc.win Project"
VIAddVersionKey /LANG=0x0804 "ProductName" "MSVC 运行时离线安装程序"
VIAddVersionKey /LANG=0x0804 "FileDescription" "MSVC 运行时离线安装程序"
VIAddVersionKey /LANG=0x0804 "FileVersion" "${BUILD_YEAR}.${BUILD_MONTH}.${BUILD_DAY}.0"
VIAddVersionKey /LANG=0x0804 "LegalCopyright" "msvc.win Project"
Unicode true
SetCompressor /solid /final lzma
RequestExecutionLevel admin
VIAddVersionKey /LANG=0x0411 "ProductName" "MSVC 再頒布可能ランタイムオフラインインストーラー"
VIAddVersionKey /LANG=0x0411 "FileDescription" "MSVC 再頒布可能ランタイムオフラインインストーラー"
VIAddVersionKey /LANG=0x0411 "FileVersion" "${BUILD_YEAR}.${BUILD_MONTH}.${BUILD_DAY}.0"
VIAddVersionKey /LANG=0x0411 "LegalCopyright" "msvc.win Project"
Function .onInit
${IfNot} ${AtLeastWin10}
MessageBox MB_ICONSTOP "This installer requires Windows 10 or newer."
MessageBox MB_ICONSTOP "$(OSVersionMessage)"
Abort
${EndIf}
FunctionEnd

View file

@ -3,34 +3,60 @@
!include "WinVer.nsh"
!include "x64.nsh"
LoadLanguageFile "${NSISDIR}\Contrib\Language files\English.nlf"
LoadLanguageFile "${NSISDIR}\Contrib\Language files\Japanese.nlf"
LoadLanguageFile "${NSISDIR}\Contrib\Language files\TradChinese.nlf"
LoadLanguageFile "${NSISDIR}\Contrib\Language files\SimpChinese.nlf"
Unicode true
SetCompressor /solid /final lzma
RequestExecutionLevel admin
!define /date BUILD_YEAR "%Y"
!define /date BUILD_MONTH "%m"
!define /date BUILD_DAY "%d"
LangString InstallerTitle ${LANG_ENGLISH} "MSVC Redistributable Runtime Offline Installer"
LangString InstallerTitle ${LANG_SIMPCHINESE} "MSVC 运行时离线安装程序"
LangString InstallerTitle ${LANG_TRADCHINESE} "MSVC 可再發行運行時離線安裝程式"
LangString InstallerTitle ${LANG_JAPANESE} "MSVC 再頒布可能ランタイムオフラインインストーラー"
Name "MSVC Redistributable Runtime Offline Installer"
LangString OSVersionMessage ${LANG_ENGLISH} "This installer requires Windows 7 or newer."
LangString OSVersionMessage ${LANG_SIMPCHINESE} "此安装程序仅支持 Windows 7 或更高版本。"
LangString OSVersionMessage ${LANG_TRADCHINESE} "此安裝程式僅支援 Windows 7 或更高版本。"
LangString OSVersionMessage ${LANG_JAPANESE} "このインストーラーには Windows 7 以降が必要です。"
Name "$(InstallerTitle)"
Icon "favicon.ico"
OutFile "MSVC_Offline_Setup_${BUILD_YEAR}.${BUILD_MONTH}.${BUILD_DAY}_Win7.exe"
InstallDir $TEMP
BrandingText "msvc.win"
VIProductVersion "${BUILD_YEAR}.${BUILD_MONTH}.${BUILD_DAY}.0"
VIAddVersionKey /LANG=0x0409 "ProductName" "MSVC Offline Installer"
VIAddVersionKey /LANG=0x0409 "FileDescription" "MSVC Offline Installer"
VIAddVersionKey /LANG=0x0409 "FileVersion" "${BUILD_YEAR}.${BUILD_MONTH}.${BUILD_DAY}.0"
VIAddVersionKey /LANG=0x0409 "LegalCopyright" "msvc.win Project"
VIAddVersionKey /LANG=0x0404 "ProductName" "MSVC 可再發行運行時離線安裝程式"
VIAddVersionKey /LANG=0x0404 "FileDescription" "MSVC 可再發行運行時離線安裝程式"
VIAddVersionKey /LANG=0x0404 "FileVersion" "${BUILD_YEAR}.${BUILD_MONTH}.${BUILD_DAY}.0"
VIAddVersionKey /LANG=0x0404 "LegalCopyright" "msvc.win Project"
VIAddVersionKey /LANG=0x0804 "ProductName" "MSVC 运行时离线安装程序"
VIAddVersionKey /LANG=0x0804 "FileDescription" "MSVC 运行时离线安装程序"
VIAddVersionKey /LANG=0x0804 "FileVersion" "${BUILD_YEAR}.${BUILD_MONTH}.${BUILD_DAY}.0"
VIAddVersionKey /LANG=0x0804 "LegalCopyright" "msvc.win Project"
Unicode true
SetCompressor /solid /final lzma
RequestExecutionLevel admin
VIAddVersionKey /LANG=0x0411 "ProductName" "MSVC 再頒布可能ランタイムオフラインインストーラー"
VIAddVersionKey /LANG=0x0411 "FileDescription" "MSVC 再頒布可能ランタイムオフラインインストーラー"
VIAddVersionKey /LANG=0x0411 "FileVersion" "${BUILD_YEAR}.${BUILD_MONTH}.${BUILD_DAY}.0"
VIAddVersionKey /LANG=0x0411 "LegalCopyright" "msvc.win Project"
Function .onInit
${IfNot} ${AtLeastWin7}
MessageBox MB_ICONSTOP "This installer requires Windows 7 or newer."
MessageBox MB_ICONSTOP "$(OSVersionMessage)"
Abort
${EndIf}
FunctionEnd