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

html - How to set bootstrap input responsive width? -

javascript - Highchart x and y axes data from json -

javascript - Get js console.log as python variable in QWebView pyqt -