windows installer - Fail installation of MSI for certain value of registry value -


can installation of msi creating wix fail (non zero) value in windows registry. value of registry changing on 1 of custom action. sequence of action need taken care through msi : 1) calling exe modifying windows registry check. 2) need read value registry , setting in property. 3) based on property value, need go ahead insallation (for 0 value) else need fail insallation. below wix file had created this. (pasting actions in sequence)

    <property id="inst">         <registrysearch id="instgo"                 root="hkcu"                 key="software\abc"                 name="result"                 type="raw"                  win64="no" />     </property>     <setproperty id="instval" after="appsearch" value="-1" />  other logic...  <binary id='verifyexepath' sourcefile='$(var.productsource)\myfile.exe '/>     <customaction id="verification" binarykey='verifyexepath' execommand=' --register' execute='immediate' return='check'/> <customaction id="checkreg" property="instval" value="[inst]" return="check" />     <installexecutesequence>         <custom action="verification" after="costfinalize"/>     <custom action="checkreg" after="installfinalize">not remove~="all"</custom>     </installexecutesequence> 

any appreciated.


Comments

Popular posts from this blog

networking - Vagrant-provisioned VirtualBox VM is not reachable from Ubuntu host -

c# - ASP.NET Core - There is already an object named 'AspNetRoles' in the database -

ruby on rails - ArgumentError: Missing host to link to! Please provide the :host parameter, set default_url_options[:host], or set :only_path to true -