Compare commits
9 Commits
674a499c5e
...
5006817fed
Author | SHA1 | Date | |
---|---|---|---|
|
5006817fed | ||
|
c781374979 | ||
|
2ff5056c8a | ||
|
6c0afe5dc7 | ||
|
5fac6c25c2 | ||
|
a1097b9ecc | ||
|
394ad6e891 | ||
|
b122128b0b | ||
|
a6ee4a80ee |
@@ -4,7 +4,7 @@ _winehelper_completions() {
|
||||
COMPREPLY=()
|
||||
cur="${COMP_WORDS[COMP_CWORD]}"
|
||||
prev="${COMP_WORDS[COMP_CWORD-1]}"
|
||||
opts="--help --version --debug install installed -r -i remove-all --clear-pfx killall remove-prefix backup-prefix restore-prefix"
|
||||
opts="--help --version --debug install installed -r -i remove-all --clear-pfx killall remove-prefix backup-prefix restore-prefix --changelog changelog"
|
||||
wine_cmd="winecfg winereg winefile wineconsole winetricks desktop regedit explorer cmd run"
|
||||
|
||||
case "${prev}" in
|
||||
|
BIN
image/ais_lpu_client.png
Normal file
BIN
image/ais_lpu_client.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 15 KiB |
BIN
image/swnd.png
Normal file
BIN
image/swnd.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 21 KiB |
24
manualinstall/ais-lpu-client
Normal file
24
manualinstall/ais-lpu-client
Normal file
@@ -0,0 +1,24 @@
|
||||
#!/usr/bin/env bash
|
||||
# info_ru: автоматизация установки МИС Витакарта (AIS LPU Client)
|
||||
########################################################################
|
||||
export WH_WINE_USE="wine_x_tkg_10-0_i586"
|
||||
export WINEPREFIX="ais-lpu-client"
|
||||
export PROG_NAME="AIS LPU Client"
|
||||
export PROG_ICON="ais_lpu_client"
|
||||
export BASE_PFX="ais-lpu-client_pfx_x86_v01"
|
||||
export WH_WINDOWS_VER="7"
|
||||
export WINEARCH="win32"
|
||||
export INSTALL_DLL="dotnet40 dotnet20sp2 7zip vcrun2005 vcrun2008 mfc42"
|
||||
export WH_USE_EXTRA_FONTS="1"
|
||||
|
||||
if [[ -f "$2" ]] ; then
|
||||
prepair_wine
|
||||
|
||||
wine_run_install "$2" # /q
|
||||
|
||||
WIN_FILE_EXEC="$DRIVE_C/Program Files/Vitacore/AIS LPU Client/Update/AKUZ.UpdateUtility.exe"
|
||||
create_desktop "$PROG_NAME" "$WIN_FILE_EXEC" "$PROG_ICON"
|
||||
else
|
||||
fatal "Не найден файл установки для $PROG_NAME. Перезапустите по примеру:
|
||||
winehelper install $1 \"/путь/до/установочного_файла\""
|
||||
fi
|
@@ -87,3 +87,7 @@ dfb44ce5e5af7dba1686932c63d6b05e5dd6919a21c78130a7d1d0271b93958e audiorecstatio
|
||||
# winetricks dotnet48 gdiplus vcrun6sp6 vcrun2005 vcrun2019 d3dx11_42 d3dx11_43 d3dx9 d3dcompiler_42 d3dcompiler_43 d3dcompiler_46 d3dcompiler_47 richtx32 riched30 riched20 msxml6 dotnet20
|
||||
# + addons with ODBC, SSH, *.reg
|
||||
0f4ef434df07bc338ae308af44330590eaa1d9c94b64850514e55b960642d0eb scadoffice_addons_v02.tar.xz
|
||||
|
||||
ef7e8f1ba785d48e4ea287feed5b79bd630d423e59efadb43da9653adefef218 ais-lpu-client_pfx_x86_v01.tar.xz
|
||||
# create with wine_x_tkg_10-0_i586 (universal user: xuser)
|
||||
# winetricks vcrun2005 vcrun2008 dotnet20sp2 dotnet40 mfc42 7zip
|
||||
|
21
testinstall/swnd
Normal file
21
testinstall/swnd
Normal file
@@ -0,0 +1,21 @@
|
||||
#!/usr/bin/env bash
|
||||
# info_ru: Программный комплекс СуперОкна для фабрик по изготовлению окон и дверей.
|
||||
########################################################################
|
||||
export WH_WINE_USE="wine_x_tkg_10-0_amd64"
|
||||
export WINEPREFIX="swnd"
|
||||
export PROG_NAME="СуперОкна 8"
|
||||
export PROG_ICON="swnd"
|
||||
export WH_WINDOWS_VER="10"
|
||||
export WINEARCH="win32"
|
||||
# export INSTALL_DLL=""
|
||||
|
||||
AUTOINSTALL_EXE="${WH_TMP_DIR}/Swnd8_setup.exe"
|
||||
|
||||
prepair_wine
|
||||
if try_download "https://kctsoft.ru/download/superokna8/Swnd8_setup.exe" "${AUTOINSTALL_EXE}" ; then
|
||||
wine_run_install "${AUTOINSTALL_EXE}" /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-
|
||||
try_remove_file "$AUTOINSTALL_EXE"
|
||||
|
||||
WIN_FILE_EXEC="$DRIVE_C/Program Files/Kct/Swnd8/Swnd8.exe"
|
||||
create_desktop "$PROG_NAME" "$WIN_FILE_EXEC" "$PROG_ICON"
|
||||
fi
|
21
testinstall/swnd_x
Normal file
21
testinstall/swnd_x
Normal file
@@ -0,0 +1,21 @@
|
||||
#!/usr/bin/env bash
|
||||
# info_ru: Бесплатная версия программы СуперОкна для небольших предприятий.
|
||||
########################################################################
|
||||
export WH_WINE_USE="wine_x_tkg_10-0_amd64"
|
||||
export WINEPREFIX="swnd"
|
||||
export PROG_NAME="СуперОкна 8 бесплатная"
|
||||
export PROG_ICON="swnd"
|
||||
export WH_WINDOWS_VER="10"
|
||||
export WINEARCH="win32"
|
||||
# export INSTALL_DLL=""
|
||||
|
||||
AUTOINSTALL_EXE="${WH_TMP_DIR}/Swnd8x_setup.exe"
|
||||
|
||||
prepair_wine
|
||||
if try_download "https://kctsoft.ru/download/superokna8/Swnd8x_setup.exe" "${AUTOINSTALL_EXE}" ; then
|
||||
wine_run_install "${AUTOINSTALL_EXE}" /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-
|
||||
try_remove_file "$AUTOINSTALL_EXE"
|
||||
|
||||
WIN_FILE_EXEC="$DRIVE_C/Program Files/Kct/Swnd8x/Swnd8x.exe"
|
||||
create_desktop "$PROG_NAME" "$WIN_FILE_EXEC" "$PROG_ICON"
|
||||
fi
|
35
winehelper
35
winehelper
@@ -483,6 +483,41 @@ var_ld_library_path_update () {
|
||||
return 0
|
||||
}
|
||||
|
||||
extract_icon() {
|
||||
check_prefix_var
|
||||
local exe_file="$1"
|
||||
local ico_name="$(basename "$exe_file" .exe).ico"
|
||||
local png_name="$(basename "$exe_file" .exe).png"
|
||||
local tmp_ico_dir="$WH_TMP_DIR/icons"
|
||||
local user_icons="$WINEPREFIX/icons"
|
||||
|
||||
create_new_dir "$tmp_ico_dir"
|
||||
|
||||
if ! wrestool -x -t 14 "$exe_file" -o "$tmp_ico_dir/$ico_name" ; then
|
||||
print_warning "Не удалось извлечь иконку из $exe_file"
|
||||
try_remove_file "$tmp_ico_dir"
|
||||
return 1
|
||||
fi
|
||||
|
||||
if ! icotool -x -i 1 "$tmp_ico_dir/$ico_name" -o "$tmp_ico_dir/$png_name" ; then
|
||||
print_warning "Не удалось извлечь иконку из $ico_name"
|
||||
try_remove_file "$tmp_ico_dir"
|
||||
return 1
|
||||
fi
|
||||
|
||||
create_new_dir "$user_icons"
|
||||
|
||||
if ! try_copy_file "$tmp_ico_dir/$png_name" "$user_icons" ; then
|
||||
print_warning "Не удалось копировать иконку в префикс"
|
||||
try_remove_file "$user_icons"
|
||||
return 1
|
||||
fi
|
||||
|
||||
try_remove_dir "$tmp_ico_dir"
|
||||
print_ok "Иконка сохранена: $user_icons/$png_name"
|
||||
return 0
|
||||
}
|
||||
|
||||
create_desktop () {
|
||||
local name_desktop exe_file desktop_filename icon_file desktop_path
|
||||
name_desktop="$1"
|
||||
|
Reference in New Issue
Block a user