how to overwrite DLLs?

Open forum for end-user questions about Wine. Before asking questions, check out the Wiki as a first step.
Forum Rules
Locked
Michael Renner

how to overwrite DLLs?

Post by Michael Renner »

Moin,

I can define the load order for specific applications using winecfg. But what
is the propper way to copy these DLLs from a 'real' windows box? Just
owerwrite the wine-ddl in windows/system32/ ? But isn't this the 'build in'
DLL, that should be used for applications with load order 'Build in'?

Sorry I am confused.
--
|Michael Renner E-mail: [email protected] |
|D-81541 Munich Germany ICQ: #112280325 |
|Germany Don't drink as root! ESC:wq
John Drescher

how to overwrite DLLs?

Post by John Drescher »

I can define the load order for specific applications using winecfg. But what
is the propper way to copy these DLLs from a 'real' windows box?
This is a flawed idea. You can copy some dlls from windows but not
all. A lot of microsoft dlls need to be installed properly because
they need registry entries or manifests.

It's best to install dlls properly and winetricks will help with that.
It's also best to only install the needed dlls especially if you want
help here.

John
Michael Renner

how to overwrite DLLs?

Post by Michael Renner »

On Wednesday 25 August 2010, John Drescher wrote:
I can define the load order for specific applications using winecfg. But
what is the propper way to copy these DLLs from a 'real' windows box?
This is a flawed idea. You can copy some dlls from windows but not
all. A lot of microsoft dlls need to be installed properly because
they need registry entries or manifests.
Yes, I konw.
It's best to install dlls properly and winetricks will help with that.
Sorry, it's still not clear to me. For example: For MixW I have to use
Microsofts cfgmgr32.dll and setupapi.dll. What I did:

moved the 2 files /home/renner/.wine/drive_c/windows/system32/ out of the way
and copied these file from a XP machine. After that, I called winecfg and
defined the load order 'native, build in' for these 2 files.

Well, this was wrong, because (I guess) I moved the 'build in' files away, and
every application have to use this now.
It's also best to only install the needed dlls especially if you want
help here.
What is the right way? Winetricks is 'only' unefull to install aplications
like zip or the vb runtime support, or not?

Thanks
--
|Michael Renner E-mail: [email protected] |
|D-81541 Munich Germany ICQ: #112280325 |
|Germany Don't drink as root! ESC:wq
John Drescher

how to overwrite DLLs?

Post by John Drescher »

It's best to install dlls properly and winetricks will help with that.
Sorry, it's still not clear to me. For example: For MixW I have to use
Microsofts cfgmgr32.dll and setupapi.dll. What I did:

moved the 2 files /home/renner/.wine/drive_c/windows/system32/ out of the way
and copied these file from a XP machine. After that, I called winecfg and
defined the load order 'native, build in' for these 2 files.
That would be fine (well ignoring licencing issues) if these .dlls did
not require any install. There are ones where that procedure will
work.
Well, this was wrong, because (I guess) I moved the 'build in' files away, and
every application have to use this now.
You can avoid this by using separate prefixes for the programs that
need these microsoft dlls.

http://wiki.winehq.org/FAQ#head-f2f5f3b ... 15657ad552
It's also best to only install the needed dlls especially if you want
help here.
What is the right way? Winetricks is 'only' unefull to install aplications
like zip or the vb runtime support, or not?
There is quite a few of the Microsoft redistributable packages in
winetricks more than just vb.

John
James Mckenzie

how to overwrite DLLs?

Post by James Mckenzie »

Michael Renner <[email protected]> wrote:
Moin,
Moin zuruck!
I can define the load order for specific applications using winecfg. But what
is the propper way to copy these DLLs from a 'real' windows box?
Copy them from the Windows box to the program directory for the program you are trying to run. However, as John and others have pointed out, it is best to use winetricks to do this for you. It has several Microsoft redistributables (vb, VC++, vs, and vj)
j ust overwrite the wine-ddl in windows/system32/ ? But isn't this the 'build in'
DLL, that should be used for applications with load order 'Build in'?
Yes, the 'fake' dll wrapper in windows/system32 IS the built-in dll. Also, please note there is a growing list of dlls that should NOT be replaced with native as this will break Wine.

The process is:

Create a new wineprefix for the program you are trying to run by:

Code: Select all


env WINEPREFIX=$HOME/<name of new wineprefix>
cd <directory for installation of program>
wine <installer program>
This will create a NEW wineprefix and install the program.

Follow the instructions in the FAQ on how to use winetricks.

Load in the redistributables/dlls you need. Remember place Windows dlls in the SAME directory as the executables needed to run your program

winecfg
change the order of the dlls you just loaded.

IMPORTANT: Create or update a bug report for each dll you needed to load and each function within the dll that is missing/incorrect to allow your program to run. Without this information, the requirement to load Windows dlls will not be eliminated.

Run your program(s). Note any difficulties and problems encountered/overcome in the Applications Database.

Please link bug reports to the associated Applications Database entry affected by the bug.

Thank you.

James McKenzie


Sorry I am confused.
--
|Michael Renner E-mail: [email protected] |
|D-81541 Munich Germany ICQ: #112280325 |
|Germany Don't drink as root! ESC:wq
Locked