Go Back   TechArena Community > Software > Windows Software
Become a Member!
Forgot your username/password?
Register Tags Active Topics RSS Search Mark Forums Read

Sponsored Links



Why EnvVarUpdate corrupts PATH

Windows Software


Reply
 
Thread Tools Search this Thread
  #1  
Old 18-04-2010
Member
 
Join Date: Feb 2010
Posts: 188
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

Reply With Quote
  #2  
Old 18-04-2010
Member
 
Join Date: Jan 2008
Posts: 3,382
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.
Reply With Quote
  #3  
Old 18-04-2010
Member
 
Join Date: May 2008
Posts: 4,080
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.
Reply With Quote
  #4  
Old 18-04-2010
Member
 
Join Date: Apr 2008
Posts: 3,260
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.
Reply With Quote
  #5  
Old 18-04-2010
Member
 
Join Date: Apr 2008
Posts: 3,516
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
Reply With Quote
Reply

  TechArena Community > Software > Windows Software
Tags: , , , ,



Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "Why EnvVarUpdate corrupts PATH"
Thread Thread Starter Forum Replies Last Post
User profile corrupts every time on new login Dharamsia Windows XP Support 7 28-05-2013 10:39 AM
Data partially corrupts using the Acronis 2012 Try&Decide Mullan Windows Software 6 12-01-2012 07:16 PM
Nokia C6-00 new 16GB Memory Card corrupts data Rawana Portable Devices 4 11-02-2011 09:21 AM
Viruses corrupts anti-virus software first-born Networking & Security 3 25-12-2010 06:56 AM
Change Default Windows Installation Path to Your Desired Path phones Tips & Tweaks 0 23-03-2009 11:32 PM


All times are GMT +5.5. The time now is 05:23 PM.