Skip to content

Commit

Permalink
Fixed MSVC 2008 URL and download directories.
Browse files Browse the repository at this point in the history
Also made installer hide for MSVC redist install, like for Python
components.
  • Loading branch information
Ortham committed Feb 20, 2014
1 parent ad954c4 commit 90f17f9
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion scripts/build/Wrye Bash.nsi
Original file line number Diff line number Diff line change
Expand Up @@ -1278,12 +1278,16 @@
${Else}
DetailPrint "Visual C++ 2013 Redistributable registry key was not found; assumed to be uninstalled."
DetailPrint "Downloading Visual C++ 2013 Redistributable Setup..."
SetOutPath $TEMP
NSISdl::download "http://download.microsoft.com/download/2/E/6/2E61CFA4-993B-4DD4-91DA-3737CD5CD6E3/vcredist_x86.exe" "vcredist_x86.exe"

Pop $R0 ;Get the return value
${If} $R0 == "success"
DetailPrint "Running Visual C++ 2013 Redistributable Setup..."
Sleep 2000
HideWindow
ExecWait '"$TEMP\vcredist_x86.exe" /qb'
BringToFront
DetailPrint "Finished Visual C++ 2013 SP1 Redistributable Setup"

Delete "$TEMP\vcredist_x86.exe"
Expand All @@ -1303,12 +1307,16 @@
; MSVC 2008 (x86): http://download.microsoft.com/download/d/d/9/dd9a82d0-52ef-40db-8dab-795376989c03/vcredist_x86.exe
DetailPrint "Visual C++ 2008 Redistributable was not found; assumed to be uninstalled."
DetailPrint "Downloading Visual C++ 2008 Redistributable Setup..."
NSISdl::download "http://download.microsoft.com/download/2/E/6/2E61CFA4-993B-4DD4-91DA-3737CD5CD6E3/vcredist_x86.exe" "vcredist_x86.exe"
SetOutPath $TEMP
NSISdl::download "http://download.microsoft.com/download/d/d/9/dd9a82d0-52ef-40db-8dab-795376989c03/vcredist_x86.exe" "vcredist_x86.exe"

Pop $R0 ;Get the return value
${If} $R0 == "success"
DetailPrint "Running Visual C++ 2008 Redistributable Setup..."
Sleep 2000
HideWindow
ExecWait '"$TEMP\vcredist_x86.exe" /qb'
BringToFront
DetailPrint "Finished Visual C++ 2008 SP1 Redistributable Setup"

Delete "$TEMP\vcredist_x86.exe"
Expand Down

0 comments on commit 90f17f9

Please sign in to comment.