Write a WPF Wix Installer

2019-01-21 18:11发布

问题:

I have written an installer using WIX for a product, which uses:

  • custom extensions
  • custom actions
  • customized ui dialogs

etc.

I noticed Microsoft Office Installer uses WPF and was wandering how I would go about creating these custom looking installers? does anyone know how i would go about this, I cant seem to find any information on it or examples.

I have been told Wix Burn can do what I want but I can't find any examples.

回答1:

Download the WiX latest (weekly) release source code at http://wixtoolset.org/releases and look at the project located in src\Setup\WixBA. The WPF you write will be the bootstrapper UI which references the WiX bootstrapper engine (Burn).

I also created a minimal example that I blogged about here. Please note that it is a bare bones example to get someone started. Using the WiX source as an example is better because it's complete and robust.



回答2:

https://marketplace.visualstudio.com/items?itemName=MarkusWehrle.Laika42WiXToolsetExtension

this is an extension provided by Laika. download it embed an .msi in its bundle and execute the application , go through the code u will be able to understand everything about WPF Burn Bootstrapper

  • in bundle file -
    MsiPackage Id="abc" Compressed="yes" Visible="no" SourceFile="_Dependencies\abc.msi"

    ----> this will come under opening\closing a Tag like <...>, stackoverflow is not allowing to put the tag

put the msi in application folder where Bin folder resides or create a _Dependencies(name it as u like) folder and put the msi there