delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/1999/04/12/12:14:58

Message-Id: <m10WjKi-000S8hC@inti.gov.ar>
Comments: Authenticated sender is <salvador AT natacha DOT inti DOT gov DOT ar>
From: "Salvador Eduardo Tropea (SET)" <salvador AT inti DOT gov DOT ar>
Organization: INTI
To: "Laurynas Biveinis" <lauras AT softhome DOT net>,
"DJGPP Workers" <djgpp-workers AT delorie DOT com>
Date: Mon, 12 Apr 1999 13:17:35 +0000
MIME-Version: 1.0
Subject: Re: LBInstDJ
In-reply-to: <002101be84f8$a8869260$b1003bd4@default>
X-mailer: Pegasus Mail for Windows (v2.54)
Reply-To: djgpp-workers AT delorie DOT com
X-Mailing-List: djgpp-workers AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

"Laurynas Biveinis" <lauras AT softhome DOT net> wrote:

> I will do this too, but for other purpose - I will insert %PATH% in any
> path setting lines where it is missing.

Why?! it will change the path it could even break the system, why if the user 
have a path that overwrites other you want to break it?
 
And your solution doesn't work in multiconfiguration cases, while the thing 
I'm propposing looks like will work at least in most of these cases. See this 
example:

PATH C:\DOS
goto %config%
:User1
PATH=D:\DOS 
goto end
:User2
goto end
:User3
PATH=%PATH%;D:\EXTRA
goto end
:end

Now what I say is:

PATH C:\DOS
PATH=c:\djgpp\bin;%PATH%
goto %config%
:User1
PATH=D:\DOS 
PATH=c:\djgpp\bin;%PATH%
goto end
:User2
goto end
:User3
PATH=%PATH%;D:\EXTRA
goto end
:end

It isn't perfect. Why? think about it in the end:

PATH=c:\borland;%PATH%

That's why an installer *must* be complemented by djverify.

SET
------------------------------------ 0 --------------------------------
Visit my home page: http://welcome.to/SetSoft
or
http://www.geocities.com/SiliconValley/Vista/6552/
Salvador Eduardo Tropea (SET). (Electronics Engineer)
Alternative e-mail: set-soft AT usa DOT net set AT computer DOT org
ICQ: 2951574
Address: Curapaligue 2124, Caseros, 3 de Febrero
Buenos Aires, (1678), ARGENTINA
TE: +(5411) 4759 0013

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019