Fake System32 Folder

I read somewhere that you can create a fake system32 folder in linux where you can store the most common windows runtime libraries, that way you can install windows programs (using wine) directly in linux, what I meen is that even the installer works.
Does anyone know how I can do this, and where I should create the folder?

Hmm....

The first time you run wine it will run a configuration program for you to set up wine according to your needs (and version of Windows).

You'll find that normally you'll have a .wine directory under your home directory (i.e. ~/.wine) and then depending on your configuration a fake_windows directory beneath that.

You can, if need be, place native Windows DLLs into one of these locations:

  1. The directory the program was started from.

  2. The current directory.

  3. The Windows system directory.

  4. The Windows directory.

  5. The PATH variable directories.

They are search in taht order. I'd say ~/.wine/fake_windows/Windows/System/ (or however you configure Wine) is the best place.

You'll then need to configure the ~/.wine/config file (man wine-conf) for any DLLs you want to override with ones you've taken from original Windows media.

You can either change the global dll overrides section so that changes affect all Wine apps....

[DllOverrides]
; some dlls you may want to change
"shell"        = "native, builtin"
"shell32"      = "native, builtin"

or just on an application dependent section....

;; sample AppDefaults entries
[AppDefaults\\my_app.exe\\DllOverrides]
"commctrl.dll" = "native"
"comctl32.dll" = "native"
"riched32.dll" = "native"
"shell.dll" = "native"
"shell32.dll" = "native"
"comdlg32.dll" = "native"

There is a ton of documentation at http://www.winehq.org and also via our old friend Mr. Google, so you'll need to do some reasearch.

Cheers
ZB

well, I changed back again *yawn*, the windows layout is just so darn adictive. And it was almost impossible to find any software. Although I downloaded Knoppix that I am running from a 52x CD player and I like it very much! It actuallt blows Lindows off its socks :stuck_out_tongue: , it has just about every program you might want the only thing missing is an msn messenger client and a p2p client. I am thinking of downloading these in windows though and install them directly to the hard drive in Knoppix (wich should work...?)