Jump to content

Recommended Posts

Posted (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 :whistle:

Edited by Rhondo

Posted (edited)

I use this line in a batch file to set up my environment variables

REG 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;" /f

I tried extracting a reg file and kept having problems. So I extracted it as

a text file so I could see what the contents actually was and write my own

reg file. But I couldn't figure out how to create a REG_EXPAND_SZ key in

a reg file so I ended up using REG.

Edited by jbm
Posted (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 by Rhondo

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...