#!/bin/bash
[ -z
"$PLAYONLINUX"
] &&
exit
0
source
"$PLAYONLINUX/lib/sources"
PREFIX=
"ColdWarAssault_gog"
WORKING_WINE_VERSION=
"1.3.36"
TITLE=
"$(eval_gettext 'Arma: Cold War Assault (GoG release)')"
SHORTCUT_NAME=
"Arma: Cold War Assault"
SHORTCUT_DOC=
"$SHORTCUT_NAME - $(eval_gettext 'User manual')"
SHORTCUT_README=
"$SHORTCUT_NAME - $(eval_gettext 'Readme')"
POL_SetupWindow_Init
POL_Debug_Init
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_arma_cold_war_assault.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"
Set_OS winxp
POL_SetupWindow_VMS
"16"
POL_Wine_reboot
POL_Shortcut
"ColdWarAssault.exe"
"$SHORTCUT_NAME"
POL_Shortcut
"start.exe"
"$SHORTCUT_DOC"
""
"'C:/$PROGRAMFILES/GOG.com/Arma Cold War Assault/manual.pdf'"
POL_Shortcut
"start.exe"
"$SHORTCUT_README"
""
"'C:/$PROGRAMFILES/GOG.com/Arma Cold War Assault/readme.txt'"
POL_SetupWindow_Close
cat
<<_EOF_ >
"$REPERTOIRE/configurations/configurators/$SHORTCUT_NAME"
#!/bin/bash
[ -z
"\\$PLAYONLINUX"
] &&
exit
0
source
"\\$PLAYONLINUX/lib/sources"
export
WINEPREFIX=
"\\$REPERTOIRE/wineprefix/$PREFIX"
export
WINEDEBUG=
""
POL_LoadVar_PROGRAMFILES
cd
"\\$WINEPREFIX/drive_c/\\$PROGRAMFILES/GOG.com/Arma Cold War Assault/"
||
exit
1
POL_Wine
ColdWarAssaultPreferences.exe
exit
_EOF_
exit