Applications

Choose a category

accessories
Accessories
development
Development
education
Education
games
Games
graphics
Graphics
internet
Internet
multimedia
Multimedia
office
Office
other
Other

Star Wars : Knights Of The Old Republic

#!/bin/bash
if [ "$PLAYONLINUX" = "" ]
then
exit 0
fi
source "$PLAYONLINUX/lib/sources"
cfg_check

presentation "StarWars : Knights Of The Old Republic" "LucasArts" "http://www.lucasarts.com/products/swkotor/" "GNU_Raziel" "SWKotor"

Ask_For_cdrom
Check_cdrom "Setup.exe"

TEMP="$HOME/.PlayOnLinux/tmp/SWKotor"
chmod 777 $TEMP -R
rm $TEMP -R
mkdir -p $REPERTOIRE/wineprefix/SWKotor
mkdir -p $TEMP
cd $REPERTOIRE/wineprefix/SWKotor
select_prefixe "$(pwd)"
creer_prefixe

cd $WINEPREFIX/drive_c/windows/
mkdir temp
cd $WINEPREFIX/dosdevices
rm ./*
ln -s ../drive_c c:
ln -s / z:
ln -s $TEMP d:

attendre "Patientez pendant la préparation de l'installation ..." "cp -r $CDROM/* $TEMP"
chmod 777 $TEMP -R
mv $TEMP/autorun.inf $TEMP/autorun1.inf
message "Veuillez monter le CDROM 2, puis cliquez sur valider."
attendre "Patientez pendant la préparation de l'installation ..." "cp -r $CDROM/* $TEMP"
chmod 777 $TEMP -R
mv $TEMP/autorun.inf $TEMP/autorun2.inf
message "Veuillez monter le CDROM 3, puis cliquez sur valider."
attendre "Patientez pendant la préparation de l'installation ..." "cp -r $CDROM/* $TEMP"
chmod 777 $TEMP -R
mv $TEMP/autorun.inf $TEMP/autorun3.inf
message "Veuillez monter le CDROM 4, puis cliquez sur valider."
attendre "Patientez pendant la préparation de l'installation ..." "cp -r $CDROM/* $TEMP"

Set_OS "winxp"
wine d:\Setup.exe
message "Appuyez sur OK UNIQUEMENT quand l'installation du jeu sera terminée sous peine de devoir recommencer l'installation."

Set_Managed "On"
Set_DXGrab "On"

simuler_reboot
chmod 777 $TEMP -R
rm $TEMP -R
cd $WINEPREFIX/dosdevices
rm ./d:
ln -s $CDROM ./d:
creer_lanceur "SWKotor" "Program\ Files/LucasArts/SWKotOR" "swkotor.exe" "SWKotor.xpm" "StarWars : Knights Of The Old Republic"
creer_lanceur_expansion "SWKotor_Config" "Program\ Files/LucasArts/SWKotOR" "swconfig.exe" "SWKotor_Config.xpm" "StarWars : Knights Of The Old Republic Configurator"

message "Installation terminée"
exit

Il n'y a rien à voir ici