|
@@ -931,14 +931,6 @@ Function DownloadInstallMSRuntime
|
|
|
untgz::extract "-d" "$TEMP\$ORIGINAL_UNTAR_FOLDER" "-zbz2" "$TEMP\$ARCHIVE_NAME"
|
|
|
Pop $0
|
|
|
StrCmp $0 "success" untar_ok untar_failed
|
|
|
-
|
|
|
- ;move ExecWait, CopyFiles, Delete, RMDir commands out of the download function as these seems not to work if these are nested in a function
|
|
|
- untar_ok:
|
|
|
- ExecWait '"$TEMP\$ORIGINAL_UNTAR_FOLDER\bin\vcredist_2005_x86.exe" /q'
|
|
|
- ExecWait '"$TEMP\$ORIGINAL_UNTAR_FOLDER\bin\vcredist_2008_x86.exe" /q'
|
|
|
- ExecWait '"$TEMP\$ORIGINAL_UNTAR_FOLDER\bin\vcredist_2010_x86.exe" /q'
|
|
|
- CopyFiles "$TEMP\$ORIGINAL_UNTAR_FOLDER\bin\*.dll" "$INSTALL_DIR\extrabin"
|
|
|
- Goto end
|
|
|
|
|
|
download_failed:
|
|
|
DetailPrint "$0" ;print error message to log
|
|
@@ -951,6 +943,19 @@ Function DownloadInstallMSRuntime
|
|
|
|
|
|
untar_failed:
|
|
|
DetailPrint "$0" ;print error message to log
|
|
|
+
|
|
|
+ untar_ok:
|
|
|
+ DetailPrint "Archive successfully unzipped."
|
|
|
+ DetailPrint "Installing vcredist_2005_x86.exe ..."
|
|
|
+ ExecWait '"$TEMP\$ORIGINAL_UNTAR_FOLDER\bin\vcredist_2005_x86.exe" /q'
|
|
|
+ DetailPrint "Installing vcredist_2008_x86.exe ..."
|
|
|
+ ExecWait '"$TEMP\$ORIGINAL_UNTAR_FOLDER\bin\vcredist_2008_x86.exe" /q'
|
|
|
+ DetailPrint "Installing vcredist_2010_x86.exe ..."
|
|
|
+ ExecWait '"$TEMP\$ORIGINAL_UNTAR_FOLDER\bin\vcredist_2010_x86.exe" /q'
|
|
|
+ DetailPrint "Copying runtime files ..."
|
|
|
+ CopyFiles "$TEMP\$ORIGINAL_UNTAR_FOLDER\bin\*.dll" "$INSTALL_DIR\extrabin"
|
|
|
+ DetailPrint "MS runtime files installed."
|
|
|
+ Goto end
|
|
|
|
|
|
end:
|
|
|
|