PDA

View Full Version : ENVIRONMENT variable problem



anup_rnambiar
06-13-2006, 08:03 AM
i have tried doing an installer which SETS an ENVIRONMENT VARIABLE during installation . however the service which is also installed as a part of installation process is not able to access the ENVIRONMENT VARIABLE.

i have written a sample service which is able to access (get) the ENVIRONMENT VARIABLE. Can you tell me why this is happening
Thanks
Anup

RobertDickau
06-13-2006, 08:50 AM
What type of project are you using? If MSI, please see the Remarks section of the help library topic "Environment Table"; part of it reads:
Note that environment variables do not change for the installation in progress when either the WriteEnvironmentStrings action or RemoveEnvironmentStrings action are run.It's possible for a custom action also to set the environment for the current process, but it doesn't happen automatically.