Results 1 to 5 of 5

Thread: Why EnvVarUpdate corrupts PATH

  1. #1
    Join Date
    Feb 2010

    Why EnvVarUpdate corrupts PATH

    In my installer script, I have issued the following commands.
    ${EnvVarUpdate} $1 "PATH" "A" "HKLM" ${PATH_EXTENSION_STRING}
    In one out of the twenty attempts this command gets corrupts the PATH. I mean that it does not appent the PATH_EXTENSION_STRING but replace it. The fatal result is that almost no software is able to run on this affected machine.

    Anyone have any clue why EnvVarUpdate corrupts PATH

  2. #2
    Join Date
    Jan 2008

    Re: Why EnvVarUpdate corrupts PATH

    Well I just want to one thing that it happens occasionally or in every twenty attempts. According me the only possible solution for this is to add debugger statements some thing like message box at each and every step of the ${EnvVarUpdate} macro/Function and then notice where it is failing. I hope this will help you to figure out the problem.

  3. #3
    Join Date
    May 2008

    Re: Why EnvVarUpdate corrupts PATH

    The reason which I found that may or may not be the same reason the corruption of path.

    One may be the PATH variable length. Usually the server, type (such as the 2003 server), limit is 2048 characters. Not a hot fix in XP or SP2, it is 1023.

    I am still thinking the right thing to do. Count the words or characters in the existing path, then determine what can be done? Also looking at the EnvVarUpdate code to make the fix.

  4. #4
    Join Date
    Apr 2008

    Re: Why EnvVarUpdate corrupts PATH

    This is my first time to hear XP path constraints. But then again, most places I need Windows to install the latest service pack always. If it is a problem, maybe you should check the service pack or set, and then try to limit its presence. Another technique may be used to identify the path and use the variables in the path of the folder in the short folder names.

  5. #5
    Join Date
    Apr 2008

    Re: Why EnvVarUpdate corrupts PATH

    Few weeks ago, I decided not to use EnvVarUpdate tool again and use setx place.
    This is working fine for some time, but yesterday the same thing has happened: PATH of the old content is replaced by my stuff. Again, it is only occasional. Therefore, we have the same phenomenon, caused by two different tools. Then I issued within a batch script , and had no problems

Similar Threads

  1. User profile corrupts every time on new login
    By Dharamsia in forum Windows XP Support
    Replies: 7
    Last Post: 28-05-2013, 10:39 AM
  2. Data partially corrupts using the Acronis 2012 Try&Decide
    By Mullan in forum Windows Software
    Replies: 6
    Last Post: 12-01-2012, 07:16 PM
  3. Nokia C6-00 new 16GB Memory Card corrupts data
    By Rawana in forum Portable Devices
    Replies: 4
    Last Post: 11-02-2011, 09:21 AM
  4. Viruses corrupts anti-virus software
    By first-born in forum Networking & Security
    Replies: 3
    Last Post: 25-12-2010, 06:56 AM
  5. Replies: 0
    Last Post: 23-03-2009, 11:32 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts