#!/bin/bash
[
"$PLAYONLINUX"
=
""
] &&
exit
0
source
"$PLAYONLINUX/lib/sources"
PREFIX=
"ms_teams_2019"
WINEVERSION=
"4.4"
TITLE=
"Microsoft Teams (32 bits for Windows 7+)"
POL_SetupWindow_Init
POL_RequiredVersion 4.0 || POL_Debug_Fatal
"$TITLE won't work with $APPLICATION_TITLE $VERSION\nPlease update"
POL_Debug_Init
POL_System_SetArch
"x86"
POL_Call
POL_Install_mono210
POL_SetupWindow_browse
"$(eval_gettext 'Please select the setup file to run')"
"$TITLE"
SetupIs=
"$APP_ANSWER"
POL_Wine_SelectPrefix
"$PREFIX"
POL_Wine_PrefixCreate
"$WINEVERSION"
Set_OS
"win7"
if
[
"$POL_OS"
=
"Mac"
];
then
POL_Call
POL_GetTool_samba3
source
"$POL_USER_ROOT/tools/samba3/init"
fi
POL_Wine_WaitBefore
"$TITLE"
[
"$CDROM"
] &&
cd
"$CDROM"
if
[ !
"$(file $SetupIs | grep 'x86-64')"
=
""
];
then
POL_Debug_Fatal
"$(eval_gettext "
The 64bits version is not compatible! Sorry
")"
;
fi
POL_Wine
"$SetupIs"
POL_Wine_WaitExit
"$TITLE"
POL_Wine_OverrideDLL
"native,builtin"
"riched20"
POL_Shortcut
"Teams.exe"
"Microsoft Teams"
""
""
"Network;InstantMessaging;"
if
[
"$POL_OS"
=
"Mac"
];
then
POL_Shortcut_InsertBeforeWine
"Microsoft Teams"
"source \"$POL_USER_ROOT/tools/samba3/init\""
fi
POL_SetupWindow_message
"$(eval_gettext '$TITLE has been installed successfully\n\nIf an installation Windows prevent your programs from running, you must remove and reinstall $TITLE')"
"$TITLE"
POL_SetupWindow_Close
exit