Use WixToolset to create the winform installation package, wixtoolsetwinform

Source: Internet
Author: User

Use WixToolset to create the winform installation package, wixtoolsetwinform

 

Preparations

To use Wix, first download Wixtoolset from the official website. After the installation is downloaded, start visual studio and create a new project. You can see that the Windows Installer XML option is displayed on the left-side menu bar.

Tool used: visual studio 2010

Wix version (WiX v3.7 (Stable ))

 

 

 

Practice

The preparation is complete. Now we want to create an installation package instance and see how Wix works.

Start visual studio, create a winform project named "AppDemo", and create a solution.

The project interface has only one simple Label and displays "this is my first installation package ".

Add a project to the solution.

 

After the creation is complete, reference the previously created winform application, open Product. wxs, and insert the following code in & lt; ComponentGroup & gt; at the bottom.

<Component Id = "ProductComponent"> <File Source = "$ (var. AppDemo. TargetPath)"/> </Component>

The installation package is displayed in the debug folder of the project. Click MySetup. msi to install the package.

After the installation is complete, find the installed program in the corresponding folder.

 

 

Double-click the .exe program. The program runs successfully and the attempt is successful.

 

In the future, we will package our products using Wix.

 

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.