From 7a0c85431ae1dbba5df6b423ee8179451b2a1449 Mon Sep 17 00:00:00 2001 From: the-sane <3657071+the-sane@users.noreply.github.com> Date: Fri, 20 Sep 2024 11:35:44 -0400 Subject: [PATCH] Create registry key that prevents wine file associations --- lug-helper.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/lug-helper.sh b/lug-helper.sh index ed1ceb3..ce12b66 100755 --- a/lug-helper.sh +++ b/lug-helper.sh @@ -2564,14 +2564,19 @@ install_game_wine() { # Create a temporary log file tmp_install_log="$(mktemp --suffix=".log" -t "lughelper-install-XXX")" - # Run the installer + # Create the new prefix export WINEPREFIX="$install_dir" debug_print continue "Preparing the wine prefix..." winecfg -v win11 >"$tmp_install_log" 2>&1 && + # Add registry key that prevents wine from creating unnecessary file type associations + wine reg add "HKEY_CURRENT_USER\Software\Wine\FileOpenAssociations" /v Enable /d N >"$tmp_install_log" 2>&1 + + # Install powershell debug_print continue "Installing dxvk and powershell, please wait..." winetricks dxvk powershell >>"$tmp_install_log" 2>&1 + # Run the installer debug_print continue "Installing the launcher, please wait..." wine "$tmp_dir/$rsi_installer" /S >>"$tmp_install_log" 2>&1