Jesteś tutaj > Les forums > Your creations. > [script] Myst Masterpiece Edition
Fora
[script] Myst Masterpiece Edition
| Autor |
Odpowiedzi |
| JoRbg |
Data: Czwartek 12 Sierpień 2010 ŕ 15:18
- [Cytuj]
|
Membre
 |
Hello,
this is my first script, it installs Myst(Masterpiece Edition).
The Gameicon:
#!/bin/bash
# Date : (2010-08-11 19-20)
# Last revision : (2010-08-12 14-36)
# Wine version used : 1.1.19
# Distribution used to test : OpenSuse 11.3 (x86_64)
# Author : Johannes Hackel
# Licence : none
# Depend :
[ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"
TITLE="Myst: Masterpiece Edition"
AUTHOR="Johannes Hackel"
PREFIX="Myst_ME"
PREFIXDIR="$REPERTOIRE/wineprefix/$PREFIX"
WORKINGWINEVERSION="1.1.19"
POL_SetupWindow_Init
POL_SetupWindow_presentation "$TITLE" "Cyan Worlds" "http://mystworlds.ubi.com/us/" "$AUTHOR" "$PREFIX"
select_prefix "$PREFIXDIR"
POL_SetupWindow_cdrom
POL_SetupWindow_check_cdrom "MYST.DAT"
POL_SetupWindow_install_wine "$WORKINGWINEVERSION"
Use_WineVersion "$WORKINGWINEVERSION"
POL_SetupWindow_prefixcreate
PROGRAMFILES="Program Files"
POL_LoadVar_PROGRAMFILES
POL_SetupWindow_message "Click Forward to configure Wine." "$TITLE"
POL_SetupWindow_wait_next_signal "Configure Wine..." "Configuration"
Set_OS "win98"
Set_Desktop On 640 480
cd "$WINEPREFIX/dosdevices"
ln -s "$CDROM" d:
cd "$WINEPREFIX/drive_c/windows/temp/"
echo "[HKEY_LOCAL_MACHINE\\Software\\Wine\\Drives]" > cdrom.reg
echo "\"d:\"=\"cdrom\"" >> cdrom.reg
regedit cdrom.reg
sleep 5
POL_setupWindow_detect_exit
POL_SetupWindow_message "Attention, don't install DirectX 6.1!\nClick Forward to Install $TITLE and QuickTime." "$TITLE"
POL_SetupWindow_wait_next_signal "Installation in progress..." "$TITLE"
wine start /unix "$CDROM/Setup.exe"
POL_SetupWindow_detect_exit
POL_SetupWindow_message "Click Forward when $TITLE is installed." "$TITLE"
POL_SetupWindow_make_shortcut "$PREFIX" "$PROGRAMFILES/Red Orb/Myst Masterpiece Edition" "Myst.exe" "" "$TITLE"
Set_WineVersion_Assign "1.1.19" "$TITLE"
POL_SetupWindow_message "Click Forward when finished" "$TITLE"
POL_SetupWindow_Close
exit Edytowane przez JoRbg
|
| Pacjonek |
Data: Niedziela 15 Sierpień 2010 ŕ 13:41
- [Cytuj]
|
Membre
 |
I tested it. All ok. Well done!
|