How to have DLLs recognized even in a clean prefix?

Questions about Wine on Linux
Locked
Bamm
Level 4
Level 4
Posts: 136
Joined: Thu May 22, 2008 3:18 am

How to have DLLs recognized even in a clean prefix?

Post by Bamm »

Hello,

Is there a directory where I can install files so that they are automatically detected by wine as if they are installed in a wineprefix? I have the following files from icodecs in system32:

i263_32.drv
iac25_32.ax
iacenc.dll
ir41_32.ax
ir41_qc.dll
ir41_qcx.dll
ir50_32.dll
ir50_lcs.dll
ir50_qc.dll
ir50_qcx.dll
ivfsrc.ax
Iyvu9_32.dll

My wish is that, even if I delete and create a new wine prefix, a program will still find these files as though they are installed in the wine system32 directory.

If there is such a directory, then it will be really useful for me; I can use it for other DLLs too such as msvbvm60.dll.

Any suggestions are appreciated.
spoon0042
Level 6
Level 6
Posts: 572
Joined: Thu Dec 24, 2009 11:00 am

Re: How to have DLLs recognized even in a clean prefix?

Post by spoon0042 »

I think the default wineprefix creation uses /usr/share/wine/wine/wine.inf. In theory you could edit that if you knew what you were doing. The first problem I can think of is I don't know where it sources any files from.
spoon0042
Level 6
Level 6
Posts: 572
Joined: Thu Dec 24, 2009 11:00 am

Re: How to have DLLs recognized even in a clean prefix?

Post by spoon0042 »

Well I had a look and that probably won't work. I think anything in wine.inf would need to be visible from the wineprefix already unless it was hardcoded in wine somehow like the fakedlls. (Unless the Z: -> / link is made before that, maybe?) So short of some serious hacking of setupapi it's probably less work to just run winetricks or whatever every time.
Bamm
Level 4
Level 4
Posts: 136
Joined: Thu May 22, 2008 3:18 am

Re: How to have DLLs recognized even in a clean prefix?

Post by Bamm »

Thanks. I was experimenting and cannot find a way so far. I played around with /usr/share/wine/wine.inf and was able to change some default settings, but I don't know how I can set a directory where it can read additional DLLs.

Since there appears to be no such directory, could it be possible to customize the default wine prefix?
User avatar
dimesio
Moderator
Moderator
Posts: 13367
Joined: Tue Mar 25, 2008 10:30 pm

Re: How to have DLLs recognized even in a clean prefix?

Post by dimesio »

All you have to do is specify a non-existant wineprefix on the command line when running winetricks, and it will be created, then the appropriate winetricks installed, e.g.,

Code: Select all

WINEPREFIX=/path/to/wineprefix sh winetricks icodecs
Just to be clear: that is NOT a clean wineprefix. A clean wineprefix by definition has nothing installed in it.
Locked