#!/usr/bin/env bash # info_ru: Электронный алфавитно-предметный указатель, предназначенный для быстрого и простого подбора для товара кода ТН ВЭД ЕАЭС. ######################################################################## export PROG_NAME="ВЭД-Алфавит" export PROG_ICON="wedalf" export PP_WINE_USE="wine_x_tkg_10-0_amd64" export WINEPREFIX="wed" export BASE_PFX="wed_pfx_x86_v02" export WINEARCH="win32" export PP_WINDOWS_VER="7" export INSTALL_DLL="vb6run art2k7min mdac27 mdac28 arial jet40 dotnet48 msxml3 msxml6 vcrun2022 wsh57 vcrun6 corefonts ie8" prepair_wine AUTOINSTALL_EXE="${PP_TMP_DIR}/setup_al.exe" AUTOINSTALL_UNPACK="${PP_TMP_DIR}/setup_al" AUTOINSTALL_SETUP="${PP_TMP_DIR}/setup_al/setup.exe" if try_download "https://ftp.ctm.ru/ALPHABET/SFX/setup_al.exe" "${AUTOINSTALL_EXE}" ; then 7z x -y "${AUTOINSTALL_EXE}" -o"${AUTOINSTALL_UNPACK}" try_remove_file "$AUTOINSTALL_EXE" wine_run_install "${AUTOINSTALL_SETUP}" try_remove_dir "$AUTOINSTALL_UNPACK" WIN_FILE_EXEC="$DRIVE_C/Program Files/CTM/ALPHABET/alf.exe" create_desktop "$PROG_NAME" "$WIN_FILE_EXEC" "$PROG_ICON" if [[ "$USE_CTMBAR" == "1" ]] ; then if [[ -f "$DRIVE_C/Program Files/CTM/COMMON/CTMBAR.EXE" ]] then WIN_FILE_EXEC1="$DRIVE_C/Program Files/CTM/COMMON/CTMBAR.EXE" elif [[ -f "$DRIVE_C/Program Files/CTM/COMMON/ctmbar.exe" ]] then WIN_FILE_EXEC1="$DRIVE_C/Program Files/CTM/COMMON/ctmbar.exe" else WIN_FILE_EXEC1="$DRIVE_C/Program Files/CTM/Common/ctmbar.exe" fi create_desktop "CTM-Офис" "$WIN_FILE_EXEC1" "wedctmbar" fi fi