How to detect whether office installed or not & notify the user using wix?
<p>I'm using wix recently and I want to detect whether office is installed or not using wix &amp; show a dialog if it's not.
 I wrote the below code and it doesn't show the dialog. 
Any ideas?</p>

<pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
&lt;Wix xmlns="http://schemas.microsoft.com/wix/2006/wi"
     xmlns:util="http://schemas.microsoft.com/wix/UtilExtension" &gt;
    &lt;Product Id="*" Name="SetupProject1" Language="1033" Version="1.0.0.0" Manufacturer="Microsoft" UpgradeCode="f91c0ad9-0bbd-446d-9869-74801966e922"&gt;       
    &lt;Package InstallerVersion="200" Compressed="yes" InstallScope="perMachine" /&gt;
    &lt;/Product&gt;

    &lt;Fragment&gt;
    &lt;util:RegistrySearch Id="Path"
            Variable="OfficeSearchResult"
            Root="HKLM"
            Key="SOFTWARE\Microsoft\Office\14.0\Common\InstallRoot"
            /&gt;

    &lt;InstallUISequence&gt;
      &lt;Show Dialog="OfficeWarningDlg" After="ExecuteAction"&gt;
        &lt;![CDATA[(OfficeSearchResult == "")]]&gt;
      &lt;/Show&gt;
    &lt;/InstallUISequence&gt;

    &lt;UI&gt;
      &lt;Dialog Id="OfficeWarningDlg" Width="284" Height="73" Title="QuickTime Note" NoMinimize="yes"&gt;
        &lt;Control Id="ctrl_dialog" Type="Text" X="38" Y="8" Width="240" Height="40" TabSkip="no"&gt;
          &lt;Text&gt;Microsoft office is required.&lt;/Text&gt;
        &lt;/Control&gt;
        &lt;Control Id="OK" Type="PushButton" X="114" Y="52" Width="56" Height="17" Default="yes"  Cancel="yes" Text="OK"&gt;
          &lt;Publish Event="EndDialog" Value="Return"&gt;1&lt;/Publish&gt;
        &lt;/Control&gt;
      &lt;/Dialog&gt;     
    &lt;/UI&gt;  
    &lt;/Fragment&gt;
&lt;/Wix&gt;
</code></pre>