(svn r23905) -Fix [FS#5045]: OpenMSX got downloaded to and extracted in the wrong (non-existent) folder
This commit is contained in:
		| @@ -281,17 +281,17 @@ SectionEnd | |||||||
| Section "Download OpenMSX (free music set)" Section5 | Section "Download OpenMSX (free music set)" Section5 | ||||||
| 	SetOverwrite try | 	SetOverwrite try | ||||||
|  |  | ||||||
| 	NSISdl::download "http://binaries.openttd.org/installer/openmsx-${OPENMSX_BASE_VERSION}.7z" "$INSTDIR\gm\openmsx.7z" | 	NSISdl::download "http://binaries.openttd.org/installer/openmsx-${OPENMSX_BASE_VERSION}.7z" "$INSTDIR\baseset\openmsx.7z" | ||||||
| 	Pop $R0 ;Get the return value | 	Pop $R0 ;Get the return value | ||||||
| 	StrCmp $R0 "success" +3 | 	StrCmp $R0 "success" +3 | ||||||
| 		MessageBox MB_OK "Downloading of OpenMSX failed" | 		MessageBox MB_OK "Downloading of OpenMSX failed" | ||||||
| 		Goto Done | 		Goto Done | ||||||
|  |  | ||||||
| 	; Let's extract the files | 	; Let's extract the files | ||||||
| 	SetOutPath "$INSTDIR\gm\" | 	SetOutPath "$INSTDIR\baseset\" | ||||||
| 	NSIS7z::Extract "$INSTDIR\gm\openmsx.7z" | 	NSIS7z::Extract "$INSTDIR\baseset\openmsx.7z" | ||||||
|  |  | ||||||
| 	Delete "$INSTDIR\gm\openmsx.7z" | 	Delete "$INSTDIR\baseset\openmsx.7z" | ||||||
| 	SetOutPath "$INSTDIR\" | 	SetOutPath "$INSTDIR\" | ||||||
| Done: | Done: | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 rubidium
					rubidium