Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

winetricks does not support environment variable WINEPREFIX for installing dll overrides in user-defined wine prefixes #2319

Open
rhabacker opened this issue Jan 13, 2025 · 1 comment · May be fixed by #2320

Comments

@rhabacker
Copy link
Contributor

rhabacker commented Jan 13, 2025

With actual winetricks, when installing a dll in a custom wine prefix by using WINEPREFIX=<custom-wine-prefix> /usr/bin/winetricks ole32, I got a message box

regedit: The file C:\Windows\Temp\override-dll.regnot found

and in the command line i see

Using native,builtin override for following DLLs: ole32
++ WINEPREFIX=/home/<user>/.wine64
++ /usr/bin/wine64 'C:\windows\regedit.exe' 'C:\windows\Temp\override-dll.reg'

which means that the specified wine prefix has been ignored.

/usr/bin/winetricks --version
Executing cd /usr/bin
20250102 - sha256sum: 657e0c4260424723476aea7668414a10ed859baf4660f96626694df9b2398460
@rhabacker rhabacker changed the title winetricks does not support the environment variable WINEPREFIX for user-defined wine prefixes winetricks does not support environment variable WINEPREFIX for installing dll overrides in user-defined wine prefixes Jan 13, 2025
@rhabacker
Copy link
Contributor Author

A subsequent analysis showed that this is not a problem of winetricks, but that a wrapper with the name wine64 was included in a local search path that specified the wine prefix.

Due to the error output

++ WINEPREFIX=/home/<user>/.wine64
++ /usr/bin/wine64 'C:\windows\regedit.exe' 'C:\windows\Temp\override-dll.reg'

was unfortunately not visible that an executable file with the name wine was actually called from a different path, which could perhaps be improved.

rhabacker added a commit to rhabacker/winetricks that referenced this issue Jan 13, 2025
In the error or verbosity case this helps to see the actual wine
executable used.

Closes: Winetricks#2319
rhabacker added a commit to rhabacker/winetricks that referenced this issue Jan 15, 2025
In the error or verbosity case this helps to see the actual wine
executable used.

Closes: Winetricks#2319
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant