Rhondo Posted January 19, 2006 Posted January 19, 2006 (edited) Well, here goes...I attempted to extract the envrionment variables from my existing registry to be used in my reg file for the unattended install. The problem I ran into is that for some reason, when my program installations started, they started crashing since the temp directory that they would use was altered by the edited registry. The reason I am changing this is so that the temp files are all in the same folder and to lessen the amount of movement and wear on the hard drive. It actually speeds up the "windows envrionment" a little, enough to be noticeable at least. If anyone is interested in helping I can post the code later, since I don't have it handy at the moment. I think that perhaps it may be due to permissions or accounts not having been populated yet. I am not sure. Has anyone been successful in this?Thanks in advance...Rhondo Edited January 19, 2006 by Rhondo
jbm Posted January 19, 2006 Posted January 19, 2006 (edited) I use this line in a batch file to set up my environment variablesREG ADD "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Environment" /v "Path" /t REG_EXPAND_SZ /d "%%SystemRoot%%\system32;%%SystemRoot%%;%%SystemRoot%%\System32\Wbem;%%ProgramFiles%%\Common Files\Ulead Systems\MPEG;%%ProgramFiles%%\Ulead Systems\Ulead DVD MovieFactory 3 SE;%%ProgramFiles%%\Nero\Nero 7\Core\nero.exe;" /fI tried extracting a reg file and kept having problems. So I extracted it asa text file so I could see what the contents actually was and write my ownreg file. But I couldn't figure out how to create a REG_EXPAND_SZ key ina reg file so I ended up using REG. Edited January 19, 2006 by jbm
Rhondo Posted January 19, 2006 Author Posted January 19, 2006 (edited) While I appreciate your response, I realized that I didn't mention specifically the fact that I want the User temp directory to be in the same place as the windows temp. The problem that I am running into is that the user profile isn't completely set when the batch file runs. I really don't know when a proper time is to run the registry edit. Any Ideas? Edited January 19, 2006 by Rhondo
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now