#!/bin/bash
if [ "$PLAYONLINUX" = "" ]
then
exit 0
fi
source "$PLAYONLINUX/lib/sources"
cfg_check
POL_SetupWindow_Init
POL_SetupWindow_presentation "Age of Wonders" "Triumph Studio" "http://www.triumphstudios.com/" "Zoloom" "AgeOfWonders"
select_prefixe "$REPERTOIRE/wineprefix/AgeOfWonders"
POL_SetupWindow_prefixcreate
POL_SetupWindow_cdrom
POL_SetupWindow_check_cdrom "Setup.exe"
cd $CDROM
POL_SetupWindow_wait_next_signal "Installation in progress..." "Age of Wonders"
wine $CDROM/Setup.exe
POL_SetupWindow_detect_exit
POL_SetupWindow_make_shortcut "AgeOfWonders" "Program Files/Triumph Studios/Age of Wonders" "AoWSetup.exe" "" "Age of Wonders"
cd "$REPERTOIRE/wineprefix/AgeOfWonder/drive_c/Program Files/Triumph Studios/Age of Wonders/Images/Scenes"
mv "Intro.avi" "IntroDISABLE.avi"
POL_SetupWindow_message "The introdution movie was renamed because it doesn't appear correctly with Wine. You can watch it in the Images/Scenes of the game's directory." "Warning"
POL_SetupWindow_reboot
POL_SetupWindow_Close
exit