wix: setting RegistryKey Root HKMU
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 ro开发者_运维技巧ot 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:
- first search finds the value and sets the property; in this case the second search result is ignored because its property was already sets by the first search
- second search find the value and sets the property
- both searches find nothing and the property is empty
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:
- MsiGetComponentPathEx in MSDN
- MsiGetComponentPath in MSDN
精彩评论