Skip to content

Commit

Permalink
Create registry key that prevents wine file associations
Browse files Browse the repository at this point in the history
  • Loading branch information
the-sane committed Sep 20, 2024
1 parent 78a98f2 commit 7a0c854
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion lug-helper.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 7a0c854

Please sign in to comment.