That doesn't work because those are product code guids, not component guids.
Try a registry search under 
HKLM\Software\Microsoft\Windows\CurrentVersion\Uninstall\{productcode}.
Also consider a search under HKCU if both your product and the dependency are 
per-user products.
-Eric
> To: wix-users@lists.sourceforge.net
> From: mathieu.carto...@hotmail.com
> Date: Tue, 12 May 2009 13:38:55 +0200
> Subject: [WiX-users] How to check for installed package in WiX 3.0 ?
> 
> I'd like to check that Crystal Reports Basic for Visual Studio 2008 is 
> installed as a condition for my own installation package.
> 
> I found this in the bootstrapper description for this product 
> (C:\Program Files\Microsoft 
> SDKs\Windows\v6.0A\Bootstrapper\Packages\CrystalReports10_5\product.xml) :
> 
>      <InstallChecks>
>        <MsiProductCheck Property="CRVSInstalled" 
> Product="{AA467959-A1D6-4F45-90CD-11DC57733F32}"/>
>        <MsiProductCheck Property="CRVSRunTimex86Installed" 
> Product="{CE26F10F-C80F-4377-908B-1B7882AE2CE3}"/>
>        <MsiProductCheck Property="CRVSRunTimex64Installed" 
> Product="{2BFA9B05-7418-4EDE-A6FC-620427BAAAA3}. "/>
>      </InstallChecks>
> 
> Trying to mimic this behavior in WiX, I did the following :
> 
>      <Property Id="CRVSINSTALLED">
>        <ComponentSearch Id="CRVSInstalledSearch" 
> Guid="{AA467959-A1D6-4F45-90CD-11DC57733F32}" />
>      </Property>
>      <Property Id="CRVSRUNTIMEX86INSTALLED">
>        <ComponentSearch Id="CRVSRunTimex86InstalledSearch" 
> Guid="{CE26F10F-C80F-4377-908B-1B7882AE2CE3}" />
>      </Property>
>      <Property Id="CRVSRUNTIMEX64INSTALLED">
>        <ComponentSearch Id="CRVSRunTimex64InstalledSearch" 
> Guid="{2BFA9B05-7418-4EDE-A6FC-620427BAAAA3}" />
>      </Property>
>      <Condition Message="!(loc.CrystalReportsRequired)">Installed OR 
> CRVSINSTALLED OR CRVSRUNTIMEX86INSTALLED OR 
> CRVSRUNTIMEX64INSTALLED</Condition>
> 
> But it seems that `ComponentSearch` is looking for package components 
> (files, directories) that have their own ids, rather than looking for 
> the package itself.
> 
> So how can I do this ?
> 
> Mathieu
> 
> 
> ------------------------------------------------------------------------------
> The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your
> production scanning environment may not be a perfect world - but thanks to
> Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700
> Series Scanner you'll get full speed at 300 dpi even with all image 
> processing features enabled. http://p.sf.net/sfu/kodak-com
> _______________________________________________
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users

_________________________________________________________________
Windows Liveā„¢: Keep your life in sync.
http://windowslive.com/explore?ocid=TXT_TAGLM_BR_life_in_synch_052009
------------------------------------------------------------------------------
The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your
production scanning environment may not be a perfect world - but thanks to
Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700
Series Scanner you'll get full speed at 300 dpi even with all image 
processing features enabled. http://p.sf.net/sfu/kodak-com
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to