www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - D 2.0 windows installer overwrites PATH variable

reply Wei Cheng <rivercheng gmail.com> writes:
Dear all:
I've found that D 2.0 windows installer (one key installer) will clear the
original PATH and set it as the D path. Is it a bug in the installer? Should
it keep the original value and put the D paths in front of them? Thanks
Aug 05 2010
next sibling parent Andrej Mitrovic <andrej.mitrovich gmail.com> writes:
 I'm not seeing that behavior here (XP SP3), and I've just tested it. PATH
gets appended with directories of DMD|DMD2|DM /bin. Btw., Rapid Environment
Editor is a nice freeware app for manipulating environment variables. You
can make backups with it as well.

I will say the download in the setup is quite slow (only reaches about
100Kb/sec at times, but usually stuck around 50Kb/sec or so).

On Fri, Aug 6, 2010 at 5:17 AM, Wei Cheng <rivercheng gmail.com> wrote:

 Dear all:
 I've found that D 2.0 windows installer (one key installer) will clear the
 original PATH and set it as the D path. Is it a bug in the installer?
 Should
 it keep the original value and put the D paths in front of them? Thanks
Aug 06 2010
prev sibling parent reply notna <notna.remove.this ist-einmalig.de> writes:
could maybe still be http://d.puremagic.com/issues/show_bug.cgi?id=3319

Am 06.08.2010 05:17, schrieb Wei Cheng:
 Dear all:
 I've found that D 2.0 windows installer (one key installer) will clear the
 original PATH and set it as the D path. Is it a bug in the installer? Should
 it keep the original value and put the D paths in front of them? Thanks
Aug 06 2010
next sibling parent Ary Borenszweig <ary esperanto.org.ar> writes:
On 08/07/2010 05:11 AM, notna wrote:
 could maybe still be http://d.puremagic.com/issues/show_bug.cgi?id=3319

 Am 06.08.2010 05:17, schrieb Wei Cheng:
 Dear all:
 I've found that D 2.0 windows installer (one key installer) will clear
 the
 original PATH and set it as the D path. Is it a bug in the installer?
 Should
 it keep the original value and put the D paths in front of them? Thanks
I just added a comment there. Someone should look into that and fix it...
Aug 11 2010
prev sibling parent reply Wei Cheng <rivercheng gmail.com> writes:
Thanks. Then, it seems that it is a bug in NSIS.

Now I know that this problem does not happen so often, but still is it possible
to

because I
happened to have a backup so I could recover easily. But some one may have worse
luck. :)
Aug 14 2010
parent Andrej Mitrovic <andrej.mitrovich gmail.com> writes:
Well, maybe it would be overkill, but adding an option like "Add to PATH,
but make a backup first" which creates a .reg backup of the environment
variables on the desktop could be a nice option. There seems to be a way to
backup deleted environment variables as well, check the 3rd post on this
site:

http://www.experts-exchange.com/OS/Microsoft_Operating_Systems/Windows/XP/Q_23153052.html

On Sat, Aug 14, 2010 at 1:58 PM, Wei Cheng <rivercheng gmail.com> wrote:

 Thanks. Then, it seems that it is a bug in NSIS.

 Now I know that this problem does not happen so often, but still is it
 possible to

 because I
 happened to have a backup so I could recover easily. But some one may have
 worse
 luck. :)
Aug 14 2010