Changes

Changing / adding environment variables

674 bytes added, 10:56, 4 April 2008
m
New page: Windows variables are stored in the registry. You can change them by adding or modifying values in <code>HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Environment</co...
Windows variables are stored in the registry. You can change them by adding or modifying values in <code>HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Environment</code>.

Below, an example for adding two variables for Cygwin - with it, applications using cygwin1.dll will be able to use UTF-8 character in file and path names:

<source lang="reg>
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Environment]
"CYGWIN"="codepage:utf8"
"LC_CTYPE"="C-UTF-8"
</source>


Import with:

regedit /s "%SOFTWARE%\cygwin.reg

[[Category: Silent Installers]]
[[Category: Changing Windows settings]]