If I set the root attribute to HKMU in the RegistryKey, how do I know where to search (RegistrySearch root = HKCU or HKLM )in my registry for my RegistryValue. Or how can i set the root value dynamically?
Usually this is done by using two searches with the same property: one search for HKLM and another one for HKCU.
The following scenarios can then occur:
my quick idea you are requesting the install location of that component from the installer.
this can done via installer api. if you are using the on demand stuff, you have to query the installer anyway.
you can use the MsiGetComponentPathEx of MsiGetComponentPath function for that:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With