make windows installer use x64 vc_redist

This commit is contained in:
mat 2024-06-08 17:11:28 -03:00 committed by GitHub
parent 7c5a83d3d1
commit 6793fbd773
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 5 additions and 5 deletions
installer/windows

View file

@ -1,4 +1,4 @@
if(Test-path VC_redist.x86.exe -PathType leaf) {
if(Test-path VC_redist.x64.exe -PathType leaf) {
Return
}
Invoke-WebRequest -useb https://aka.ms/vs/17/release/vc_redist.x86.exe -outfile VC_redist.x86.exe
Invoke-WebRequest -useb https://aka.ms/vs/17/release/vc_redist.x64.exe -outfile VC_redist.x64.exe

View file

@ -475,9 +475,9 @@ SectionGroupEnd
!execute "pwsh -nol -noni -nop dl-vcr.ps1"
Section "Visual Studio Runtime"
SetOutPath $INSTDIR
File VC_redist.x86.exe
ExecWait "$INSTDIR\VC_redist.x86.exe /install /quiet /norestart"
Delete "$INSTDIR\VC_redist.x86.exe"
File VC_redist.x64.exe
ExecWait "$INSTDIR\VC_redist.x64.exe /install /quiet /norestart"
Delete "$INSTDIR\VC_redist.x64.exe"
SectionEnd
Section "steam_appid.txt"