I use something like this (without the condition, but that could be added, in
which case I would also make the component transitive):
<Fragment>
<Component Id="myShortcut" Directory="aDirId">
<Shortcut Id="myShortcut" Target="[DirId]file.ext"
Directory="MyMenuFolder" Name="Name" WorkingDirectory="DirId"
xmlns:wix="http://schemas.microsoft.com/wix/2006/wi" />
<RegistryValue Root="HKCU" Key="SOFTWARE\Company\product"
Name="myShortcut_someValue" Value="[ProductVersion]" Type="string"
KeyPath="yes" />
</Component>
</Fragment>
--
View this message in context:
http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/perMachine-optional-shortcut-creation-tp7597616p7597618.html
Sent from the wix-users mailing list archive at Nabble.com.
------------------------------------------------------------------------------
_______________________________________________
WiX-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wix-users