Here you can add your environment variables with an adm-file: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Contro l\Session Manager\Environment
Here is an example which i copied from another site so I don't know if it's working or not:
CATEGORY "Computer Template"
CATEGORY "Environment"
KEYNAME "SYSTEM\CurrentControlSet\Control\Session Manager\Environment"
POLICY "Text box example"
EXPLAIN !!TEXT_BOX_EXPL
PART "File Path" EDITTEXT REQUIRED
VALUENAME "path"
END PART
END POLICY
POLICY "Drop down example"
EXPLAIN !!DROP_DOWN_EXPL
PART "Drop down alternatives" DROPDOWNLIST REQUIRED
VALUENAME "drop"
ITEMLIST
NAME "1: Red" VALUE "Red"
NAME "2: Green" VALUE "Green"
NAME "3: Blue" VALUE "Blue"
END ITEMLIST
END PART
END POLICY
END CATEGORY
END CATEGORY
[strings]
TEXT_BOX_EXPL="Defines value for path"
DROP_DOWN_EXPL="Defines value for drop"
And of course it needs modification before you can use it!!!


LinkBack URL
About LinkBacks
Reply With Quote