windows - burn deploy and run batch file containing other MSIs -


i'm new wix , burn. i'm trying install .bat file , run it. .bat file runs other msis , can't run within setup project.

i've tried 2 approaches, both using burn:

approach 1. i've tried adding batch file payload burn, can't figure out how reference .bat file on target machine...

    <bundle name=...>     <bootstrapperapplicationref id="wixstandardbootstrapperapplication.rtflicense" >         <payload id="quicktimesilentinstallbat" compressed="yes"  sourcefile="c:\qt\quicktimesilentinstall.bat"         </bootstrapperapplicationref>         <chain>              <packagegroupref id="netfx45redist"/>              <exepackage id="quicktimesilentinstallexepkg" name="quicktimesilentinstall.bat" />          </chain> </bundle> 

so here error exepackage name invalid because contains '.' character. i'm trying put .bat filename 'name' attribute because documentation here http://wixtoolset.org/documentation/manual/v3/xsd/wix/exepackage.html describes name attribute 'the destination path , file name chain payload'

approach 2 in burn chain first install separate msi deploys .bat file.... follow exepackage run .bat file. problem don't know how determine path of .bat file on target machine (without hardcoding it) - tried referencing project deploys .bat - can't find way access relevant 'directory'

context i'll mention in case there's better way achieve goal - i'm trying silent install of quicktime onto target machine. involves calling 2 msis , 1 exe - that's .bat file doing

approach 3: batch file in burn instead. use msipackage , exepackage elements directly instead of trying run batch file. (an exepackage can't run batch file anyway.)


Comments