[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@xxxxxxx] On Tue, 2007-13-03 at 14:07 +0100, Alexander.Farber@xxxxxxxxx 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. _______________________________________________ wine-users mailing list wine-users@xxxxxxxxxx http://www.winehq.org/mailman/listinfo/wine-users