From cbcecbe0c8c0c0a0c106b8bd3e6763e6ece92116 Mon Sep 17 00:00:00 2001 From: Mikhail Tergoev Date: Sun, 9 Nov 2025 15:55:45 +0300 Subject: [PATCH] fixed autoinstall EGS and EOS --- data_from_portwine/scripts/pw_autoinstall/PW_EPIC | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/data_from_portwine/scripts/pw_autoinstall/PW_EPIC b/data_from_portwine/scripts/pw_autoinstall/PW_EPIC index a7d83edf..e53545d7 100755 --- a/data_from_portwine/scripts/pw_autoinstall/PW_EPIC +++ b/data_from_portwine/scripts/pw_autoinstall/PW_EPIC @@ -13,23 +13,26 @@ export PORTWINE_CREATE_SHORTCUT_NAME="Epic Games Launcher" export PW_WINE_USE="PROTON_LG" export PW_USE_ESYNC="1" export PW_USE_FSYNC="1" +export PW_PREFIX_NAME="DEFAULT" -# sed -i '/Epic Games/d' "${PORT_WINE_PATH}/data/prefixes/${PW_PREFIX_NAME}"/*.reg >/dev/null -try_remove_file "${PORT_WINE_PATH}/data/prefixes/${PW_PREFIX_NAME}/.wine_ver" - +pw_clear_pfx start_portwine + if try_download "https://launcher-public-service-prod06.ol.epicgames.com/launcher/api/installer/download/EpicGamesLauncherInstaller.msi" "${PW_AUTOINSTALL_EXE}" no_mirror then pw_start_progress_bar_install_game "Epic Games Launcher." - # try_remove_dir "${WINEPREFIX}/drive_c/Program Files (x86)/Epic Games/Epic Online Services/" - # try_remove_dir "${WINEPREFIX}/drive_c/Program Files (x86)/Epic Games/Launcher/" + try_remove_file "${WINEPREFIX}/drive_c/ProgramData/Epic/EpicGamesLauncher/EpicOnlineServicesInstaller.exe" + try_remove_dir "${WINEPREFIX}/drive_c/ProgramData/Epic/EpicOnlineServices" + try_remove_dir "${WINEPREFIX}/drive_c/Program Files (x86)/Epic Games/Epic Online Services/" + try_remove_dir "${WINEPREFIX}/drive_c/Program Files (x86)/Epic Games/Launcher/" # try_remove_dir "${WINEPREFIX}/drive_c/ProgramData/Epic" pw_run msiexec /i "${PW_AUTOINSTALL_EXE}" - portwine_exe="${WINEPREFIX}/drive_c/Program Files (x86)/Epic Games/Launcher/Portal/Binaries/Win32/EpicGamesLauncher.exe" + portwine_exe="${WINEPREFIX}/drive_c/Program Files/Epic Games/Launcher/Portal/Binaries/Win64/EpicGamesLauncher.exe" try_remove_file "${PW_AUTOINSTALL_EXE}" try_remove_file "${portwine_exe}.ppdb" kill_portwine pw_stop_progress_bar portwine_create_shortcut fi + stop_portwine