Richard Willis wrote:
FYI,
I've just installed mspgcc on 3 different win 2000 machines and am fairly
certain that this had "corrupted" my system path. The nature of this corruption
is to cause %SystemRoot% not to be expanded any more, ie:
PATH=%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem
Should read:
PATH=C:\WINNT\system32;C:\WINNT;C:\WINNT\System32\Wbem
i have seen that effect too, but not with the the mspgcc installer.
i'm preparing a new installer and i had installed the old one on this
machine and my path setting is still ok... i run win XP here
So, I think the windows installation of mspgcc changed the Path variable in:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Environment
from REG_EXPAND_SZ to REG_SZ. If so, this change prevents %SystemRoot% from
being expanded to C:\WINNT and thus stuffs up the path...
this is the line of code that sets the key in the NSIS install script:
WriteRegStr HKLM "SYSTEM\CurrentControlSet\Control\Session
Manager\Environment" "Path" "$R0;$INSTDIR\bin"
i can change that to WriteRegExpandStr if you think that this makes a
difference.
Perhaps the next release of the windows installer can fix this problem - if
there is one?
yes there is one. your message comes right on time :-)
chris