Sheritlw
09-27-2004, 10:34 AM
How do you use variables in subkeys.
I've tried several combinations to see if I could get the results I'm looking for and haven't had any success yet. Below is an example of my last attempt.
Any suggestions?
Registry.SetValue(HKEY_USERS, ".DEFAULT\Software\SessionVar.Expand(%CompanyName%) \SessionVar.Expand(%RegistryName)", "Version", SessionVar.Expand("%ProductVer%"), REG_SZ);
I've tried several combinations to see if I could get the results I'm looking for and haven't had any success yet. Below is an example of my last attempt.
Any suggestions?
Registry.SetValue(HKEY_USERS, ".DEFAULT\Software\SessionVar.Expand(%CompanyName%) \SessionVar.Expand(%RegistryName)", "Version", SessionVar.Expand("%ProductVer%"), REG_SZ);