Skip to content

Instantly share code, notes, and snippets.

@nathan-osman
Created August 24, 2013 18:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nathan-osman/6329828 to your computer and use it in GitHub Desktop.
Save nathan-osman/6329828 to your computer and use it in GitHub Desktop.
Creates a compressed tarball containing the installation files for Internet Explorer 6 with SP1.
#!/bin/bash
set -e
# These are the files to be downloaded
FILES="ACTSETUP.CAB ADVAUTH.CAB AOLSUPP.CAB AXA.CAB AXA3.CAB BRANDING.CAB CRLUPD.CAB FONTCORE.CAB FONTSUP.CAB GSETUP95.CAB GSETUPNT.CAB HELPCONT.CAB HHUPD.CAB ICW.CAB ICWCON.CAB IE4SHLNT.CAB IE6SETUP.EXE IEAK6.EXE IEAK6CD.EXE IEAK6OPT.CAB IECIF.CAB IEDATA.CAB IEDOM.CAB IELPKAD.CAB IELPKAR.CAB IELPKIW.CAB IELPKJA.CAB IELPKKO.CAB IELPKPE.CAB IELPKTH.CAB IELPKVI.CAB IELPKZHC.CAB IELPKZHT.CAB IEMIL_1.CAB IEMIL_2.CAB IEMIL_3.CAB IEMIL_4.CAB IENT_S1.CAB IENT_S2.CAB IENT_S3.CAB IENT_S4.CAB IENT_S5.CAB IENT_S6.CAB IEW2K_1.CAB IEW2K_2.CAB IEW2K_3.CAB IEW2K_4.CAB IE_EXTRA.CAB IE_S1.CAB IE_S2.CAB IE_S3.CAB IE_S4.CAB IE_S5.CAB IE_S6.CAB JAAIME.CAB KOAIME.CAB MAILNEWS.CAB MOBILE95.CAB MOBILENT.CAB MPCDCS.CAB MPLAY2A.CAB MPLAY2U.CAB MPLAYER2.CAB OAINST.CAB OEEXCEP.CAB README.CAB SCAIME.CAB SCR56EN.CAB SCRIPTEN.CAB SETUPNT.CAB SETUPW95.CAB SWFLASH.CAB TCAIME.CAB TS95.CAB TSNT.CAB USP10.CAB VGX.CAB WAB.CAB"
# Create a directory for the downloaded files
mkdir -p ie6
# Download the files one at a time
for FILE in $FILES; do
echo "Downloading $FILE..."
wget -qP ie6 'http://download.microsoft.com/download/ie6sp1/finrel/6_sp1/W98NT42KMeXP/EN-US/'$FILE
done
# Create the missing files
cat >ie6/FILELIST.DAT <<EOD
[General]
Version=1
EOD
cat >ie6/IESETUP.INI <<EOD
[Version]
Signature="Active setup"
[Options]
IELiteMode=0
ConfirmFileList=0
Shell_Integration=1
EOD
echo '' >ie6/IESETUP.DIR
# Create the tar archive
echo 'Creating .tar.gz archive...'
tar -czf ie6.tar.gz ie6
echo 'Done!'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment