Short_Rz Posted September 6, 2004 Posted September 6, 2004 HowdyIs there any way to get a global variable such as %systemdrive% to work in the registry? I found that i couldnt install the catalysts or the nForce drivers with the normal method, however found that they still ran from the commandline once in windows. So i came to the conclusion that if i put keys in the RunOnce section of the registry, everything should install fine. However, i found that variables such as %systemdrive% dont work. I could just hard code the location of the installers in, but would rather have a variable there so i can install on different drives without hasslesIs this possible??
sleepnmojo Posted September 6, 2004 Posted September 6, 2004 I know runonceex doesn't support reg_expand_sz registry keys. I doubt runonce would also. You can give it a try, but the best thing to do is run a batch file and input the variables with the REG.EXE program.
digitalfrost Posted September 6, 2004 Posted September 6, 2004 When you use a .inf File to set the RunOnce Keys you can use all variables that are described on Gosh's homepageWould be something like:HKLM,"Software\Microsoft\Windows\CurrentVersion\RunOnce","MySetup",,"%24%\path\to\drivers\setup.exe"
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