#!/usr/bin/env playonlinux-bash
: '
Date: See changelog.
Last revision: See changelog.
Wine version used: See changelog.
Distribution used to
test
: See changelog.
Author: GuerreroAzul
License: Retail
CHANGELOG
[GuerrreroAzul] (2024-02-20 15:50 GMT-6) Wine 8.6 / Linux Mint 21.3 x86_64
Creation of the script
REFERENCE
GuerreroAzul: Documentation POL. - https:
//www
.playonlinux.com
/en/topic-19123-Script_iVMS4200_Not_functional
.html
GuerreroAzul: LinkDownload - https:
//www
.hikvisioneurope.com
/eu/portal/
?
dir
=portal
/Technical
%20Materials
/11
%20%20Software%E3%80%90For%20Latest%20Tools%26Software%2C%20please%20download%20directly%20from%20Hikvision%20Website%E3%80%91
/00
%20%20Software%20Tool%20Package
/01
%20%20%20SADP%20Tools
/V3
.0.0.10
'
[
"$PLAYONLINUX"
=
""
] &&
exit
0
source
"$PLAYONLINUX/lib/sources"
TITLE=
"SADP Tool"
PREFIX=
"sadp"
CATEGORY=
"Accesories;"
WINEVERSION=
"8.6"
OSVERSION=
"win7"
EDITHOR=
"GuerreroAzul"
COMPANY=
"Hangzhou Hikvision Digital Technology Co. Ltd."
FILE_INSTALL=
"SADPTool.exe"
MD5_CHECKSUM=
"ec961f3c538934195bfe49af07ad514c"
POL_GetSetupImages
"$LOGO"
"$BANNER"
"$TITLE"
POL_SetupWindow_Init
POL_SetupWindow_presentation
"$TITLE"
"$COMPANY"
"$HOMEPAGE"
"$EDITHOR"
"$TITLE"
POL_RequiredVersion 4.3.4 || POL_Debug_Fatal
"$(eval_gettext 'TITLE wont work with $APPLICATION_TITLE $VERSION\n Please update!')"
if
[
"$POL_OS"
=
"Linux"
];
then
wbinfo -V || POL_Debug_Fatal
"$(eval_gettext 'Please install winbind before installing.')"
"$TITLE!"
fi
POL_Wine_SelectPrefix
"$PREFIX"
POL_Wine_PrefixCreate
"$WINEVERSION"
Set_OS
"$OSVERSION"
POL_Call
POL_Install_DXVK_2_3
POL_Call
POL_Install_d3dx11
POL_SetupWindow_InstallMethod
"LOCAL,DOWNLOAD"
if
[
"$INSTALL_METHOD"
=
"DOWNLOAD"
];
then
POL_System_TmpCreate
"$PREFIX"
cd
"$POL_System_TmpDir"
POL_Download
"$DOWNLOAD_URL"
"$MD5_CHECKSUM"
Setup=
"$POL_System_TmpDir/$FILE_INSTALL"
else
cd
"$HOME"
POL_SetupWindow_browse
"$(eval_gettext 'Please select the setup file to run.')"
"$TITLE"
Setup=
"$APP_ANSWER"
fi
POL_SetupWindows_wait
"$(eval_gettext 'Please wait while $TITLE is installed.')"
"$TITLE"
POL_Wine
"$Setup"
POL_Shortcut
"$FILE_INSTALL"
"$TITLE"
""
""
"$CATEGORY"
POL_System_TmpDelete
POL_SetupWindow_Close
exit
0