Archive: ReadEnvStr doesn't work all the time


ReadEnvStr doesn't work all the time
For some reason in my scripts, ReadEnvStr doesn't work when the variable changes over the course of testing many installations, i.e. I see it in the registry and via System->Advanced->Environment but in my script during run-time I get null back.

How does ReadEnvStr work exactly? Shouldn't it just read either out of HLCU Environment of HKLM CurrentSession...blah...blah...Environment and return?

Anybody see this before?


It's probably because you're running the installer from MakeNSISw. Unlike Explorer, MakeNSISw doesn't update its environment strings when it gets the message saying it should be updated. You should execute the installer from Explorer.


Yeah I just realized that. I'm actually doing it from the EclipseNSIS plugin environment (really nice setup). But same issue...

Thanks!