简体   繁体   中英

Creating WiX Installer with UI and Localization

I have the requirement to create an installer for a WPF application. That's not much of a problem (but much of a pain with WiX), but now my client updated his requirements and I'm starting to get frustrated. Please tell me if the requested functionality is possible with WiX (and if, could you please provide a hint?).

My Setup:

  • Visual Studio 2013
  • WPF Application (many files as it includes a self hosted web server and some pages/css/js, etc)

Requirements:

  • Installer has to be a MSI package for automated installation
  • There has to be a UI guiding the user through the installation (where to install)
  • The installer has to be localized (13 languages), starting with the windows language with the opportunity to change on installation
  • The successfully installed app has to be started (or at least there should be the opportunity to do so at the end of the installation)

I'm not sure if it's even possible to create a functioning MSI with WiX Bootstraper. I've only seen exe files.

Thank's for your time!

Ben,

It's a very easy task. Don't get frustrated. So here are solutions for your requirements. Hope you are still working on it :

  • Installer has to be a MSI package for automated installation
    No need to add Bootstrapper for it. Just create a simple WiX installer.
  • There has to be a UI guiding the user through the installation (where to install)
    You need to add WixUI.wixlib library in your project reference.
  • The installer has to be localized (13 languages), starting with the windows language with the opportunity to change on installation.
    You need to add Languages in Package node.

    Package InstallerVersion="200" Compressed="yes" InstallScope="perMachine" Languages="1033,1031"

  • The successfully installed app has to be started (or at least there should be the opportunity to do so at the end of the installation)
    You need to write CustomAction for that & need to launch it after installation.

You can find a sample code here .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM