Ver código fonte

nsis: attempt to fix optional MS runtime installation

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@62082 15284696-431f-4ddb-bdfa-cd5b030d7da7
Helmut Kudrnovsky 10 anos atrás
pai
commit
0c405e3385
1 arquivos alterados com 13 adições e 8 exclusões
  1. 13 8
      mswindows/GRASS-Installer.nsi.tmpl

+ 13 - 8
mswindows/GRASS-Installer.nsi.tmpl

@@ -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: