Wine by default picks up from c:\windows\system32

Open forum for end-user questions about Wine. Before asking questions, check out the Wiki as a first step.
Forum Rules
Locked
VJ
Newbie
Newbie
Posts: 4
Joined: Thu May 07, 2009 4:50 am

Wine by default picks up from c:\windows\system32

Post by VJ »

HI,

When we run wine <program.exe>, it looks like wine by default tries to pick up files from drive_c\windows\system32.

What do we do if the executable files are installed in a different location?.
Wine cannot load it and fails.

Is there a PATH variable or something we can set for WINE, just like we set in a OS?

Cheers
austin987
Wine Developer
Wine Developer
Posts: 2383
Joined: Fri Feb 22, 2008 8:19 pm

Wine by default picks up from c:\windows\system32

Post by austin987 »

On Thu, May 7, 2009 at 5:00 AM, VJ <[email protected]> wrote:
HI,

When we run wine <program.exe>, it looks like wine by default tries to pick up files from drive_c\windows\system32.

What do we do if the executable files are installed in a different location?.
cd to its directory.
Wine cannot load it and fails.

Is there a PATH variable or something we can set for WINE, just like we set in a OS?
Sure, same place in the registry as in windows.


--
-Austin
vitamin
Moderator
Moderator
Posts: 6605
Joined: Sat Feb 23, 2008 2:29 pm

Re: Wine by default picks up from c:\windows\system32

Post by vitamin »

VJ wrote:When we run wine <program.exe>, it looks like wine by default tries to pick up files from drive_c\windows\system32.
That is actually the last place it looks in. The message that you get "can't find c:\windows\system32\program.exe" is misleading.

VJ wrote:What do we do if the executable files are installed in a different location?
Same as on windows:
- CD into that directory (current directory is the first to look for the program.exe)
- Specify full path to the executable
- Add directory with the executable it to the PATH
VJ wrote:Is there a PATH variable or something we can set for WINE, just like we set in a OS?
Yes, via registry http://wiki.winehq.org/UsefulRegistryKeys
Locked