You could create 2 components; one to write the HKLM value, one to write the HKCU value. Use a RegistrySearch for the HKCU value, which sets a property with an initial value of "HKLM". Then use this as a condition on the 2 components. The former conditioned on YourProperty = "HKLM", the latter on YourProperty <> "HKLM".
There's possibly a more elegant solution, but that's what first occurred to me. Rob Jesper Hogstrom wrote: > Trying to wrap my haed around the following scenario: > > a) I need to write some information to the registry. > b) If a certain registry key path in HKCU exists, I want to write to > that path, otherwise to that same path but in HKLM. > > What would be the best approach to achieve this in wxs? > > --Jesper > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys-and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ WiX-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/wix-users

