2013/11/22 wixtester <sangee...@hotmail.com>:
> Hi,
>
>   How do I reference count a registry component to use it between 2
> features? I have a feature named Agent that is shared by two other features,
> say, Auth and Bridge. Agent feature has a component that writes to registry.
> When I remove Auth or Bridge feature, the registry entry gets removed from
> the system. Any idea what is wrong in the component definition given below:
>
>
>     <Component Id="Agent_Registry" Win64="no" Directory="AGENT"
> Guid="{GUID_VALUE_REMOVED}" KeyPath="yes" SharedDllRefCount="yes">
>       <RegistryValue Id="IAMAgent" Root="HKLM"
> Key="SOFTWARE\COMPANYNAME\Agent" Type="string" Action="write"
> Name="FullPath" Value="[#Agent.dll]" />
>     </Component>
>
> thanks,
> sangeeta

Try putting KeyPath="yes" on the registry key instead of on the component.

-- 
Nicolás

------------------------------------------------------------------------------
Shape the Mobile Experience: Free Subscription
Software experts and developers: Be at the forefront of tech innovation.
Intel(R) Software Adrenaline delivers strategic insight and game-changing 
conversations that shape the rapidly evolving mobile landscape. Sign up now. 
http://pubads.g.doubleclick.net/gampad/clk?id=63431311&iu=/4140/ostg.clktrk
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to