winehelper/autoinstall/alta-maximum
2025-03-12 15:39:31 +03:00

32 lines
1.6 KiB
Bash
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#!/usr/bin/env bash
# info_ru: Пакет программ для таможенного оформления. Включает программы Альта-ГТД, Такса и ТамДок в комплектациях Максимум, а также программу Заполнитель.
########################################################################
export WH_AUTOINSTALL="1"
export WH_WINE_USE="wine_x_tkg_10-0_amd64"
export WINEPREFIX="alta"
export PROG_NAME="Альта-Максимум"
export BASE_PFX="alta_pfx_x86_v01"
export WH_WINDOWS_VER="10"
export WINEARCH="win32"
export INSTALL_DLL="corefonts eufonts lucida opensymbol tahoma cjkfonts vb6run mdac28 msxml3 msxml4 msxml6 mfc42 jet40 native_oleaut32"
ALTA_VERSION="120325"
AUTOINSTALL_EXE="${WH_TMP_DIR}/maximum${ALTA_VERSION}.zip"
AUTOINSTALL_UNPACK="${WH_TMP_DIR}/maximum${ALTA_VERSION}"
AUTOINSTALL_SETUP="${WH_TMP_DIR}/maximum${ALTA_VERSION}/setup.exe"
prepair_wine
if try_download "https://www2.alta.ru/pub/packets/distr/maximum${ALTA_VERSION}.zip" "${AUTOINSTALL_EXE}" ; then
7z x -y "${AUTOINSTALL_EXE}" -o"${AUTOINSTALL_UNPACK}"
try_remove_file "$AUTOINSTALL_EXE"
wine_run_install "${AUTOINSTALL_SETUP}" /S /OVERWRITE
try_remove_dir "$AUTOINSTALL_UNPACK"
ALTA_PATH="$DRIVE_C/ALTA"
create_desktop "Альта-ГТД" "$ALTA_PATH/gtdw.exe" "altagtd"
create_desktop "Таможенные документы" "$ALTA_PATH/ordview.exe" "altatamdoc"
create_desktop "Такса" "$ALTA_PATH/taxwin.exe" "altatax"
create_desktop "Заполнитель" "$ALTA_PATH/zapoln.exe" "altazap"
fi