www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - Windows Installer Completely Whacks the PATH

reply "news.digitalmars.com" <bobcalco tampabay.rr.com> writes:
Not a big complaint, since I'm loving D for all the right reasons, but the 
one-click Windows installer replaces the PATH with one including only the 
location of DMD and DMC. Which hosed a lot of applications on my system till 
I thought to look there for the problem.

A once rather long PATH value was replaced by:

C:\D\dmd\windows\bin;C:\D\dmd2\windows\bin;C:\D\dm\bin

Frankly there is no point to setting the dmd2 path after the dmd path 
because they have the same binary names and it will always resolve to the 
first one. It's an either or, and ideally a user option that the installer 
provides.

You definitely should warn the user that the installer will modify the path.

This may end up being a blessing, as it will force me to go app by app on my 
system and figure out what I need to add to make it work again. But not 
exactly what I wanted to spend my day today doing... :)

- Bob 
Nov 13 2009
parent reply Ary Borenszweig <ary esperanto.org.ar> writes:
news.digitalmars.com wrote:
 Not a big complaint, since I'm loving D for all the right reasons, but the 
 one-click Windows installer replaces the PATH with one including only the 
 location of DMD and DMC. Which hosed a lot of applications on my system till 
 I thought to look there for the problem.
 
 A once rather long PATH value was replaced by:
 
 C:\D\dmd\windows\bin;C:\D\dmd2\windows\bin;C:\D\dm\bin

I don't have much time to investigate the problem, but the nsis installer uses the EnvVarUpdate extension. I found this: http://forums.winamp.com/showthread.php?postid=2483473 but there isn't a solution there. If someone finds a solution the installer should be changed to that.
Nov 13 2009
next sibling parent bearophile <bearophileHUGS lycos.com> writes:
Ary Borenszweig:
 but there isn't a solution there. If someone finds a solution the 
 installer should be changed to that.

If that's a real bug, then the installer on the site has to be removed until a solution is found. Because such bug is not ethic and it's an awful anti-advertising. Bye, bearophile
Nov 13 2009
prev sibling parent Bill Baxter <wbaxter gmail.com> writes:
On Fri, Nov 13, 2009 at 2:06 PM, bearophile <bearophileHUGS lycos.com> wrote:
 Ary Borenszweig:
 but there isn't a solution there. If someone finds a solution the
 installer should be changed to that.

If that's a real bug, then the installer on the site has to be removed until a solution is found. Because such bug is not ethic and it's an awful anti-advertising.

Exactly why there's no way I'll use an installer some dude hacked up in C# in about a week. Too many little issues like that which can bite ya. To the OP -- sorry this happened to you. Stick to the Zip files from now on. There's nothing fancy about installing DMD. Just unzip it somewhere and add it to your path. --bb
Nov 13 2009