The forum

Problem with custom script

Author Replies
bain Thursday 27 March 2008 at 11:47
bainAnonymous

hi all.

I'm workling on a script for Monkey Island 3 and 4. Both are rated gold in wine appdb.

the problem I'm having is the setup.exe does not exit after install but instead spawns another process and even closing that process does not return you back to POL installer hence the icons are not created etc etc untill you exit POL, in which case is wants to start creating icons.

I've attached the script for MI3 for testing.

Anybody have any ideas on how to get around this ?

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

cfg_check

presentation "Curse of Monkey Island" "Lucas Arts" "http://www.worldofmi.com/thegames/monkey3/index.php" "bain" "CurseofMonkeyIsland"

Ask_For_cdrom
Check_cdrom "curse.exe"

mkdir -p $HOME/.PlayOnLinux/wineprefix/CurseofMonkeyIsland
cd $HOME/.PlayOnLinux/wineprefix/CurseofMonkeyIsland

select_prefixe "$(pwd)"
creer_prefixe

mkdir -p $WINEPREFIX/drive_c/windows/temp
cd $WINEPREFIX/dosdevices
rm ./*
ln -s ../drive_c c:
ln -s / z:
ln -s $CDROM ./d:
cd $CDROM
wine "d:\install\setup.exe"

# message "Click next when installation is finished" "Installation"

creer_lanceur "CurseofMonkeyIsland" "Program Files/LucasArts/Curse/" "CURSE.EXE" "curseofmonkeyisland.xpm" "Curse of Monkey Island"

exit

This site allows content generated by members, and we promptly remove any content that infringes copyright according to our Terms of Service. To report copyright infringement, please send a notice to dmca-notice@playonlinux.com