dmd installer clobbers PATH on Windows (sometimes)

Brad Anderson eco at gnuk.net
Tue Aug 2 00:00:29 PDT 2011


On Mon, Aug 1, 2011 at 6:35 PM, Vladimir Panteleev <
vladimir at thecybershadow.net> wrote:

> On Mon, 01 Aug 2011 20:58:08 +0300, Brad Anderson <eco at gnuk.net> wrote:
>
>  there is no way (that I know of) to look at what your PATH was before it
>> was destroyed and the PATH is often updated by installers (as it is with
>> dmd).
>>
>
> If you haven't rebooted your machine yet - Windows stores a backup copy of
> the system registry hives for the "last known good configuration" boot
> feature. These copies are stored in C:\Windows\Repair (XP and before) or
> C:\Windows\System32\config\**RegBack (Vista and after). You will not be
> able to access these files directly, though - you'll need to use a tool or
> risk a poweroff and boot from another OS. Once you have a readable copy, you
> can "mount" the hives to an empty key in your registry with RegEdit. PATH is
> located at HKEY_LOCAL_MACHINE\SYSTEM\**CurrentControlSet\Control\**Session
> Manager\Environment (though you won't see CurrentControlSet in the mounted
> hive, it's a symbolic link of sorts to one of the ControlSetXXX keys).
>

-- 
> Best regards,
>  Vladimir                            mailto:vladimir@**thecybershadow.net<vladimir at thecybershadow.net>
>

I'll try this.  Thanks for the tip.

Regards
Brad Anderson
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puremagic.com/pipermail/digitalmars-d/attachments/20110802/27a9b2fd/attachment.html>


More information about the Digitalmars-d mailing list