Skip to content
This repository has been archived by the owner on Apr 7, 2021. It is now read-only.

wipes out ENV variables #1

Closed
egbutter opened this issue Nov 6, 2011 · 12 comments
Closed

wipes out ENV variables #1

egbutter opened this issue Nov 6, 2011 · 12 comments

Comments

@egbutter
Copy link

egbutter commented Nov 6, 2011

Hi Jonathan:

Thanks for putting together this great executable. FYI, the installer wiped out my ENV variables (latest "stable" mingw installer on Windows 7). I am not comfortable enough with this code to figure out why myself right now ... just thought I should let you know.

Cheers, and thanks again!

@protz
Copy link
Owner

protz commented Nov 6, 2011

all ENV variables or just the ocaml ones?

@egbutter
Copy link
Author

egbutter commented Nov 6, 2011

The Ocaml and TCL variables replaced all my _other ENV variables; so the
final state of the system-wide ENV variables was
(C:\Tcl\bin;C:\OCaml\bin;).

On Sun, Nov 6, 2011 at 5:45 PM, Jonathan Protzenko <
reply@reply.github.com>wrote:

all ENV variables or just the ocaml ones?


Reply to this email directly or view it on GitHub:
#1 (comment)

@protz
Copy link
Owner

protz commented Nov 7, 2011

On 11/6/2011 11:52 PM, egbutter wrote:

The Ocaml and TCL variables replaced all my _other ENV variables; so the
final state of the system-wide ENV variables was
(C:\Tcl\bin;C:\OCaml\bin;).
I do not understand what you are talking about. Are you talking about
the PATH environment variable? An environment variable has a name and a
value. Please tell me what is the name of the environment variable that
was damaged, what is its value now, what used to be its value.

Thanks,

jonathan

On Sun, Nov 6, 2011 at 5:45 PM, Jonathan Protzenko<
reply@reply.github.com>wrote:

all ENV variables or just the ocaml ones?


Reply to this email directly or view it on GitHub:
#1 (comment)


Reply to this email directly or view it on GitHub:
#1 (comment)

@egbutter
Copy link
Author

egbutter commented Nov 7, 2011

Correct, the PATH env variable.
Before:
C:\prover9\bin;C:\pscp;C:\puTTY;C:\Python27;C:\Python27\Scripts;C:\R\R-2.14.0\bin;C:\Vim\vim73;C:\boost\boost_1_47_0;
... and many more.
After: C:\Tcl\bin;C:\OCaml\bin;
Sorry I was not too clear. Cheers,

Eric

On Mon, Nov 7, 2011 at 3:55 AM, Jonathan Protzenko <
reply@reply.github.com>wrote:

On 11/6/2011 11:52 PM, egbutter wrote:

The Ocaml and TCL variables replaced all my _other ENV variables; so the
final state of the system-wide ENV variables was
(C:\Tcl\bin;C:\OCaml\bin;).
I do not understand what you are talking about. Are you talking about
the PATH environment variable? An environment variable has a name and a
value. Please tell me what is the name of the environment variable that
was damaged, what is its value now, what used to be its value.

Thanks,

jonathan

On Sun, Nov 6, 2011 at 5:45 PM, Jonathan Protzenko<
reply@reply.github.com>wrote:

all ENV variables or just the ocaml ones?


Reply to this email directly or view it on GitHub:
#1 (comment)


Reply to this email directly or view it on GitHub:
#1 (comment)


Reply to this email directly or view it on GitHub:
#1 (comment)

@protz
Copy link
Owner

protz commented Nov 7, 2011

Looks like you just hit the 1024 character string length limitation in
the installer I'm using...

On Mon 07 Nov 2011 01:45:10 PM CET, egbutter wrote:

Correct, the PATH env variable.
Before:
C:\prover9\bin;C:\pscp;C:\puTTY;C:\Python27;C:\Python27\Scripts;C:\R\R-2.14.0\bin;C:\Vim\vim73;C:\boost\boost_1_47_0;
... and many more.
After: C:\Tcl\bin;C:\OCaml\bin;
Sorry I was not too clear. Cheers,

Eric

On Mon, Nov 7, 2011 at 3:55 AM, Jonathan Protzenko<
reply@reply.github.com>wrote:

On 11/6/2011 11:52 PM, egbutter wrote:

The Ocaml and TCL variables replaced all my _other ENV variables; so the
final state of the system-wide ENV variables was
(C:\Tcl\bin;C:\OCaml\bin;).
I do not understand what you are talking about. Are you talking about
the PATH environment variable? An environment variable has a name and a
value. Please tell me what is the name of the environment variable that
was damaged, what is its value now, what used to be its value.

Thanks,

jonathan

On Sun, Nov 6, 2011 at 5:45 PM, Jonathan Protzenko<
reply@reply.github.com>wrote:

all ENV variables or just the ocaml ones?


Reply to this email directly or view it on GitHub:
#1 (comment)


Reply to this email directly or view it on GitHub:
#1 (comment)


Reply to this email directly or view it on GitHub:
#1 (comment)


Reply to this email directly or view it on GitHub:
#1 (comment)

@protz
Copy link
Owner

protz commented Nov 7, 2011

Note to self: use the large string build from
http://nsis.sourceforge.net/Special_Builds next time

On Mon 07 Nov 2011 01:48:00 PM CET, Jonathan Protzenko wrote:

Looks like you just hit the 1024 character string length limitation in
the installer I'm using...

On Mon 07 Nov 2011 01:45:10 PM CET, egbutter wrote:

Correct, the PATH env variable.
Before:
C:\prover9\bin;C:\pscp;C:\puTTY;C:\Python27;C:\Python27\Scripts;C:\R\R-2.14.0\bin;C:\Vim\vim73;C:\boost\boost_1_47_0;

... and many more.
After: C:\Tcl\bin;C:\OCaml\bin;
Sorry I was not too clear. Cheers,

Eric

On Mon, Nov 7, 2011 at 3:55 AM, Jonathan Protzenko<
reply@reply.github.com>wrote:

On 11/6/2011 11:52 PM, egbutter wrote:

The Ocaml and TCL variables replaced all my _other ENV variables;
so the
final state of the system-wide ENV variables was
(C:\Tcl\bin;C:\OCaml\bin;).
I do not understand what you are talking about. Are you talking about
the PATH environment variable? An environment variable has a name and a
value. Please tell me what is the name of the environment variable that
was damaged, what is its value now, what used to be its value.

Thanks,

jonathan

On Sun, Nov 6, 2011 at 5:45 PM, Jonathan Protzenko<
reply@reply.github.com>wrote:

all ENV variables or just the ocaml ones?


Reply to this email directly or view it on GitHub:
#1 (comment)


Reply to this email directly or view it on GitHub:
#1 (comment)


Reply to this email directly or view it on GitHub:
#1 (comment)


Reply to this email directly or view it on GitHub:
#1 (comment)

@miau
Copy link

miau commented Jan 24, 2012

It would be helpful if you could create a new installer.
With this problem, I hesitate to recommend OCaml to Windows users.

@egbutter
Copy link
Author

I hesitate to recommend Windows =) we make have with what we are given!

@protz
Copy link
Owner

protz commented Mar 28, 2012

I'm happy to announce that the new installer at http://yquem.inria.fr/~protzenk/caml-installer/ocaml-4.01.0+dev0-i686-mingw64.exe is able to cope with larger PATHs and won't blast the PATH in case it really is super-long.

@protz protz closed this as completed Mar 28, 2012
@djcsdy
Copy link

djcsdy commented Jul 16, 2012

Please can you put a warning in front of the link to the old version of the installer, which still has this problem.

I just ran it and I now have several hours work ahead of me fixing every other command-line tool on my system. I know it’s “unsupported” but I wasn’t expecting it to do serious damage.

@protz
Copy link
Owner

protz commented Jul 16, 2012

Alright, I guess it's fair I put up a bigger warning. The page has been
updated.

On Mon 16 Jul 2012 06:13:43 PM CEST, Daniel Cassidy wrote:

Please can you put a warning in front of the link to the old version of the installer, which still has this problem.

I just ran it and I now have several hours work ahead of me fixing every other command-line tool on my system. I know it’s “unsupported” but I wasn’t expecting it to do serious damage.


Reply to this email directly or view it on GitHub:
#1 (comment)

@djcsdy
Copy link

djcsdy commented Jul 16, 2012

Thanks! I hate to think of someone else suffering the same fate! :)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants