#!/usr/bin/env bash
# info_ru: Конструктор тестов предназначен для проведения тестирования персонала и учащихся.
########################################################################
export PROG_NAME="Конструктор тестов"
export AUTOINSTALL_EXE="${WH_TMP_DIR}/simulator4.exe"
export WH_WINE_USE="wine_x_tkg_10-0_amd64"
export WINEPREFIX="keepsoft_similator4"
export BASE_PFX="defpfx_x86_v01"
export WINEARCH="win32"
export WH_WINDOWS_VER="10"

prepair_wine
if try_download "https://www.keepsoft.ru/download/simulator/simulator4.exe" "${AUTOINSTALL_EXE}" ; then
    wine_run_install "${AUTOINSTALL_EXE}" /S
    try_remove_file "${AUTOINSTALL_EXE}"

    WIN_FILE_EXEC="$DRIVE_C/Program Files/Keepsoft/Simulator4/AdminResult.exe"
    create_desktop "Конструктор тестов Админ" "$WIN_FILE_EXEC" "simulator4_ar"

    WIN_FILE_EXEC1="$DRIVE_C/Program Files/Keepsoft/Simulator4/DTEdit.exe"
    create_desktop "Конструктор тестов Редактор" "$WIN_FILE_EXEC1" "simulator4_dtedit"

    WIN_FILE_EXEC2="$DRIVE_C/Program Files/Keepsoft/Simulator4/Simulator.exe"
    create_desktop "Конструктор тестов Тренажер" "$WIN_FILE_EXEC2" "simulator4_run"
fi
