EmBitz

Full Version: Installer overwrites PATH on Windows [solved]
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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
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?
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.
I think we are hitting this bug

https://sourceforge.net/p/nsis/bugs/1247/
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
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.)
Thanks a lot!

I will put this on on github and in the next EmBitz release.
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.