POL_SP2_Extract

Informations

Creator Message
Quentin PÂRIS Anonymous

Information

This installer has been approved by the team.

Informations

Platforms:
Downloads: 6591363
Wine: System

Feedbacks

Description

This tool extract file from windows XP SP2.

Example of usage :

POL_Call POL_SP2_Extract spider.exe # Install Microsoft Spider Soltaire

Source code

# DoS workaround, block 4.1.4 and 4.1.5 here
[ "$VERSION" = "4.1.4" -o "$VERSION" = "4.1.5" ] && POL_RequiredVersion 4.1.6

local file="$1"
local file_shorted="${file%?}_"

if [ "$POL_LANG" = "fr" ]; then
        src="http://download.windowsupdate.com/msdownload/update/software/svpk/2008/04/windowsxp-kb936929-sp3-x86-fra_414B61BBC86E09579D8447BAA23EB1B867F9CA93.exe" 
    sparchiveold="WindowsXP-KB936929-SP3-x86-FRA.exe"
    sparchive="windowsxp-kb936929-sp3-x86-fra_414B61BBC86E09579D8447BAA23EB1B867F9CA93.exe"
        md5="a9a9a86e7330bffaf64ae2acfb73d959"
elif [ "$POL_LANG" = "de" ]; then
    src="http://download.windowsupdate.com/msdownload/update/software/svpk/2008/04/windowsxp-kb936929-sp3-x86-deu_f2dcd2211384a78df215c696a7fd1a7949dc794b.exe"
    sparchiveold="WindowsXP-KB936929-SP3-x86-DEU.exe"
    sparchive="windowsxp-kb936929-sp3-x86-deu_f2dcd2211384a78df215c696a7fd1a7949dc794b.exe"
    md5="265246926aa44bd767b0c11f80c084f1"
else
        src="http://download.windowsupdate.com/msdownload/update/software/svpk/2008/04/windowsxp-kb936929-sp3-x86-enu_c81472f7eeea2eca421e116cd4c03e2300ebfde4.exe"
    sparchiveold="WindowsXP-KB936929-SP3-x86-ENU.exe"
    sparchive="windowsxp-kb936929-sp3-x86-enu_c81472f7eeea2eca421e116cd4c03e2300ebfde4.exe"
        md5="bb25707c919dd835a9d9706b5725af58"
fi

cd "$POL_USER_ROOT/ressources/" || POL_Debug_Fatal "Unable to change directory"
[ -e "$sparchiveold" -a ! -e "$sparchive" ] && ln -s "$sparchiveold" "$sparchive"

POL_Download_Resource "$src" "$md5"

if [ ! "$1" = "--only-download" ]; then
        cd "$POL_USER_ROOT/tmp/" || POL_Debug_Fatal "Unable to change directory"
        POL_Wine_WaitBefore "$TITLE"
        POL_Debug_Message "Extract i386/$file_shorted from $sparchive"
        cabextract "$POL_USER_ROOT/ressources/$sparchive" -F i386/$file_shorted
        POL_Debug_Message "Extract $file from i386/$file_shorted"
        cabextract i386/$file_shorted
        POL_Debug_Message "Move $file to $OLD_PC_DIR"
        mv "$file" "$OLD_PC_DIR"
fi

Contributions

Filters:

Contribute
Member Message
cschreib Saturday 22 July 2017 at 14:27
cschreib Anonymous

Message

The links seem to be broken somehow, I cannot seem to be able to download more than 50 MB before the download fails. The link below appears to work though:

http://xpsp.dlservice.microsoft.com/download/d/3/0/d30e32d8-418a-469d-b600-f32ce3edf42d/WindowsXP-KB936929-SP3-x86-ENU.exe

Replies

petch Tuesday 2 February 2016 at 9:53
petch

Information

This update has been approved by the team.

Message

Use download.windowsupdate.com instead of download.microsoft.com (URLs give 404)

http://multi-collection.blogspot.fr/2008/09/windows-xp-service-pack-3-multi.html

Issue: filenames change, so POL_Download_Resource will redownload files even if you had them already in cache. Implemented a workaround
 

Differences

@@ -1,27 +1,28 @@
-#!/bin/bash
-[ "$PLAYONLINUX" = "" ] && exit 0
-source "$PLAYONLINUX/lib/sources"
-
 # DoS workaround, block 4.1.4 and 4.1.5 here
 [ "$VERSION" = "4.1.4" -o "$VERSION" = "4.1.5" ] && POL_RequiredVersion 4.1.6
 
-WORKING_DIRECTORY="$OLD_PC_DIR"
-file="$1"
-file_shorted="${file%?}_"
+local file="$1"
+local file_shorted="${file%?}_"
+
 if [ "$POL_LANG" = "fr" ]; then
-	src="http://download.microsoft.com/download/c/3/e/c3ea9fa6-d8e6-4832-8795-06dd27be9bc9/WindowsXP-KB936929-SP3-x86-FRA.exe" 
-        sparchive="WindowsXP-KB936929-SP3-x86-FRA.exe"
+	src="http://download.windowsupdate.com/msdownload/update/software/svpk/2008/04/windowsxp-kb936929-sp3-x86-fra_414B61BBC86E09579D8447BAA23EB1B867F9CA93.exe" 
+    sparchiveold="WindowsXP-KB936929-SP3-x86-FRA.exe"
+    sparchive="windowsxp-kb936929-sp3-x86-fra_414B61BBC86E09579D8447BAA23EB1B867F9CA93.exe"
 	md5="a9a9a86e7330bffaf64ae2acfb73d959"
 elif [ "$POL_LANG" = "de" ]; then
-         src="http://download.microsoft.com/download/1/e/7/1e758534-7b22-400c-9c46-d19d24ec7374/WindowsXP-KB936929-SP3-x86-DEU.exe"
-         sparchive="WindowsXP-KB936929-SP3-x86-DEU.exe"
-         md5="265246926aa44bd767b0c11f80c084f1"
+    src="http://download.windowsupdate.com/msdownload/update/software/svpk/2008/04/windowsxp-kb936929-sp3-x86-deu_f2dcd2211384a78df215c696a7fd1a7949dc794b.exe"
+    sparchiveold="WindowsXP-KB936929-SP3-x86-DEU.exe"
+    sparchive="windowsxp-kb936929-sp3-x86-deu_f2dcd2211384a78df215c696a7fd1a7949dc794b.exe"
+    md5="265246926aa44bd767b0c11f80c084f1"
 else
-	src="http://download.microsoft.com/download/d/3/0/d30e32d8-418a-469d-b600-f32ce3edf42d/WindowsXP-KB936929-SP3-x86-ENU.exe"
-        sparchive="WindowsXP-KB936929-SP3-x86-ENU.exe"
+	src="http://download.windowsupdate.com/msdownload/update/software/svpk/2008/04/windowsxp-kb936929-sp3-x86-enu_c81472f7eeea2eca421e116cd4c03e2300ebfde4.exe"
+    sparchiveold="WindowsXP-KB936929-SP3-x86-ENU.exe"
+    sparchive="windowsxp-kb936929-sp3-x86-enu_c81472f7eeea2eca421e116cd4c03e2300ebfde4.exe"
 	md5="bb25707c919dd835a9d9706b5725af58"
 fi
 
+cd "$POL_USER_ROOT/ressources/" || POL_Debug_Fatal "Unable to change directory"
+[ -e "$sparchiveold" -a ! -e "$sparchive" ] && ln -s "$sparchiveold" "$sparchive"
 
 POL_Download_Resource "$src" "$md5"
 
@@ -32,8 +33,6 @@
 	cabextract "$POL_USER_ROOT/ressources/$sparchive" -F i386/$file_shorted
         POL_Debug_Message "Extract $file from i386/$file_shorted"
 	cabextract i386/$file_shorted
-	POL_Debug_Message "Move $file to $WORKING_DIRECTORY"
-	mv "$file" "$WORKING_DIRECTORY"
+	POL_Debug_Message "Move $file to $OLD_PC_DIR"
+	mv "$file" "$OLD_PC_DIR"
 fi
-
-cd "$WORKING_DIRECTORY"

New source code

# DoS workaround, block 4.1.4 and 4.1.5 here
[ "$VERSION" = "4.1.4" -o "$VERSION" = "4.1.5" ] && POL_RequiredVersion 4.1.6

local file="$1"
local file_shorted="${file%?}_"

if [ "$POL_LANG" = "fr" ]; then
        src="http://download.windowsupdate.com/msdownload/update/software/svpk/2008/04/windowsxp-kb936929-sp3-x86-fra_414B61BBC86E09579D8447BAA23EB1B867F9CA93.exe" 
    sparchiveold="WindowsXP-KB936929-SP3-x86-FRA.exe"
    sparchive="windowsxp-kb936929-sp3-x86-fra_414B61BBC86E09579D8447BAA23EB1B867F9CA93.exe"
        md5="a9a9a86e7330bffaf64ae2acfb73d959"
elif [ "$POL_LANG" = "de" ]; then
    src="http://download.windowsupdate.com/msdownload/update/software/svpk/2008/04/windowsxp-kb936929-sp3-x86-deu_f2dcd2211384a78df215c696a7fd1a7949dc794b.exe"
    sparchiveold="WindowsXP-KB936929-SP3-x86-DEU.exe"
    sparchive="windowsxp-kb936929-sp3-x86-deu_f2dcd2211384a78df215c696a7fd1a7949dc794b.exe"
    md5="265246926aa44bd767b0c11f80c084f1"
else
        src="http://download.windowsupdate.com/msdownload/update/software/svpk/2008/04/windowsxp-kb936929-sp3-x86-enu_c81472f7eeea2eca421e116cd4c03e2300ebfde4.exe"
    sparchiveold="WindowsXP-KB936929-SP3-x86-ENU.exe"
    sparchive="windowsxp-kb936929-sp3-x86-enu_c81472f7eeea2eca421e116cd4c03e2300ebfde4.exe"
        md5="bb25707c919dd835a9d9706b5725af58"
fi

cd "$POL_USER_ROOT/ressources/" || POL_Debug_Fatal "Unable to change directory"
[ -e "$sparchiveold" -a ! -e "$sparchive" ] && ln -s "$sparchiveold" "$sparchive"

POL_Download_Resource "$src" "$md5"

if [ ! "$1" = "--only-download" ]; then
        cd "$POL_USER_ROOT/tmp/" || POL_Debug_Fatal "Unable to change directory"
        POL_Wine_WaitBefore "$TITLE"
        POL_Debug_Message "Extract i386/$file_shorted from $sparchive"
        cabextract "$POL_USER_ROOT/ressources/$sparchive" -F i386/$file_shorted
        POL_Debug_Message "Extract $file from i386/$file_shorted"
        cabextract i386/$file_shorted
        POL_Debug_Message "Move $file to $OLD_PC_DIR"
        mv "$file" "$OLD_PC_DIR"
fi

Replies

Edited by petch

This site allows content generated by members, and we promptly remove any content that infringes copyright according to our Terms of Service. To report copyright infringement, please send a notice to dmca-notice@playonlinux.com