Hi everyone,

I'm new to Wix, and got misunderstood about the behavior of util:RegistrySearch.


The following code is from a project, and detects if Visual Studio Professional 
is installed.


I have installed Visual Studio 2012 and update 2.


But the Problem is that the required registry key does not exist, but the check 
passed.


On another machine without Visual Stuidio installed the installation process 
was blocked.


<?xml version="1.0" encoding="utf-8"?>
<Include xmlns="http://schemas.microsoft.com/wix/2006/wi"; 
xmlns:util="http://schemas.microsoft.com/wix/UtilExtension"; 
xmlns:dd="http://schemas.microsoft.com/wix/2005/01/dd";>
   <!-- Detect if Professional is installed -->
   <util:RegistrySearch
      Id="ProCheck_ProfessionalCore_DetectKey"
      Variable="ProCheck_ProfessionalCore_DetectKey"
      Root="HKLM"
      Key="SOFTWARE\Microsoft\DevDiv\vs\Servicing\$(var.VSRegVer)\professional"
      Value="Install"/>  
    <dd:Blocker ShortName="ProfressionalBlock" Type="Stop" Condition="( NOT 
(ProCheck_ProfessionalCore_DetectKey = 1 )) AND (CurrentOperation = 
&quot;Install&quot;) " DisplayText="This installation requires Microsoft Visual 
Studio Professional, Premium or Ultimate 2012, and Microsoft Visual Studio 2012 
Update 2 or later. " />
</Include>


so, my question is: if the required registry key can not be found, will it try 
to detect alternative keys? or how does it work?


Thanks!
------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:

Build for Windows Store.

http://p.sf.net/sfu/windows-dev2dev
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to