How to determine whether dotnet and VSTORuntime is installed in WIX Bootstrapper -


i made setup file of add-ins project using wix. has dependencies dotnet , vsto runtime. used wix bootstrapper confirm dependencies must installed before installing product works too. need conditional installation of dependencies if dotnet , vsto runtime installed don't install these items. tried registry searches didn't success, here bootstrapper code tell me need modify code.

<?xml version="1.0" encoding="utf-8"?> <wix xmlns="http://schemas.microsoft.com/wix/2006/wi" xmlns:bal="http://schemas.microsoft.com/wix/balextension"       xmlns:util="http://schemas.microsoft.com/wix/utilextension">     <bundle name="finalsetup" version="1.0.0.0" manufacturer="ramesh" upgradecode="5704ca64-b7bc-487b-8867-cabb51621c0e">     <bootstrapperapplicationref id="wixstandardbootstrapperapplication.rtflicense" >       <bal:wixstandardbootstrapperapplication licensefile="mylicense.rtf"                                               suppressoptionsui="yes" />     </bootstrapperapplicationref>          <chain>       <exepackage id="dotnetfx40_full_x86_x64" sourcefile="dotnetfx40_full_x86_x64.exe" permachine="yes" cache="no"                   compressed="no"                   downloadurl="http://download.microsoft.com/download/9/5/a/95a9616b-7a37-4af6-bc36-d6ea96c8daae/dotnetfx40_full_x86_x64.exe"                   permanent="yes"                   installcommand="/q /norestart"                   detectcondition="vstor40_installed"                   installcondition="1" />       <exepackage id="vstoruntime" sourcefile="vstor_redist.exe" permanent="yes" vital="yes" cache="no" compressed="no"                   downloadurl="http://go.microsoft.com/fwlink/?linkid=158917"                   permachine="yes"                   installcommand="/q /norestart"                   detectcondition="vstor40_installed"                   installcondition="not vstor40_installed" />       <msipackage sourcefile="$(var.setup.targetpath)" vital="yes" compressed="yes" id="wordaddins" after="vstoruntime"/>     </chain>     </bundle> </wix> 

another issue have is, attached mylicense.rft has dummy contents. setup doesn't show license content during installation process, @ attached snapshot enter image description here

the issue forget use value attribute causes problem. problem rtf file, after changing file worked expected. here working version of code.

working version here

<?xml version="1.0" encoding="utf-8"?> <wix xmlns="http://schemas.microsoft.com/wix/2006/wi" xmlns:bal="http://schemas.microsoft.com/wix/balextension"       xmlns:util="http://schemas.microsoft.com/wix/utilextension">   <bundle name="finalsetup" version="1.0.0.0" manufacturer="ramesh" upgradecode="5704ca64-b7bc-487b-8867-cabb51621c0e">     <bootstrapperapplicationref id="wixstandardbootstrapperapplication.rtflicense" >       <bal:wixstandardbootstrapperapplication licensefile="mylicense.rtf"                                               suppressoptionsui="yes" />     </bootstrapperapplicationref>     <util:registrysearch id="vstoruntimetest" root="hklm" key="software\microsoft\vsto runtime setup\v4r\" value="vstorfeature_clr40" variable="vstorfeature"/>     <util:registrysearch id="vstoruntimeversionv4r" root="hklm" key="software\microsoft\vsto runtime setup\v4r\" value="version" variable="vstorversionv4r"/>     <util:registrysearch id="vstoruntimeversionv4" root="hklm" key="software\microsoft\vsto runtime setup\v4\" value="version" variable="vstorversionv4"/>      <util:registrysearch id="dotnettest" root="hklm" key="software\microsoft\net framework setup\ndp\v4\full" value="install" variable="dotnetinstall"/>     <util:registrysearch id="dotnetversion" root="hklm" key="software\microsoft\net framework setup\ndp\v4\full" value="version" variable="dotnetversion"/>      <chain>        <exepackage id="dotnetfx40_full_x86_x64" sourcefile="dotnetfx40_full_x86_x64.exe" permachine="yes" cache="no"                   compressed="no"                   downloadurl="http://download.microsoft.com/download/9/5/a/95a9616b-7a37-4af6-bc36-d6ea96c8daae/dotnetfx40_full_x86_x64.exe"                   permanent="yes"                   installcommand="/q /norestart"                   detectcondition="not dotnetinstall"                   installcondition="not dotnetinstall or not (dotnetversion >=v4.0.30319)" />       <exepackage id="vstoruntime" sourcefile="vstor_redist.exe" permanent="yes" vital="yes" cache="no" compressed="no"                   downloadurl="http://go.microsoft.com/fwlink/?linkid=158917"                   permachine="yes"                   installcommand="/q /norestart"                   detectcondition="vstorfeature"                   installcondition="not vstorfeature or not (vstorversionv4r >=v10.0.40303) or not (vstorversionv4 >=v10.0.21022)" />       <msipackage sourcefile="$(var.setup.targetpath)" vital="yes" compressed="yes" id="wordaddins"/>     </chain>   </bundle> </wix> 

Comments

Popular posts from this blog

jquery - How can I dynamically add a browser tab? -

node.js - Getting the socket id,user id pair of a logged in user(s) -

keyboard - C++ GetAsyncKeyState alternative -