LINUX.ORG.RU

История изменений

Исправление superuser, (текущая версия) :

Или вот для более новой версии 64-разрядной https://www.kguardsecurity.com/ftp/Software/Surveillance_client/Windows/
kguardsc2.sh:

#!/bin/bash
URL='https://www.kguardsecurity.com/ftp/Software/Surveillance_client/Windows/KGUARD_Surveillance_client(64)_2.0.0_2020_08_17.exe.zip'

dir="$HOME/KGUARD"
distfile="$dir/"$(basename "$URL")
setupexe=${distfile%.*}

export WINEPREFIX="$HOME/.wine64kguard2"

exe="$WINEPREFIX/drive_c/Program Files (x86)/Kguard/Surveillance_client/Surveillance_client.exe"

DOWNLOAD(){
echo "dir: $dir"
echo "distfile: $distfile"
echo "setupexe: $setupexe"
mkdir -p "$dir"
[ -f "$distfile" ] || { wget "$URL" -O "$distfile.tmp" && mv "$distfile.tmp" "$distfile"; } || exit 11
[ -f "$setupexe" ] || unzip "$distfile" -d "$dir" || exit 12
[ -f "$setupexe" ] || exit 13
}

REINSTALL(){ 
[ -d "$WINEPREFIX" ] && rm -Rf "$WINEPREFIX"
winetricks mfc42 || exit 21
wine "$setupexe"
}

echo "WINEPREFIX=$WINEPREFIX"
echo "exe=$exe"

if [ -f "$exe" ] 
then
	wine "$exe"
else
	DOWNLOAD && REINSTALL
fi

Исходная версия superuser, :

Или вот для более новой версии 64-разрядной
kguardsc2.sh:

#!/bin/bash
URL='https://www.kguardsecurity.com/ftp/Software/Surveillance_client/Windows/KGUARD_Surveillance_client(64)_2.0.0_2020_08_17.exe.zip'

dir="$HOME/KGUARD"
distfile="$dir/"$(basename "$URL")
setupexe=${distfile%.*}

export WINEPREFIX="$HOME/.wine64kguard2"

exe="$WINEPREFIX/drive_c/Program Files (x86)/Kguard/Surveillance_client/Surveillance_client.exe"

DOWNLOAD(){
echo "dir: $dir"
echo "distfile: $distfile"
echo "setupexe: $setupexe"
mkdir -p "$dir"
[ -f "$distfile" ] || { wget "$URL" -O "$distfile.tmp" && mv "$distfile.tmp" "$distfile"; } || exit 11
[ -f "$setupexe" ] || unzip "$distfile" -d "$dir" || exit 12
[ -f "$setupexe" ] || exit 13
}

REINSTALL(){ 
[ -d "$WINEPREFIX" ] && rm -Rf "$WINEPREFIX"
winetricks mfc42 || exit 21
wine "$setupexe"
}

echo "WINEPREFIX=$WINEPREFIX"
echo "exe=$exe"

if [ -f "$exe" ] 
then
	wine "$exe"
else
	DOWNLOAD && REINSTALL
fi