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:
--0016362851527ebf6f048d2863a1
Content-Type: text/plain; charset=ISO-8859-1

 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

--0016362851527ebf6f048d2863a1 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable =A0I&#39;m not seeing that behavior here (XP SP3), and I&#39;ve just tested= it. PATH gets appended with directories of DMD|DMD2|DM /bin. Btw., Rapid E= nvironment Editor is a nice freeware app for manipulating environment varia= bles. You can make backups with it as well.<br> <br>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).<br><br><div c= lass=3D"gmail_quote">On Fri, Aug 6, 2010 at 5:17 AM, Wei Cheng <span dir=3D= "ltr">&lt;<a href=3D"mailto:rivercheng gmail.com">rivercheng gmail.com</a>&= gt;</span> wrote:<br> <blockquote class=3D"gmail_quote" style=3D"margin: 0pt 0pt 0pt 0.8ex; borde= r-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">Dear all:<br> I&#39;ve found that D 2.0 windows installer (one key installer) will clear = the<br> original PATH and set it as the D path. Is it a bug in the installer? Shoul= d<br> it keep the original value and put the D paths in front of them? Thanks<br> </blockquote></div><br> --0016362851527ebf6f048d2863a1--
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 next sibling parent 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
warn people to backup their PATH&#12288;before running it? I was fortunate
because I
happened to have a backup so I could recover easily. But some one may have worse
luck. :)
Aug 14 2010
prev sibling parent Andrej Mitrovic <andrej.mitrovich gmail.com> writes:
--e0cb4e88781bc8900c048dc9e561
Content-Type: text/plain; charset=ISO-8859-1

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
 warn people to backup their PATH&#12288;before running it? I was fortunate
 because I
 happened to have a backup so I could recover easily. But some one may have
 worse
 luck. :)

--e0cb4e88781bc8900c048dc9e561 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Well, maybe it would be overkill, but adding an option like &quot;Add to PA= TH, but make a backup first&quot; which creates a .reg backup of the enviro= nment 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:<br> <br><a href=3D"http://www.experts-exchange.com/OS/Microsoft_Operating_Syste= ms/Windows/XP/Q_23153052.html">http://www.experts-exchange.com/OS/Microsoft= _Operating_Systems/Windows/XP/Q_23153052.html</a><br><br><div class=3D"gmai= l_quote"> On Sat, Aug 14, 2010 at 1:58 PM, Wei Cheng <span dir=3D"ltr">&lt;<a href=3D= "mailto:rivercheng gmail.com">rivercheng gmail.com</a>&gt;</span> wrote:<br=
<blockquote class=3D"gmail_quote" style=3D"margin: 0pt 0pt 0pt 0.8ex; bord=

Thanks. Then, it seems that it is a bug in NSIS.<br> <br> Now I know that this problem does not happen so often, but still is it poss= ible to<br> warn people to backup their PATH&amp;#12288;before running it? I was fortun= ate because I<br> happened to have a backup so I could recover easily. But some one may have = worse<br> luck. :)<br> </blockquote></div><br> --e0cb4e88781bc8900c048dc9e561--
Aug 14 2010