Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Installer overwrites PATH on Windows [solved]
#1
I have installed EmBitz 2.0 with EBlink on two Windows PCs, and in both cases the EBlink-Path overwrites the system's environment variable PATH instead of appending to it (what I think would be the expected behaviour).

The last time I used the installer downloaded an hour ago.

If I can provide more information to help, just let me know. But as of now I'm unsure about what could be relevant.

eprintemps
Reply
#2
I had one report before that this happened as a github issue.

https://github.com/EmBitz/EBlink/issues/39

Some questions:

- OS type?
- Could I get a copy of your path?
- Is it a virtual machine? and if so, could I get a copy?
- Could you try the latest as a clean install, so without an uninstall of previous versions?
Reply
#3
It seems to be caused by a too long PATH, as you mentioned in the github issue.

I've uninstalled EmBitz 2.0 as well as EBlink, and after reinstalling, the EBlink path was appended to the PATH with my new PATH

%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\;%SYSTEMROOT%\System32\OpenSSH\;C:\Program Files\MiKTeX 2.9\miktex\bin\x64;C:\Strawberry\perl\bin;C:\Program Files\Git\cmd;C:\Program Files\mingw-w64\x86_64-7.3.0-posix-seh-rt_v5-rev0\mingw64\bin;

But after I changed my PATH to

%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\;%SYSTEMROOT%\System32\OpenSSH\;C:\Program Files\MiKTeX 2.9\miktex\bin\x64;C:\Strawberry\perl\bin;C:\Program Files\Git\cmd;C:\Program Files\mingw-w64\x86_64-7.3.0-posix-seh-rt_v5-rev0\mingw64\bin;C:\Program Files\mingw-w64\x86_64-7.3.0-posix-seh-rt_v5-rev0\mingw64\bin;C:\Program Files\mingw-w64\x86_64-7.3.0-posix-seh-rt_v5-rev0\mingw64\bin;C:\Program Files\mingw-w64\x86_64-7.3.0-posix-seh-rt_v5-rev0\mingw64\bin;C:\Program Files\mingw-w64\x86_64-7.3.0-posix-seh-rt_v5-rev0\mingw64\bin;C:\Program Files\mingw-w64\x86_64-7.3.0-posix-seh-rt_v5-rev0\mingw64\bin;C:\Program Files\mingw-w64\x86_64-7.3.0-posix-seh-rt_v5-rev0\mingw64\bin;C:\Program Files\mingw-w64\x86_64-7.3.0-posix-seh-rt_v5-rev0\mingw64\bin;C:\Program Files\mingw-w64\x86_64-7.3.0-posix-seh-rt_v5-rev0\mingw64\bin;C:\Program Files\mingw-w64\x86_64-7.3.0-posix-seh-rt_v5-rev0\mingw64\bin;C:\Program Files\mingw-w64\x86_64-7.3.0-posix-seh-rt_v5-rev0\mingw64\bin;C:\Program Files\mingw-w64\x86_64-7.3.0-posix-seh-rt_v5-rev0\mingw64\bin;C:\Program Files\mingw-w64\x86_64-7.3.0-posix-seh-rt_v5-rev0\mingw64\bin;C:\Program Files\mingw-w64\x86_64-7.3.0-posix-seh-rt_v5-rev0\mingw64\bin;C:\Program Files\mingw-w64\x86_64-7.3.0-posix-seh-rt_v5-rev0\mingw64\bin;

it got replaced by the EBlink path. (I haven't reconstructed my original PATH completely for sure. The first time it caught me by surprise, and on the second PC I was stupid and stored the user PATH instead of the system PATH before installing.)

I use Windows 10, Version 10.0.19043 Build 19043.

It's the same behavior after deinstalling EmBitz 1.11 also.
Reply
#4
I think we are hitting this bug

https://sourceforge.net/p/nsis/bugs/1247/
Reply
#5
Could you test the attached version for me?
Maybe the uninstaller of the current version is still giving problems so it is interesting to  see how this works as a fresh install.

Background:
I cloned the EnVar nsis plugin code and rebuild it and installed it in the NSIS environment.
This is the EnVar version which should work according the comment of that bug mentioned above.

P.s. This works in my XP vmware


Attached Files
.zip   EBlinkInstaller4.5(4).exe.zip (Size: 1.26 MB / Downloads: 108)
Reply
#6
This worked with the long PATH variable.

I deinstalled EmBitz 2.0 and EBlink before. (But not EmBitz 1.11. On the PC I am currently working, I still need it.)
Reply
#7
Thanks a lot!

I will put this on on github and in the next EmBitz release.
Reply
#8
P.s.
You can install, uninstall (so also update) EBlink separately from the EmBitz installation.
The EmBitz installer carries the EBlink installer as a kangaroe and launch it.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)