#!/bin/bash
if [ "$PLAYONLINUX" = "" ]
then
exit 0
fi
source "$PLAYONLINUX/lib/sources"
cfg_check
if [ "$POL_LANG" == "fr" ]
then
IES4LINUX="Un grand merci à ies4linuxnhttp://www.tatanka.com.br/ies4linux/"
LNG_DL_IE="Téléchargement de ies4linux en cours..."
LNG_EX_IE="Extraction de ies4linux"
else
IES4LINUX="Thanks to ies4linuxnhttp://www.tatanka.com/ies4linux/"
LNG_DL_IE="Downloading ies4linux..."
LNG_EX_IE="Extracting ies4linux"
fi
MS_LICENCE="$SITE/divers/ie_license.txt"
#Présentation
POL_SetupWindow_Init
POL_SetupWindow_presentation "Internet Explorer 6" "Microsoft" "http://www.microsoft.com/" "Tinou" "ie6"
POL_SetupWindow_message "$IES4LINUX" "Internet Explorer 6"
cd $REPERTOIRE/tmp/
cd $REPERTOIRE/tmp
wget "$MS_LICENCE"
POL_SetupWindow_licence "Please read this carrefully" "Licence" "$REPERTOIRE/tmp/ie_license.txt"
#afficher_fichier "license.txt" "Licence" 3 $MAX_STEP 1 "" "J'accepte"
#Set_WineVersion_Session "0.9.37"
POL_SetupWindow_download "$LNG_DL_IE" "$LNG_DOWNLOAD" "http://www.tatanka.com.br/ies4linux/downloads/ies4linux-latest.tar.gz"
POL_SetupWindow_wait_next_signal "PlayOnLinux is installing IE6..." "Installation"
tar -xvf ies4linux-latest.tar.gz
cd ies4linux-*
POL_SetupWindow_detect_exit
./ies4linux --no-desktop-icon --no-menu-icon --no-gui --basedir "$HOME/.PlayOnLinux/wineprefix/" --bindir "$HOME/.PlayOnLinux/configurations/ies4linux/" --downloaddir "$HOME/.PlayOnLinux/tmp/"
POL_SetupWindow_detect_exit
## Netoyage
cd $REPERTOIRE/wineprefix
rm ies4linux*
rm ./bin/ -r
rm ./tmp/ -r
rm "$HOME/.PlayOnLinux/configurations/ies4linux/" -r
POL_SetupWindow_detect_exit
export WINEPREFIX="$REPERTOIRE/wineprefix/ie6"
POL_SetupWindow_make_shortcut "ie6" "Program Files/Internet Explorer" "iexplore.exe" "ies4linux.png" "Internet Explorer 6"
POL_SetupWindow_message "Installation finished" "Internet Explorer 6"
POL_SetupWindow_Close