[wix-users] WiX RegistrySearch is failing for MultiString

sachin shinde sachincse1 at gmail.com
Thu Apr 19 18:28:56 PDT 2018


  I am facing issue for RegistrySearch for multistring, where as string
search working fine. Checked in installation logs

Action start 13:40:07: AppSearch. MSI (s) (40:E0) [13:40:07:381]: PROPERTY
CHANGE: Adding MYKEY property. Its value is ''. MSI (s) (40:E0)
[13:40:07:381]: PROPERTY CHANGE: Adding MYSERVICE property. Its value is
'myvalue2'.

I have trimmed some logs here

Action ended 13:40:51: ScheduleReboot. Return value 1. Action ended 13:40:51:
INSTALL. Return value 1. You must restart your system for the configuration
changes made to XXXXX to take effect. Click Yes to restart now or No if you
plan to manually restart later. Property(S): UpgradeCode =
{XXXXXX-XXXX-XXX-XXXX-XXXXXXXX} Property(S): MYKEY = [~]myvalue1[~]
Property(S): MYSERVICE = myvalue2

At end of installation it seems it has correctly evaluated the MYKEY but
not during AppSearch, resulting in failing my Condition evaluation

<Feature Id="MyFeature" Level="" Display="" Title="" Description=""
AllowAdvertise="no" ConfigurableDirectory="INSTALLDIR">
   <MergeRef Id="MyFeature" Primary="yes"/>
   <Condition Level="0">((MsiNTProductType=1) OR
   (MYKEY="[~]MyValue[~]") OR
   (MYSERVICE="MyService" AND MYKEY=""))</Condition>
   </Condition>
</Feature>
<Property Id="MYKEY" Secure="yes">
        <RegistrySearch Id="MyKey"
                             Root="HKLM"
                             Key="SYSTEM\CurrentControlSet\
Services\MyService"
                             Name="mykey"
                             Type="raw" /> </Property> <Property
Id="MYSERVICE" Secure="yes">
        <RegistrySearch Id="MYSERVICE"
                        Root="HKLM"
                             Key="SYSTEM\CurrentControlSet\
Services\MyService"
                             Name="DisplayName"
                             Type="raw" />
 </Property>


-- 
Regards,

Sachin Shinde


More information about the wix-users mailing list