52North / IlwisCore

Integrated Land and Water Information System (ILWIS) is a remote sensing and GIS software. ILWIS Core is the functional center of ilwis4..
http://52north.org/communities/ilwis/
35 stars 13 forks source link

Installing v1.0-alpha1 version overrides Windows PATH #44

Closed ridoo closed 10 years ago

ridoo commented 10 years ago

After installing v1.0-alpha1 of ILWISObjects my Windows system PATH variable was overridden and just contained C:\Program Files (x86)\52n\ILWISObjects only!

pokulo commented 10 years ago

ReadRegStr seems to return an empty string, when PATH Environment variable contains more than 1024 Characters! This has to be detected (maybe via error flag).

This problem also affects #v1.0-alpha2

If you want to restore you old PATH settings you can find the current (possibly empty setting) in CurrentControlSet

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Environment\PATH

and some old versions in ControlSet00X (should be two or more)

HKEY_LOCAL_MACHINE\SYSTEM\ControlSet002\Control\Session Manager\Environment\PATH
pokulo commented 10 years ago

fixed in 056a356

pokulo commented 10 years ago

solution partly solved by raising the string max string length of NSIS via special build mentioned in the wiki page