Archive: Registry Keys as variables


Registry Keys as variables
My installer needs to use the HKLM under certain conditions and HKCU in others. I'd like to set a variable to HKLM or HKCU as needed and feed it to the Registry functions.

WriteRegStr doesn't accept the variable in place of HKLM or HKCU.

Is there a way to do this?

Thanks


Check the value of the variable and run the command for HKCU or HKLM.