[Wine] Adding a dir to PATH without using regedit (for an NFSinstall)

Alexander.Farber at nokia.com Alexander.Farber at nokia.com
Wed Mar 14 12:11:43 CDT 2007


[Sorry for top-posting - it's MS Outlook]

Hello Bill,

thank you, it seems to be a good method.

I've found an easier solution though - just changed
this line in the file share/wine/wine.inf:

HKLM,System\CurrentControlSet\Control\Session Manager\Environment,
"PATH",2,"%11%;%10%;C:\apps\actperl\bin;Z:\epoc32\tools;Z:\epoc32\gcc\bi
n"

And it somehow gets copied to every new Wine user (which I wanted).

I wonder what does the "2" above mean...

Regards
Alex


-----Original Message-----
From: ext Bill Medland [mailto:billmedland at shaw.ca] 
On Tue, 2007-13-03 at 14:07 +0100, Alexander.Farber at nokia.com wrote:
> I've installed Wine 0.9.32 into an NFS-mounted dir on a RHEL 3 machine

> and it seems to work fine - I've even modified the 
> /nfs_path/wine/bin/wineprefixcreate,
> so that an additional dir (c:/Perl) is created under ~/.wine for each 
> user (by mere linking to /nfs_path/Perl)
> 
> My problem is that currently each user of my Wine-installation has to 
> run "wine regedit" and add the ActivePerl directory manually to the 
> HKEY_CURRENT_USER/Environment/Path variable.
> 
> Is there please a way for adding "c:\Perl\bin" to the %Path% without 
> regedit, so that I could do it in wineprefixcreate?
> 

What I do is use regedit /e to export the
HKLM/System/CurrentControlSet/Control/Session Manager/Environment, grep
to extract the current path, and see if the addition is already in it
and sed to put it in, then use regedit <filename> to put the modified
path in. (in other words regedit can be run in batch mode)

Seeing as how you are talking about perl you'd probably prefer a tiny
pelr script to do that bit.



More information about the wine-users mailing list