#!/usr/bin/env playonlinux-bash
[ -z
"$PLAYONLINUX"
] &&
exit
0
source
"$PLAYONLINUX/lib/sources"
TITLE=
"Combat Mission 2 Barbarossa"
PREFIX=
"cm2b"
WORKING_WINE_VERSION=
"4.8"
AUTHOR=
"Dadu042"
EDITOR=
"CDV"
POL_SetupWindow_Init
POL_Debug_Init
POL_SetupWindow_presentation
"$TITLE"
"$EDITOR"
"$GAME_URL"
"$AUTHOR"
"$PREFIX"
POL_Wine_SelectPrefix
"$PREFIX"
POL_System_SetArch
"x86"
POL_Wine_PrefixCreate
"$WORKING_WINE_VERSION"
POL_System_TmpCreate
"$TITLE"
Set_OS
"winxp"
POL_SetupWindow_VMS
"16"
POL_SetupWindow_menu_list
"$(eval_gettext "
Choose the game resolution
")"
"$TITLE"
"800x600-1152x864-1024x768-1280x720-1280x800-1280x900-1280x1024-1360x768-1440x900-1400x1050-1600x900-1600x1024-1680x1050-1920x1080"
"-"
"800x600"
resolution=
"$APP_ANSWER"
WIDTH=
"$(echo $resolution | cut -d"
x
" -f1)"
HEIGHT=
"$(echo $resolution | cut -d"
x
" -f2)"
Set_Desktop
"On"
"$WIDTH"
"$HEIGHT"
Set_WineWindowTitle
"$TITLE"
POL_SetupWindow_InstallMethod
"LOCAL,CD"
POL_SetupWindow_message
"Please note: Do not run the game at the end of the installation, finish first.\n"
"$TITLE"
if
[
"$INSTALL_METHOD"
==
"LOCAL"
];
then
cd
"$HOME"
POL_SetupWindow_browse
"$(eval_gettext 'Please select the setup file to run')"
"$TITLE"
SETUP_EXE=
"$APP_ANSWER"
POL_Wine
start
/unix
"$SETUP_EXE"
POL_Wine_WaitExit
"$TITLE"
cd
"$POL_System_TmpDir"
else
POL_SetupWindow_cdrom
POL_SetupWindow_check_cdrom
"setup.exe"
POL_Wine
start
/unix
"$CDROM/setup.exe"
POL_Wine_WaitExit
"setup.exe"
cd
"$POL_System_TmpDir"
fi
POL_Shortcut
"Barbarossa to Berlin.exe"
"$TITLE"
""
POL_Shortcut_Document
"$TITLE"
"CMBB Manual.pdf"
POL_System_TmpDelete
POL_SetupWindow_Close
exit
0