I think you need to use the same component id for a and b (or better  
still  put the component in a wixlib).

Neil

Neil Sleightholm
n...@x2systems.com

On 21 Mar 2010, at 16:20, "madbadger" <itwoja...@gmail.com> wrote:

>
> Hello,
>
> I am relatively new to WiX. It is a great tool, but I still need  
> some time
> to learn it better.
> I have encountered a problem with registration and unregistration of  
> a COM
> component. I have created installers for two applications, lets call  
> them A
> and B. Both are using the same COM component. I have used the heat  
> tool, as
> recommended. When installing A or B, the component is registered  
> without any
> problems.
>
> But when I install A and B, then remove A (with Add/Remove programs)  
> the COM
> class gets unregistered and B cannot use it anymore. Is there a clean
> solution to prevent this from happening? I would like to unregister  
> the COM
> when BOTH A and B are uninstalled.
>
> My WIX code for COM registration (it is a DirectShow filter):
>
> <Component Id="cropFilter" Guid="{1102C100-D04F-4b57- 
> BB93-78F3F4604988}">
>  <File Id="filA657AE943D50CC1EAEFA9FFAB5BD3C4E" KeyPath="yes"
> Source="COM\CropFilter.dll">
>    <Class Id="{2E164ADE-2F13-4EE9-BA95-28CF9AE23511}"
> Context="InprocServer32" Description="Crop Properties"  
> ThreadingModel="both"
> />
>    <Class Id="{F5E69199-7AB2-40F0-BFC0-6938430F4F19}"
> Context="InprocServer32" Description="CSIR RTVC Crop Filter"
> ThreadingModel="both" />
>  </File>
>  <RegistryValue Root="HKCR"
> Key="CLSID\{083863F1-70DE-11D0-BD40-00A0C911CE86}\Instance\ 
> {F5E69199-7AB2-40F0-BFC0-6938430F4F19}"
> Name="FriendlyName" Value="CSIR RTVC Crop Filter" Type="string"
> Action="write" />
>  <RegistryValue Root="HKCR"
> Key="CLSID\{083863F1-70DE-11D0-BD40-00A0C911CE86}\Instance\ 
> {F5E69199-7AB2-40F0-BFC0-6938430F4F19}"
> Name="CLSID" Value="{F5E69199-7AB2-40F0-BFC0-6938430F4F19}"  
> Type="string"
> Action="write" />
>  <RegistryValue Root="HKCR"
> Key="CLSID\{083863F1-70DE-11D0-BD40-00A0C911CE86}\Instance\ 
> {F5E69199-7AB2-40F0-BFC0-6938430F4F19}"
> Name="FilterData" Value="02000000000020000000000000000000"  
> Type="binary"
> Action="write" />
>  <RegistryValue Root="HKLM"
> Key="System\CurrentControlSet\Control\MediaProperties 
> \PrivateProperties\Joystick\Winmm"
> Name="wheel" Value="1" Type="integer" Action="write" />
> </Component>
>
> Any help would be appreciated,
>
> Best regards,
> madbadger
> -- 
> View this message in context: 
> http://n2.nabble.com/COM-unregistration-when-removing-program-tp4774702p4774702.html
> Sent from the wix-users mailing list archive at Nabble.com.
>
> --- 
> --- 
> --- 
> ---------------------------------------------------------------------
> Download Intel&#174; Parallel Studio Eval
> Try the new software tools for yourself. Speed compiling, find bugs
> proactively, and fine-tune applications for parallel performance.
> See why Intel Parallel Studio got high marks during beta.
> http://p.sf.net/sfu/intel-sw-dev
> _______________________________________________
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users

------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to