> 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