#!/bin/bash
[
"$PLAYONLINUX"
=
""
] &&
exit
0
source
"$PLAYONLINUX/lib/sources"
TITLE=
"Garmin Express"
PREFIX=
"GarminExpress"
WINEVERSION=
"5.8"
OSVERSION=
"vista"
POL_SetupWindow_Init
POL_SetupWindow_SetID 3064
POL_Debug_Init
POL_RequiredVersion 4.3.4 || POL_Debug_Fatal
"$TITLE might not work with $APPLICATION_TITLE $VERSION!\nPlease update!"
winetricks -V || POL_Debug_Fatal
"Please install winetricks before installing $TITLE!"
POL_System_SetArch
"x86"
POL_SetupWindow_browse
"$(eval_gettext 'Please select the setup file to run.')"
"$TITLE"
SetupIs=
"$APP_ANSWER"
POL_Wine_SelectPrefix
"$PREFIX"
POL_Wine_PrefixCreate
"$WINEVERSION"
POL_SetupWindow_wait
"This installation is going to take a LONG time (maybe 30 minutes or more)! I have to install .NET 4.7.2, and Microsoft decided I first have to install 4.0, then 4.5, then 4.6, then 4.6.1, then 4.6.2, and then finally 4.7.2...."
"$TITLE"
Set_OS
"$OSVERSION"
winetricks -q dotnet472
POL_Call
POL_Install_vcrun2010
winetricks d3dcompiler_47
Set_OS
"$OSVERSION"
POL_SetupWindow_message
"$(eval_gettext 'Move this window over to the upper right part of your screen, so that it remains visible when the application shows up.')"
"$TITLE"
POL_SetupWindow_message
"$(eval_gettext 'Now I will install Garmin Express. After installing, you will see a window that says: This application could not be started. You must etc. Do you want to view information about this issue? ANSWER NO!')"
"$TITLE"
POL_Wine
"$SetupIs"
POL_Shortcut
"express.exe"
"$TITLE"
POL_SetupWindow_message
"$(eval_gettext 'Now Garmin Express is installed. If you start Garmin Express, only part of your screen is updated. Give the app 30 seconds to start up, then MOVE your mouse in the upper middle of the screen and parts of the screen WILL be visible. If you press a button full screen WILL appear.')"
"$TITLE"
POL_SetupWindow_message
"$(eval_gettext 'After installation, if you are updating software and/or maps, make sure to be PATIENT. Progress bar will not move for a long time (sometimes 20 minutes or more) but behind the screens it IS updating your device. Good luck!')"
"$TITLE"
POL_SetupWindow_Close
exit
0