Seeking alternate method to update Environment Variables after Reg

  • Thread starter NHNRA_EDA_Tools
  • Start date
N

NHNRA_EDA_Tools

Is there a way, a command line method, to force edits to
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session
Manager\Environment to be recognized?

I have a created a .reg file, after installing and configuring an
application on
a NAS filer, that essentially setups up two environment variables to enable
a client PC to make use of the application installed on the NAS filer.

My intention is to enable end users to configure their PCs to make use of
that application, with minimal intervention and to do so by allowing them to
setup their environment variables via the .reg file, after a minor copy of
shortcuts to the start menu programs area. The ultimate goal is a one
button/script solution, but if I must first identify the steps that'll be
required.

The reg file only includes additive entries within the
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session
Manager\Environment. Unfortunately after running the reg file, those edits
are not immediately recognized and seem to require the
end user to either logout or open system properties > advanced tab >
Environment Variables Button> <OK> for the environment to be setup and those
variables recognized.

In general is there a way (debug/verbose mode, gui monitor, transcript
generation, anything?) to capture the actual commands being run by the
selection of <OK> within the system properties.advanced tab.environment
variables button ? (or other such commands issued from pop-up windows/guis
within windows?
 
P

Pegasus \(MVP\)

NHNRA_EDA_Tools said:
Is there a way, a command line method, to force edits to
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session
Manager\Environment to be recognized?

I have a created a .reg file, after installing and configuring an
application on
a NAS filer, that essentially setups up two environment variables to
enable
a client PC to make use of the application installed on the NAS filer.

My intention is to enable end users to configure their PCs to make use of
that application, with minimal intervention and to do so by allowing them
to
setup their environment variables via the .reg file, after a minor copy of
shortcuts to the start menu programs area. The ultimate goal is a one
button/script solution, but if I must first identify the steps that'll be
required.

The reg file only includes additive entries within the
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session
Manager\Environment. Unfortunately after running the reg file, those edits
are not immediately recognized and seem to require the
end user to either logout or open system properties > advanced tab >
Environment Variables Button> <OK> for the environment to be setup and
those
variables recognized.

In general is there a way (debug/verbose mode, gui monitor, transcript
generation, anything?) to capture the actual commands being run by the
selection of <OK> within the system properties.advanced tab.environment
variables button ? (or other such commands issued from pop-up windows/guis
within windows?

There are more elegant methods available that do not
require registry hacks. Here are two of them:
setx.exe (Win2000 Resource Kit)
setenv.exe (ftp://barnyard.syr.edu/pub/vefatica/setenv.exe)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top