Forums

GOG.com scripts

A collection of scripts for games from GOG.com

Auteur Réponses
mattcaron Vendredi 27 Mai 2011 à 3:10
mattcaronAnonymous

Hey folks,

I'm starting a thread for scripts for games from GOG.com

I'm keeping my scripts here:

https://github.com/mattcaron/playonlinux

Here are scripts for Fallout and Fallout 2:

Fallout:
#!/bin/bash
if [ "$PLAYONLINUX" = "" ]; then
    exit 0
fi
source "$PLAYONLINUX/lib/sources"
 
POL_SetupWindow_Init
POL_SetupWindow_presentation "Fallout" "Black Isle Studios" "http://fallout.bethsoft.com/" "Matt Caron" "Fallout"
 
 
select_prefix "$REPERTOIRE/wineprefix/Fallout/"
POL_SetupWindow_prefixcreate
cd $HOME
POL_SetupWindow_browse "Plese select the location of the install file" "Select file"

POL_SetupWindow_wait_next_signal "Installing Fallout..." "Fallout"
wine $APP_ANSWER
 
POL_SetupWindow_detect_exit
 
POL_SetupWindow_reboot
 
 
POL_SetupWindow_make_shortcut "Fallout" "Program Files/GOG.com/Fallout/" "falloutw.exe" "" "Fallout"
 
POL_SetupWindow_Close
exit


Fallout2:
#!/bin/bash
if [ "$PLAYONLINUX" = "" ]; then
    exit 0
fi
source "$PLAYONLINUX/lib/sources"
 
POL_SetupWindow_Init
POL_SetupWindow_presentation "Fallout 2" "Black Isle Studios" "http://fallout.bethsoft.com/" "Matt Caron" "Fallout 2"
 
 
select_prefix "$REPERTOIRE/wineprefix/Fallout2/"
POL_SetupWindow_prefixcreate
cd $HOME
POL_SetupWindow_browse "Plese select the location of the install file" "Select file"

POL_SetupWindow_wait_next_signal "Installing Fallout 2..." "Fallout 2"
wine $APP_ANSWER
 
POL_SetupWindow_detect_exit
 
POL_SetupWindow_reboot
 
 
POL_SetupWindow_make_shortcut "Fallout2" "Program Files/GOG.com/Fallout 2/" "fallout2.exe" "" "Fallout 2"
 
POL_SetupWindow_Close
exit


gosa Mercredi 13 Juillet 2011 à 9:20
gosaAnonymous

This is so wonderful! My two absolute favorite games now easily installed in Playonlinux. Maybe I have to start browsing for more gog-games...

Thanks!
realta_taisteal Samedi 26 Novembre 2011 à 8:45
realta_taistealAnonymous

I want to do empire earth I(gog). One more non-gog after that. Can you help?


petch Lundi 28 Novembre 2011 à 1:38
petch

Hi, I forked your repository to add Outcast installer; It already features correct mouse grabbing, documentation shortcut, and a configurator to select language among english/french/german.
I'd like to add Zenger patch to give access to higher resolutions, but I'm still learning the ropes, it's my first day on the project! (and testing is very time consuming :p)

https://github.com/petchema/playonlinux

Script: https://raw.github.com/petchema/playonlinux/master/outcast-gog
#!/bin/bash
# Date : (2011-11-27 19-47)
# Last revision : (2011-11-28 01-44)
# Wine version used : 1.3.27-rawinput2
# Distribution used to test : Debian Sid (Unstable)
# Author : Pierre Etchemaite <petchema@concept-micro.com>
# Script licence : GPL v.2
# Program licence : Retail
# Depend : none

[ -z "$PLAYONLINUX" ] && exit 0
source "$PLAYONLINUX/lib/sources"

abort () {
    POL_SetupWindow_message_image "The installation has been aborted." "Error" "$PLAYONLINUX/themes/tango/warning.png"
    POL_SetupWindow_Close
    exit 1
}

check_install_archive () {
#    POL_SetupWindow_wait_next_signal "Checking install archive..." "Outcast"

    EXPECTED_SIZE=1409323648
    EXPECTED_MD5="a8bf2336a580527f0eb99f8b90009c33"

    SIZE="$(stat -c%s $APP_ANSWER)"
    MD5="$(md5sum $APP_ANSWER|cut -c1-32)"

#    POL_SetupWindow_detect_exit

    if [ $SIZE != $EXPECTED_SIZE -o "$MD5" -ne "$EXPECTED_MD5" ]; then
	POL_SetupWindow_message_image "Either your install archive is corrupted, or is not the expected version.\\nThis script cannot guarantee that installation will work correctly. Please report success or failure to PlayOnLinux forums.\\n\\nSize: $SIZE (expected $EXPECTED_SIZE)\\nMD5: $MD5 (expected $EXPECTED_MD5)" "Install archive mismatch" "$PLAYONLINUX/themes/tango/warning.png"
	POL_SetupWindow_question "Continue?" "Install archive mismatch"
	[ "$APP_ANSWER" -ne "TRUE" ] && abort
    fi
}


PREFIX="Outcast-gog"
SHORTCUT_NAME="Outcast"
WORKING_WINE_VERSION="1.3.27-rawinput2"

POL_SetupWindow_Init
POL_SetupWindow_presentation "Outcast (GoG release)" "Appeal S.A. / Atari" "http://www.gog.com/en/gamecard/outcast" "Pierre Etchemaite" "$PREFIX"
 
 
select_prefix "$DIRECTORY/wineprefix/$PREFIX/"
POL_SetupWindow_prefixcreate
cd $HOME
POL_SetupWindow_browse "Plese select the location of the install file" "Select file"

# Doesn't work
# check_install_archive

POL_SetupWindow_install_wine "$WORKING_WINE_VERSION"
Use_WineVersion "$WORKING_WINE_VERSION"


POL_SetupWindow_wait_next_signal "Installing Outcast..." "Outcast"

# Associate .PDF with native app 
# http://wiki.winehq.org/FAQ#head-91bf3f0a8ccbfab8dee96f82fae2f1a489e0d243
# Do it before installing the game, so you have the possibility to open
# PDFs with Win32 reader if you choose to install it
cat <<'EOF' > $DIRECTORY/tmp/pdfnativereader.reg
[HKEY_CLASSES_ROOT\\.pdf]
@="PDFfile"
"Content Type"="application/pdf"
[HKEY_CLASSES_ROOT\\PDFfile\\Shell\\Open\\command]
@="winebrowser \\"%1\\""
EOF
wine regedit $DIRECTORY/tmp/pdfnativereader.reg


wine "$APP_ANSWER" || abort

# Main game will crash if desktop size is not constrained
Set_Desktop "On" "640" "480"

# Only works perfectly with rawinput; Otherwise makes loader menu funky
# (grab the menu around to put wanted entry at the center of screen,
# release then click!), but the rest of the game is more enjoyable
#Set_DXGrab "On"


# Set_GrabFullScreen anyone?
cat <<'EOF' > $DIRECTORY/tmp/grabfullscreen.reg
REGEDIT4

[HKEY_CURRENT_USER\\Software\\Wine\\X11 Driver]
"GrabFullscreen"="Y"
EOF
wine regedit $DIRECTORY/tmp/grabfullscreen.reg

POL_SetupWindow_detect_exit

# Doesn't hurt ;)
POL_SetupWindow_reboot 


# Warning, /windows/command/ also contains a start.exe, so
# POL_SetupWindow_auto_shortcut can fail
POL_SetupWindow_make_shortcut "$PREFIX" "Program Files/GOG.com/Outcast/" "start.exe" "${SHORTCUT_NAME}.ICO" "$SHORTCUT_NAME"
Set_WineVersion_Assign "$WORKING_WINE_VERSION" "$SHORTCUT_NAME"

POL_SetupWindow_make_shortcut "$PREFIX" "/" "start" "" "Outcast user manual" "" "'Program Files/GOG.com/Outcast/manual.pdf'"


POL_SetupWindow_Close

cat <<EOF > $DIRECTORY/configurations/configurators/Outcast
#!/bin/bash
[ -z "\\$PLAYONLINUX" ] && exit 0
source "\\$PLAYONLINUX/lib/sources"
export WINEPREFIX="$DIRECTORY/wineprefix/$PREFIX"
export WINEDEBUG=""
cd "\\$WINEPREFIX/drive_c/Program Files/GOG.com/Outcast/" || exit 1

CURRENT_LANG=English
[ -f pol_configuration ] && source pol_configuration

POL_SetupWindow_Init

# Other language directories are incomplete (?)
POL_SetupWindow_menu_list "Choose language" "Voices and subtitles" "English~French~German" "~" "\\$CURRENT_LANG"
CURRENT_LANG="\\$APP_ANSWER"
case "\\$CURRENT_LANG" in
    English)
        ln -sf Data/Voices/ENGLISH/FIX.PAK fix.pak
        ln -sf Data/Voices/ENGLISH/TEXT.PAK text.pak
        ln -sf Data/Voices/ENGLISH/VOICES1.PAK voices1+.pak
        ln -sf Data/Voices/ENGLISH/VOICES2.PAK voices2+.pak
        ln -sf Data/Voices/ENGLISH/VOICES3.PAK voices3+.pak
        ln -sf Data/Voices/ENGLISH/VOICES4.PAK voices4+.pak
        ln -sf Data/Voices/ENGLISH/VOICES5.PAK voices5+.pak
        ln -sf Data/Voices/ENGLISH/VOICES6.PAK voices6+.pak
        ln -sf Data/Voices/ENGLISH/VOICESGE.PAK voicesgen+.pak
        ;;
    French)
        ln -sf Data/Voices/French/FIX.PAK fix.pak
        ln -sf Data/Voices/French/TEXT.PAK text.pak
        ln -sf Data/Voices/French/VOICES1.PAK voices1+.pak
        ln -sf Data/Voices/French/VOICES2.PAK voices2+.pak
        ln -sf Data/Voices/French/VOICES3.PAK voices3+.pak
        ln -sf Data/Voices/French/VOICES4.PAK voices4+.pak
        ln -sf Data/Voices/French/VOICES5.PAK voices5+.pak
        ln -sf Data/Voices/French/VOICES6.PAK voices6+.pak
        ln -sf Data/Voices/French/VOICESGE.PAK voicesgen+.pak
        ;;
    German)
        ln -sf Data/Voices/German/FIX.PAK fix.pak
        ln -sf Data/Voices/German/TEXT.PAK text.pak
        ln -sf Data/Voices/German/VOICES1.PAK voices1+.pak
        ln -sf Data/Voices/German/VOICES2.PAK voices2+.pak
        ln -sf Data/Voices/German/VOICES3.PAK voices3+.pak
        ln -sf Data/Voices/German/VOICES4.PAK voices4+.pak
        ln -sf Data/Voices/German/VOICES5.PAK voices5+.pak
        ln -sf Data/Voices/German/VOICES6.PAK voices6+.pak
        ln -sf Data/Voices/German/VOICESGE.PAK voicesgen+.pak
        ;;
esac
echo "CURRENT_LANG=\\"\\$CURRENT_LANG\\"" > pol_configuration

POL_SetupWindow_Close
exit

EOF

exit


Regards, Pierre.

Edité par petch

petch Mardi 29 Novembre 2011 à 3:01
petch

Hi all,
I've updated previous script (always check repository link for latest version), and created a script for Zenger's hires patch!
They're still some tweaks in GoG forums that could be interesting to add (rendering tweaks, WASD movement keys,...)
Enjoy!

https://raw.github.com/petchema/playonlinux/master/outcast-gog-zenger-hires-patch
#!/bin/bash
# Date : (2011-11-28 22-00)
# Last revision : (2011-11-29 01-09)
# Wine version used : 1.3.27-rawinput2
# Distribution used to test : Debian Sid (Unstable)
# Author : Pierre Etchemaite <petchema@concept-micro.com>
# Script licence : GPL v.2
# Program licence : Freeware
# Depend : unzip

[ -z "$PLAYONLINUX" ] && exit 0
source "$PLAYONLINUX/lib/sources"

abort () {
    POL_SetupWindow_message_image "$LNG_ABORTED" "$TITLE" "$PLAYONLINUX/themes/tango/warning.png"
    POL_SetupWindow_Close
    exit 1
}

check_install_archive () {
    POL_SetupWindow_wait_next_signal "$LNG_CHECK_ARCHIVE" "$TITLE"

    EXPECTED_SIZE=102462783
    EXPECTED_MD5="d1c6783339150684c659d5fb56f130dc"

    SIZE="$(stat -c%s $ARCHIVE)"
    MD5="$(md5sum $ARCHIVE|cut -c1-32)"

    POL_SetupWindow_detect_exit

    if [ $SIZE -ne $EXPECTED_SIZE -o "$MD5" != "$EXPECTED_MD5" ]; then
        POL_SetupWindow_message_image "$LNG_ARCHIVE_MISMATCH\\nSize: $SIZE (expected $EXPECTED_SIZE)\\nMD5: $MD5\\n     (expected $EXPECTED_MD5)" "$TITLE" "$PLAYONLINUX/themes/tango/warning.png"
        POL_SetupWindow_question "$LNG_CONTINUE" "$TITLE"
        [ "$APP_ANSWER" != "TRUE" ] && abort
    fi
}

# Must match outcast-gog $PREFIX
PREFIX="Outcast_gog"
WORKING_WINE_VERSION="1.3.27-rawinput2"

case "$POL_LANG" in
    fr)
        TITLE="Patch haute résolution v3 de Zenger pour Outcast"
        SHORTCUT_NAME="Patch haute résolution v3 de Zenger"
        LNG_ABORTED="Une erreur est survenue, l'installation est interrompue."
        LNG_CHECK_ARCHIVE="Test de l'archive d'installation..."
        LNG_ARCHIVE_MISMATCH="L'archive ne correspond pas.\\nOu bien elle est corrompue, ou ce n'est pas la version attendue.\\nCe script ne peut pas garantir que l'installation se passera bien,\\npensez à communiquer le résultat de l'installation sur le forum de PlayOnLinux."
        LNG_CONTINUE="Continuer ?"
        LNG_ARCHIVE_LOCATION="Indiquez l'emplacement de l'archive d'installation\\nVous pouvez la télécharger depuis:\\nhttp://www.megaupload.com/?d=H6CIR27L"
        LNG_SELECT_FILE="Sélectionnez le fichier"
        LNG_NEED_OUTCAST="Oups, vous devez avoir Outcast (GoG release) déjà installé!"
        LNG_INSTALLING="Installation de $SHORTCUT_NAME..."
        LNG_SEE_CONFIGURATOR="Le patch peut maintenant être activé et configuré depuis\\nl'assistant de configuration PlayOnLinux pour Outcast.\\nN'oubliez pas de laisser un petit mot à Zenger sur le forum de GoG !"
        ;;
    *)
        TITLE="Zenger's Outcast HI-RES patch v3"
        SHORTCUT_NAME="Zenger Hi-Res patch v3"
        LNG_ABORTED="An error occurred, the installation is aborted."
        LNG_CHECK_ARCHIVE="Checking install archive..."
        LNG_ARCHIVE_MISMATCH="Install archive mismatch.\\nEither your install archive is corrupted, or is not the expected version.\\nThis script cannot guarantee that installation will work correctly.\\nPlease report success or failure to PlayOnLinux forums."
        LNG_CONTINUE="Continue?"
        LNG_ARCHIVE_LOCATION="Please select the location of the archive file\\nYou can download it from:\\nhttp://www.megaupload.com/?d=H6CIR27L"
        LNG_SELECT_FILE="Select file"
        LNG_NEED_OUTCAST="Oops, you must install Outcast (GoG release) first!"
        LNG_INSTALLING="Installing $SHORTCUT_NAME..."
        LNG_SEE_CONFIGURATOR="The patch can now be activated and configured from\\nPlayOnLinux's setup wizard for Outcast.\\nAnd don't forget to leave a message to Zenger on GoG forums!"
        ;;
esac

POL_SetupWindow_Init
# URL shortener? :p
POL_SetupWindow_presentation "$TITLE" "Zenger" "http://www.gog.com/en/forum/outcast/...\\nexperimental_outcast_hi_res_patch...\\n_up_to_1280x768_cyana_lighthouse_problem_fixed/" "Pierre Etchemaite" "$PREFIX"

if [ "$(POL_Wine_PrefixExists $PREFIX)" != "True" ]; then
    POL_SetupWindow_message_image "$LNG_NEED_OUTCAST" "$TITLE" "$PLAYONLINUX/themes/tango/warning.png"
    abort
fi

POL_Wine_SelectPrefix "$PREFIX"
POL_LoadVar_PROGRAMFILES

cd $HOME
POL_SetupWindow_browse "$LNG_ARCHIVE_LOCATION" "$LNG_SELECT_FILE"
ARCHIVE="$APP_ANSWER"

# Doesn't work?
check_install_archive

POL_Wine_InstallVersion "$WORKING_WINE_VERSION"
export WINEVERSION="$WORKING_WINE_VERSION"

POL_SetupWindow_wait_next_signal "$LNG_INSTALLING" "$TITLE"

unzip -n "$ARCHIVE" -d "$WINEPREFIX/drive_c/$PROGRAMFILES/GOG.com/Outcast/" || abort

POL_SetupWindow_detect_exit

POL_SetupWindow_message "$LNG_SEE_CONFIGURATOR" "$TITLE"

POL_SetupWindow_Close

cat <<EOF > $REPERTOIRE/configurations/configurators/Outcast.zenger-hires
case "\\$POL_LANG" in
    fr)
        LNG_HIRES_PATCH="Patch haute résolution de Zenger"
        LNG_CHANGE_RESOLUTION="Lancer le \\$LNG_HIRES_PATCH ?"
        LNG_LOADER_REMINDER="Vérifiez que la résolution a été changée dans le chargeur du jeu\\n(éventuellement \\"HI-RES\\")."
        ;;
    *)
        LNG_HIRES_PATCH="Zenger's Hi-Res patch"
        LNG_CHANGE_RESOLUTION="Run \\$LNG_HIRES_PATCH?"
        LNG_LOADER_REMINDER="Check that the resolution has been changed\\n(eventually set to \\"HI-RES\\") in the loader."
        ;;
esac

POL_SetupWindow_question "\\$LNG_CHANGE_RESOLUTION" "\\$TITLE"
if [ "\\$APP_ANSWER" = "TRUE" ]; then

    POL_SetupWindow_wait_next_signal "\\$LNG_HIRES_PATCH" "\\$TITLE"

    cd "\\$WINEPREFIX/drive_c/\\$PROGRAMFILES/GOG.com/Outcast/"
    POL_Wine APPLYMEGAPATCH.exe

    POL_SetupWindow_detect_exit

    SCREEN_WIDTH=\\$(grep '^ScreenWidth=' OUTCAST.ini |cut -d= -f2)
    SCREEN_HEIGHT=\\$(grep '^ScreenHeight=' OUTCAST.ini |cut -d= -f2)
    Set_Desktop "On" "\\$SCREEN_WIDTH" "\\$SCREEN_HEIGHT"

    POL_SetupWindow_message "\\$LNG_LOADER_REMINDER" "\\$TITLE"

fi
EOF

exit
realta_taisteal Vendredi 2 Décembre 2011 à 2:00
realta_taistealAnonymous

Can you do a script for empire earth gog?
petch Vendredi 2 Décembre 2011 à 12:21
petch

realta_taisteal Dimanche 4 Décembre 2011 à 6:20
realta_taistealAnonymous

Which gog script should I start with? So, I can test it.
frapell Lundi 12 Décembre 2011 à 19:09
frapellAnonymous

Hey ! Empire Earth is Free for a limited time (until Dec 14), grab it from here !

http://www.gog.com/en/gamecard/empire_earth_gold_edition

Cheers !
petch Mercredi 4 Janvier 2012 à 22:20
petch

I reworked Matt's Fallout and Fallout 2 scripts to match my other scripts (and POL4 style).
One weird thing: the games sometimes exit with an exitcode of 1, but I don't know why (they otherwise seem to work perfectly), leading to a "the program has crashed, do you want to generate a log", etc.
So I forced the exitcode to 0 in the shortcut, I hope it doesn't hide a real problem :s

https://raw.github.com/petchema/playonlinux/master/fallout-gog
#!/bin/bash
# Date : (2012-01-02 22-13)
# Last revision : (2012-01-04 20-32)
# Wine version used : 1.3.36
# Distribution used to test : Debian Sid (Unstable)
# Author : Pierre Etchemaite petchema@concept-micro.com
# Script licence : GPL v.2
# Program licence : Retail
# Depend :

# Tested with install archive:
# setup_fallout.exe 507361719 "0594cd5ce61ceca240feb2c21eb27702"

[ -z "$PLAYONLINUX" ] && exit 0
source "$PLAYONLINUX/lib/sources"

PREFIX="Fallout_gog"
WORKING_WINE_VERSION="1.3.36"

TITLE="$(eval_gettext 'Fallout (GoG release)')"
SHORTCUT_NAME="Fallout"
SHORTCUT_DOC="$SHORTCUT_NAME - $(eval_gettext 'User manual')"
SHORTCUT_README="$SHORTCUT_NAME - $(eval_gettext 'Readme')"

POL_SetupWindow_Init
POL_Debug_Init

POL_SetupWindow_presentation "$TITLE" "Black Isle Studios / Interplay" "http://www.gog.com/en/gamecard/fallout" "Pierre Etchemaite" "$PREFIX"

POL_Wine_SelectPrefix "$PREFIX"
POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"

cd $HOME
POL_SetupWindow_browse "$(eval_gettext 'Please select the setup file to run.')" "$TITLE" "setup_fallout.exe"
ARCHIVE="$APP_ANSWER"

POL_SetupWindow_wait "$(eval_gettext 'Please wait while $TITLE is installed.')" "$TITLE"

POL_Call POL_Function_SetNativeExtension "pdf"
POL_Call POL_Function_SetNativeExtension "txt"

POL_Wine start /unix "$ARCHIVE" || POL_Debug_Fatal "$(eval_gettext 'Error while installing archive')"

POL_Wine_WaitExit "$TITLE"


# GoG work!
Set_OS winxp

POL_SetupWindow_VMS "2"

# Doesn't hurt ;)
POL_Wine_reboot

# hackish, but sometimes exits with an exitcode of 1 for what it seems no good reason
POL_Shortcut "falloutw.exe" "$SHORTCUT_NAME"
POL_Shortcut_InsertBeforeWine "$SHORTCUT_NAME" "trap 'exit 0' EXIT"

POL_Shortcut "start.exe" "$SHORTCUT_DOC" "" "'C:/$PROGRAMFILES/GOG.com/Fallout/Manual.pdf'"
POL_Shortcut "start.exe" "$SHORTCUT_README" "" "'C:/$PROGRAMFILES/GOG.com/Fallout/Readme.txt'"

POL_SetupWindow_Close

exit


https://raw.github.com/petchema/playonlinux/master/fallout2-gog
#!/bin/bash
# Date : (2012-01-02 23-43)
# Last revision : (2012-01-04 21-01)
# Wine version used : 1.3.36
# Distribution used to test : Debian Sid (Unstable)
# Author : Pierre Etchemaite petchema@concept-micro.com
# Script licence : GPL v.2
# Program licence : Retail
# Depend :

# Tested with install archives:
# setup_fallout_2.exe 585188020 "0ec3537ca2af41ce11b478f11d4abd20"

[ -z "$PLAYONLINUX" ] && exit 0
source "$PLAYONLINUX/lib/sources"

PREFIX="Fallout2_gog"
WORKING_WINE_VERSION="1.3.36"

TITLE="$(eval_gettext 'Fallout 2 (GoG release)')"
SHORTCUT_NAME="Fallout 2"
SHORTCUT_DOC="$SHORTCUT_NAME - $(eval_gettext 'User manual')"
SHORTCUT_README="$SHORTCUT_NAME - $(eval_gettext 'Readme')"

POL_SetupWindow_Init
POL_Debug_Init

POL_SetupWindow_presentation "$TITLE" "Black Isle Studios / Interplay" "http://www.gog.com/en/gamecard/fallout_2" "Pierre Etchemaite" "$PREFIX"

POL_Wine_SelectPrefix "$PREFIX"
POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"

cd $HOME
POL_SetupWindow_browse "$(eval_gettext 'Please select the setup file to run.')" "$TITLE" "setup_fallout_2.exe"
ARCHIVE="$APP_ANSWER"

POL_SetupWindow_wait "$(eval_gettext 'Please wait while $TITLE is installed.')" "$TITLE"

POL_Call POL_Function_SetNativeExtension "pdf"

POL_Wine start /unix "$ARCHIVE" || POL_Debug_Fatal "$(eval_gettext 'Error while installing archive')"

POL_Wine_WaitExit "$TITLE"


# GoG work!
Set_OS winxp

POL_SetupWindow_VMS "2"

# Doesn't hurt ;)
POL_Wine_reboot

# hackish, but sometimes exits with an exitcode of 1 for what it seems no good reason
POL_Shortcut "fallout2.exe" "$SHORTCUT_NAME"
POL_Shortcut_InsertBeforeWine "$SHORTCUT_NAME" "trap 'exit 0' EXIT"

POL_Shortcut "start.exe" "$SHORTCUT_DOC" "" "'C:/$PROGRAMFILES/GOG.com/Fallout 2/Manual.pdf'"
POL_Shortcut "start.exe" "$SHORTCUT_README" "" "'C:/$PROGRAMFILES/GOG.com/Fallout 2/Readme.txt'"

POL_SetupWindow_Close

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