Find the GUID for SilverLight 4.0 (easy enough, if it is a MSI user Orca to
locate the ProductCode Property of the msi...
I am checking for MS Sync Framework 2.1 Synchronization, my check is
this(replace to suit SilverLight):

    
    <util:ProductSearch
      Guid ="A4E269C1-168D-40D3-9ABD-57FE4D4DB537"
      Id ="SQLSyncx86Search"
      Variable ="SQLSyncx86Installed"
      Condition="$(var.Platform)=x86" />

    
    <util:ProductSearch
      Guid ="7AC8EF88-D996-4D47-B40C-4DD93E307481"
      Id ="SQLSyncx64Search"
      Variable ="SQLSyncx64Installed"
      Condition="$(var.Platform)=x64" />

then my pre req check and install if not installed:

      <MsiPackage Id="Synchronizationx86"
                  DisplayName="Microsoft Sync Framework 2.1 Redistributable
Package (Synchronization) x86"
                  DisplayInternalUI="no"
                  Visible="yes"
                 
SourceFile="..\..\PreReqs\Synchronization-v2.1-x86-ENU.msi"
                  InstallCondition="NOT SQLSyncx86Installed AND
$(var.Platform)=x86"
                  Permanent="yes"/>

      <MsiPackage Id="Synchronizationx64"
                  DisplayName="Microsoft Sync Framework 2.1 Redistributable
Package (Synchronization) x64"
                  DisplayInternalUI="no"
                  Visible="yes"
                 
SourceFile="..\..\PreReqs\Synchronization-v2.1-x64-ENU.msi"
                  InstallCondition="NOT SQLSyncx64Installed AND
$(var.Platform)=x64"
                  Permanent="yes"/>

Hope this helped...

Steve





--
View this message in context: 
http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Burn-to-check-Silverlight-4-0-installed-tp7580817p7580826.html
Sent from the wix-users mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to