I have a requirement to Merge/bundle Msi package with .Net 4.8 executable package and generate MSI package as an output.
I have currently written a Bootstrapper application in wix that generates .exe file, which also has an install condition for .Net 4.8
But the requirement is to generate MSI after bundling
2条答案
按热度按时间8i9zcol21#
I would say that this is not a good way to do it.
Bring out .net first and then install your msi in another step.
Merging 2 installations in one msi would require you to make a snapshot into a new msi, and therefore you would loose the intelligence of the already built .net installation.
You "could" make a custom action in your msi which installs the .net, but nested installs are deprecated and i dont know if it would really work these days. I never done it.
ztigrdn82#
Add a Custom Action like a power shell script Before InstallFiles
Put the action in InstallExecuteSequence
Some helpers
Considering your powershell file and ndp48-x86-x64-allos-enu.exe is in location
/Scripts
Add a fragment for copying file and
Compressed="yes"
in the<Package>