I want to create an EXE setup file containing all the files to install.
However, I also want to be able to include the MSI file in anonther installation project.
Is there any way to create both a single-file EXE bootstrapper and an MSI file?
unfortunately when you do this
the cab is not part of the exe or the msi
resulting having to distribute multiple files
how can we get 2 complete single packages
1EXE 1MSI
we have a use case where we need both
at the moment the ony way to ddo this is to have 2 builds and tell it to "build all"
but this results in double the build time
its already creating the MSI with cab built in, before generating the exe
why can we not simply instruct it to "not delete" the MSI
The only way to achieve what you need is to have two builds, just as you mentioned.
When you build an EXE, the MSI must be embedded into it so you can make use of the EXE capabilities (e.g. pre-install prerequisites, much more modern UI, etc.).
If you want, you can also extract the MSI out of the EXE, as I previously mentioned.
If you are not using the EXE capabilities, you can extract the MSI out of the EXE file as I explained above.
In addition, you should also uncheck the "Run package only from EXE bootstrapper, prevent running from MSI package" option from the "Launch Conditions" page.
However, I would still suggest you go for two builds.