Menu

#59 Installer still wipes PATH environment variable

New
nobody
None
Medium
Defect
2013-01-30
2013-01-23
Anonymous
No

Originally created by: instinctvfx@gmail.com
Originally owned by: hen...@gmail.com

What steps will reproduce the problem?
1. Install with admin priviledges
2. Path variable is empty

What is the expected output? What do you see instead?
Extending/Keeping the Path Variable

What version of the product are you using? On what operating system?
Latest installer with Max 2011

Please provide any additional information below.

Discussion

  • Anonymous

    Anonymous - 2013-01-28

    Originally posted by: hen...@gmail.com

    Can you verify the path problem? Is it removing, clearing, corrupting the System environment variable PATH? I'm not sure what the problem is and will have to look into it more.

    What operating system?

     
  • Anonymous

    Anonymous - 2013-01-29

    Originally posted by: instinctvfx@gmail.com

    Sorry, should have been more specific in the first post. This has been reported before (i mentioned it here for example https://code.google.com/p/blur-dev/issues/detail?id=1&q=path). I am not sure what causes this exactly. The Variable still exists, the value is empty. I cannot check right now. I will try to do so later to day to get you the exact installer causing this (I can tell be saving the contents of the variable and running the individual installers). This could be an issue with a different locale being set? Either that or some escape issue or alike.

    This is Windows 7 x64, German and targeting Max2011

     

    Related

    Tickets: #1

  • Anonymous

    Anonymous - 2013-01-29

    Originally posted by: instinctvfx@gmail.com

    Quickly checked back at this. So the culprit is this installer: qt_64.exe
    It also hangs a bit when modifying the path. Attached is a screenshot. I don't know why it breaks, but should give a hint.

     
  • Anonymous

    Anonymous - 2013-01-29

    Originally posted by: hen...@gmail.com

    I am unable to reproduce the problem on my VMWare systems. I did however find some suspect code when we were updating the system path.

    I've uploaded a updated version of the qt 64bit installer. Can you install it and let me know if it still has the problem. I also added a message box if it detects a problem with modifying the path. Let me know if you get the message box.

    Google wouldn't allow me to attach it, so i added a deprecated download. Test build of QT 64bit

    http://code.google.com/p/blur-dev/downloads/detail?name=qt_install_4.8.3-0_win32-msvc2008_64.exe&can=4

    Owner: hen...@gmail.com

     
  • Anonymous

    Anonymous - 2013-01-29

    Originally posted by: instinctvfx@gmail.com

    Hey again,

    so i tried the new installer. I got the popup saying i should add the paths manually. The error message said that the current path length was too long to be modified by NSIS  (0). 0 does not seem that long tho ;)

     
  • Anonymous

    Anonymous - 2013-01-30

    Originally posted by: hen...@gmail.com

    The reason for that message is because your path is or was longer than 1024 characters, or is empty. Its a bug in the library we are using in NSIS to update the path variable.

    I just tested the qt installer with a path larger than 1024 and it cleared my path variable, so I can reproduce the error now. WooHoo!

    The changes I made in the installer I had you use will prevent it from emptying the path variable. For the time being I will make the installer display that message telling the user they need to set the path variable themselves. But I will look into compiling NSIS with large string support (8192 characters max length instead of 1024). And failing that I can probably use a python script to edit the path variable.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.