###Scripts version 1097###

This commit is contained in:
castro-fidel
2021-05-31 16:09:43 +03:00
parent ef0b8f7689
commit 1b632c2764
5 changed files with 23353 additions and 27 deletions

View File

@ -73,11 +73,11 @@ PW_BATTLE_NET () {
PW_START_PROGRESS_BAR "Installing the Battle Net. Please wait..."
PW_RUN "${PW_AUTOINSTALL_EXE}"
while [ ! -z `pgrep Battle.net* | head -n 1` ] && [ -z `pgrep Battle.net.exe | head -n 1` ] ; do sleep 2 ; done
KILL_PORTWINE
KILL_PORTWINE
portwine_exe=`find "$WINEPREFIX/drive_c/" -type f -name "Battle.net.exe"`
PW_STOP_PROGRESS
PORTWINE_CREATE_SHORTCUT
try_remove_file "${PW_AUTOINSTALL_EXE}"
try_remove_file "${PW_AUTOINSTALL_EXE}"
fi
STOP_PORTWINE
}
@ -91,8 +91,8 @@ PW_EPIC () {
PW_START_PROGRESS_BAR_BLOCK "Installing Epic Games Launcher. Please wait..."
PW_RUN msiexec /i "${PW_AUTOINSTALL_EXE}" &
sleep 10
if [ ! -z `pgrep msiexec* | head -n 1` ] ; then
while [ ! -z `pgrep msiexec* | head -n 1` ] || [ ! -z `pgrep rundll32* | head -n 1` ] ; do
if [ ! -z `pgrep msiexec* | head -n 1` ] ; then
while [ ! -z `pgrep msiexec* | head -n 1` ] || [ ! -z `pgrep rundll32* | head -n 1` ] ; do
[ ! -z `pgrep rundll32* | head -n 1` ] && kill -n 9 `pgrep rundll32* | head -n 1` && echo "Kill rundll32.exe"
sleep 5
done