title: wix 3.8 silent install - ui level 2
body: <p>I want to create a WIX Installer (3.8) that only installs silently.</p>
  
  <p>I'm using the Wix file attached to demonstrate my issue.</p>
  
  <p>At
      <br>
        UILevel=2<br>
      </p>
  
  <pre><code>&lt;InstallExecuteSequence&gt;      
    &lt;FindRelatedProducts Before="LaunchConditions"&gt;UILevel=2&lt;/FindRelatedProducts&gt;      
  &lt;/InstallExecuteSequence&gt;
  </code></pre>
  
  <p>I'm setting the UI level to 2
  According to:
  msdn.microsoft.com/en-us/library/aa372096%28v=vs.85%29.aspx
  then it's:
  "
  INSTALLUILEVEL_NONE 2   Completely silent installation.
  "</p>
  
  <p>So far so good. I can install the "product" which is nothing but an empty directory.
  When I set the product's version to: Version="1.1.0.0" and want to do a major upgrade everything also works fine.
  When I look at the program an feature "tool" from Microsoft 
  as shown here:</p>
  
  <p><a href="http://windows.microsoft.com/en-us/windows/uninstall-change-program#uninstall-change-program=windows-7" rel="nofollow">http://windows.microsoft.com/en-us/windows/uninstall-change-program#uninstall-change-program=windows-7</a></p>
  
  <p>I see both versions (version 1.0.0.0 and 1.1.0.0) which is not what I expected the Wix installer should do.</p>
  
  <p>When I remove</p>
  
  <pre><code>&lt;InstallUISequence&gt;      
    &lt;FindRelatedProducts Before="LaunchConditions"&gt;UILevel=2&lt;/FindRelatedProducts&gt;                   
  &lt;/InstallUISequence&gt;
  
  &lt;InstallExecuteSequence&gt;      
      &lt;FindRelatedProducts Before="LaunchConditions"&gt;UILevel=2&lt;/FindRelatedProducts&gt;      
  &lt;/InstallExecuteSequence&gt;
  </code></pre>
  
  <p>from the Wix script, install Version 1.0.0.0 and later after changing the wix script to 1.1.0.0 
      and major upgrading again,
      I only see 1 version (1.1.0.0) at the program an feature "tool" from Microsoft 
      ( windows.microsoft.com/en-us/windows/uninstall-change-program#uninstall-change-program=windows-7 )
      which is what I expect the windows installer should do.</p>
  
  <p>So my question would be:
      What is missing or wrong at the script 
      ( that the program an feature "tool" from Microsoft shows 2 Versions after a major upgrade )
  Wix script:</p>
  
  <pre><code>&lt;Wix xmlns="http://schemas.microsoft.com/wix/2006/wi"&gt;
  &lt;Product Id="*" Name="SetupProject1" Language="1033" Version="1.1.0.0" Manufacturer="asdf" UpgradeCode="BE170BF6-0C06-4A50-B81B-CDF6609FAD5A"&gt;
      &lt;Package InstallerVersion="200" Compressed="yes" InstallScope="perUser" InstallPrivileges="limited" /&gt;
  
      &lt;MajorUpgrade DowngradeErrorMessage="A newer version of [ProductName] is already installed." Schedule="afterInstallInitialize" /&gt;
      &lt;MediaTemplate /&gt;
  
      &lt;InstallUISequence&gt;      
          &lt;FindRelatedProducts Before="LaunchConditions"&gt;UILevel=2&lt;/FindRelatedProducts&gt;                   
      &lt;/InstallUISequence&gt;
  
      &lt;InstallExecuteSequence&gt;      
          &lt;FindRelatedProducts Before="LaunchConditions"&gt;UILevel=2&lt;/FindRelatedProducts&gt;      
      &lt;/InstallExecuteSequence&gt;       
  
      &lt;Feature Id="ProductFeature" Title="SetupProject1" Level="1"&gt;
          &lt;ComponentGroupRef Id="ProductComponents" /&gt;
      &lt;/Feature&gt;
  &lt;/Product&gt;
  
  &lt;Fragment&gt;
      &lt;Directory Id="TARGETDIR" Name="SourceDir"&gt;
          &lt;Directory Id="LocalAppDataFolder"&gt;
              &lt;Directory Id="INSTALLFOLDER" Name="SetupProject1" /&gt;
          &lt;/Directory&gt;
      &lt;/Directory&gt;
  &lt;/Fragment&gt;
  
  &lt;Fragment&gt;
      &lt;ComponentGroup Id="ProductComponents" Directory="INSTALLFOLDER"&gt;
      &lt;Component Id="test" Guid="D6527568-4C76-493B-AF1F-9E973723E773"
        SharedDllRefCount="no" KeyPath="no" NeverOverwrite="no" Permanent="no" Transitive="no"
        Win64="no" Location="either"&gt;
        &lt;CreateFolder/&gt;
        &lt;RemoveFolder Id="ProductComponents" On="uninstall"/&gt;
        &lt;RegistryValue Root="HKCU" Key="Software\MyFantasyCompany\MyApplicationName" Name="installed" Type="integer" Value="1" KeyPath="yes"/&gt;
      &lt;/Component&gt;
      &lt;/ComponentGroup&gt;
  &lt;/Fragment&gt;
  &lt;/Wix&gt;
  </code></pre>