|
#1
|
|||
|
|||
|
Registry SubKey w/ Variables
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); |
|
#2
|
||||
|
||||
|
Try this. It should do what you want. It assumes that you have set the session variables %CompanyName% and %RegistryName% at some previous point.
Code:
SubKey = ".DEFAULT\\Software\\" .. SessionVar.Expand("%CompanyName%") .. "\\" .. SessionVar.Expand("%RegistryName");
Value = "Version";
Data = SessionVar.Expand("%ProductVer%");
Registry.SetValue(HKEY_USERS, SubKey, Value, Data, REG_SZ);
__________________
Check out the new MSI Factory 2.0! |
![]() |
«
Previous Thread
|
Next Thread
»
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Variables In Registry Actions | Waza04 | Setup Factory 7.0 Discussion | 2 | 09-24-2004 10:22 AM |
| INFO: Setting Environment Variables | Support | Setup Factory 6.0 Knowledge Base | 0 | 10-10-2002 01:07 PM |
| Variables and registry | gena | Setup Factory 6.0 | 0 | 12-10-2001 04:25 AM |
| Registry Variables Problem | shenjengjie | Setup Factory 5.0 | 2 | 10-31-2001 08:01 AM |
| Problem with Registry Variables | marcus | Setup Factory 5.0 | 3 | 10-25-2000 09:52 AM |
All times are GMT -6. The time now is 08:37 PM.








Linear Mode

