Martin Pilka wrote:
> > A possible approach suggested by Jeremy White is to specify a user
> > setup script in the global configuration. Then when Wine notices that
> > the user doesn't have a .wine directory it will launch this script,
> > which can copy the registry files from some templates and run a sed
> > script on them to fix the necessary things.
>
> i like this idea. ok, let's summarize it:
>
> let's say there will be the file named new_user_reg.dat in /etc/wine
> directory. when wine detects there are no ~/.wine/*.reg file, it will
> run the script mentioned in /etc/wine/wine.conf file (let's say
> process_new_user.sh). that script will process new_user_reg.dat file and
> creates ~/.wine/*.reg files.
>
> new_user_reg.dat file could have format like this:
> --------------
> [Win95]
> [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell
> Folders]
> "StartUp"="C:\WINDOWS\Start Menu\Programs\StartUp"
> ...
>
> [WinNT]
> [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell
> Folders]
> "StartUp"="C:\WINNT\Profiles\%USERNAME%\Start Menu\Programs\StartUp"
> ^^^^^^^^^^
> ...
> --------------
>
> one of the arguments to process_new_user.sh script could be
> "Win95/WinNT". but there still remain questions like:
>
> 1) how will Wine now if the Win95 or WinNT registry entries should be
> created? as far as i know, there's no option in configuration file which
> says "we're emulating WinNT". i think we will need something like that,
> not only in this case.
>
> 2) what about language mutations of windows? those registry entries are
> language dependant. so maybe there should be also another option in
> wine.conf file which says "we're emulating french mutation of windows".
>
> martin
You might want to think about using C:\Documents and Settings\%USERNAME%
instead of C:\WINNT\Profiles\%USERNAME%. If only just because that is the way
windows 2000 does it.
Also, which directory are you putting the C: drive in? I would suggest
something like /var/wine/wineroot would be the path for C:.
One more thing to think about is that this fake windows installation does not
necessarily have to be on C:. Why not choose something like W:? That way
I could use C: for my existing C: drive and have Wine set up on W:. Much like
C: is Windows 98 in both Windows 98 and Windows 2000. And in Windows 2000
I have an additional NTFS E: drive where 2000 is located. Why not have Wine
do the same thing? Put it on W: and allow users to use C: for their real
C: drive.
On my system I have been using W: mapped to /var/wine/wineroot with some
native Win2k files. The W: setup has worked quite well and I can simply
change the windows and system entries to C:\windows instead of W:\WINNT and
run as if I was running my 98 setup.
I personally like the idea because it means my drive letters stay consistent
no matter what.
-Dave