wix - Burn: Access to msi files inside Bootstrapper.exe -
question: can access msi files (and other installers) packed burn bootstrapper @ install time?
let's if need read property, or apply mst before starting installation etc.
is possible?
did try add transform payload msipackage element, , set transforms property using msiproperty element?
<msipackage ...> <payload compressed="yes" sourcefile="c:\mytransform.mst"/> <msiproperty name="transforms" value="mytransform.mst" /> </msipackage>
if need path embeded payloads, , if using standard bootstrapper, going need create bafunctions.dll , c/c++ coding.
to create bafunctions.dll, first download wix source code , use project src\burn\samples\bafunctions example. use bafunctions.dll have compiled, add payload bootstrapper
<bootstrapperapplicationref ...> <payload compressed="yes" sourcefile="c:\bafunctions.dll" /> </bootstrapperapplicationref>
that's enough make standard bootstrapper call bafunctions.dll callbacks. have callbacks ondetect(), ondetectcomplete(), onplan(), onplancomplete(). can use these functions non-trivial detections , get/set burn variables.
this post has example on how use bafunctions.dll path embeded payload @ runtime: how pass path bundle's payload msi?
Comments
Post a Comment