This is for Runes of Magic Philippines DVD installation.
It works fine, but there are post-installation settings like installing winetricks in the RoM-PH wineprefix so you can install vc2005sp1 which is required by Runes of Magic.
Secondly, this regedit is might be needed if the EULA/login screen fails to show up:
[HKEY_CURRENT_USER\\Software\\Wine\\Direct3D]
"UseGLSL"="disabled"
* I did not include the regedit in the script below because the setting above is on a case-to-case basis.
#!/bin/bash
# Date: (2009-10-23 10-34)
# Last revision: (2009-10-27 13-00)
# Distribution used to test: Ubuntu 9.10
# Wine version used: 1.1.32
[ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"
#fetching PROGRAMFILES environmental variable
PROGRAMFILES=`wine cmd /c echo "%ProgramFiles%"`
PROGRAMFILES=${PROGRAMFILES:3}
cd $REPERTOIRE/tmp
rm *.jpg
wget http://i43.tinypic.com/af7n9s.jpg --output-document=left.jpg
POL_SetupWindow_Init "" "$REPERTOIRE/tmp/left.jpg"
POL_SetupWindow_presentation "Runes of Magic" "Runewaker Entertainment" "www.runesofmagic.com.ph" "gameshogun.ws based on Asimov's and siGGismallz's script." "RunesOfMagic"
select_prefixe "$REPERTOIRE/wineprefix/RunesOfMagic"
POL_SetupWindow_prefixcreate
if [ "$POL_LANG" != "fr" ]
then
LNG_CHOOSE="Please choose the correct method of installation"
LNG_CHOOSE_TITLE="What kind of installation ?"
LNG_DVD="Install with one DVD"
LNG_DVD_TITLE="Installation DVD required"
LNG_MOUNT_DVD="Please mount the DVD."
LNG_WAIT_TITLE="Please wait while preparing installation..."
LNG_WAIT="Copying necessary installation files"
LNG_INSTALL_GO="Do not click on OK since you are not SURE the game has been installed.\\nIf you click on OK whereas the installation is not finished yet, you will have to install this game again."
LNG_CONFIRM="Are you sure Runes of Magic has been completely installed ?\\n(exept updates)\\nIf you click OK here, the game will be configured."
LNG_CONFIG="Configuring your installation..."
LNG_CONFIG_TILTE="Please wait"
LNG_INSTALL_FINISHED="Installation complete !"
fi
install_dvd ()
{
POL_SetupWindow_cdrom
POL_SetupWindow_message "$LNG_MOUNT_DVD" "$LNG_DVD_TITLE"
POL_SetupWindow_check_cdrom "DataFiles.01.cab"
TEMP="$HOME/.PlayOnLinux/tmp/rom"
chmod 777 $TEMP -R
rm $TEMP -R
mkdir -p $TEMP
cd $REPERTOIRE/wineprefix/RunesOfMagic
select_prefixe "$(pwd)"
cd $WINEPREFIX/dosdevices
rm ./*
ln -s ../drive_c c:
ln -s / z:
ln -s $TEMP d:
cd $TEMP
POL_SetupWindow_wait_next_signal "$LNG_WAIT" "$LNG_WAIT_TITLE"
cp $CDROM/* $TEMP
POL_SetupWindow_detect_exit
}
POL_SetupWindow_menu "$LNG_CHOOSE" "$LNG_CHOOSE_TITLE" "$LNG_DVD" "~"
ANSWER="$APP_ANSWER"
if [ "$ANSWER" == "$LNG_DVD" ]
then
install_dvd
fi
wine "$TEMP/rom_installer.exe"
POL_SetupWindow_message "$LNG_INSTALL_GO"
POL_SetupWindow_message "$LNG_CONFIRM"
POL_SetupWindow_wait_next_signal "$LNG_CONFIG" "$LNG_CONFIG_TILTE"
#cd $WINEPREFIX/drive_c/Program\\ Files/Runes\\ of\\ Magic/
cd "$WINEPREFIX/drive_c/$PROGRAMFILES/e-Games/Runes Of Magic"
Set_SoundDriver alsa
fonts_to_prefixe
chmod 777 $TEMP -R
rm $TEMP -R
cd $WINEPREFIX/dosdevices
rm ./d:
POL_SetupWindow_make_shortcut "RunesOfMagic" "$PROGRAMFILES/e-Games/Runes Of Magic" "Runes of Magic.exe" "" "Runes of Magic Philippines" "" "-game -opengl"
POL_SetupWindow_reboot
POL_SetupWindow_detect_exit
POL_SetupWindow_message "$LNG_INSTALL_FINISHED"
POL_SetupWindow_Close
exit
Edited by laibcoms