#!/usr/bin/env bash
# info_ru: Локальный корпоративный чат/мессенджер с поддержкой видеоконференций.
########################################################################
export WH_WINE_USE="wine_x_tkg_10-0_amd64"
export WINEPREFIX="commfort"
export PROG_NAME="CommFort"
export PROG_ICON="commfort-client"
export WH_WINDOWS_VER="10"
export WINEARCH="win32"

AUTOINSTALL_MSI="${WH_TMP_DIR}/commfort_client.msi"

prepair_wine
if try_download "https://www.commfort.com/download/commfort_client.msi" "${AUTOINSTALL_MSI}" ; then
    wine_run_install "${AUTOINSTALL_MSI}" /q
    try_remove_file "$AUTOINSTALL_MSI"

    WIN_FILE_EXEC="$DRIVE_C/Program Files/CommFort/CommFort.exe"
    create_desktop "$PROG_NAME" "$WIN_FILE_EXEC" "$PROG_ICON"
fi
