[Mono-list] mono setup for windows

Brad Wilson dotnetguy@pobox.com
Sat, 30 Mar 2002 08:05:45 -0700


Guenther Roith wrote:

> - I have fixed some bugs now. Does anybody know how my setup could set the
> path, forever?
> It is set now everytime by mint.bat again.
> We could put it in autoexec.bat automaticaly, but this doesn't exist on
> every computer (nt/win2k?)

Actually, autoexec.bat does get some special treatment on NT/2K/XP, but only
for command prompts (i.e., it doesn't affect anything run from the shell).
If you want to change the PATH:

Current user:
    HKEY_CURRENT_USER\
      Environment

All users:
    HKEY_LOCAL_MACHINE\
      System\
        CurrentControlSet\
          Control\
            Session Manager\
              Environment

You'll need to ask the user to logoff/login for this to take effect, unless
you can reverse engineer how the Environment control panel applet tells the
shell to reload its environment variables (and remember to test this against
both OSes with integrated IE shells, like 2K/XP, and those without, like
NT4).

And, of course on 9x, you should use AUTOEXEC.BAT and force a reboot.

Brad

--
Read my web log at http://www.quality.nu/dotnetguy/