Notes WiX making an MSI installation package example

Source: Internet
Author: User

WiX is a tool for making MSI installation files, and looking at a half-day document, it feels like nothing is more straightforward than an example.

<?XML version= "1.0" encoding= "UTF-8"?><Wixxmlns= "Http://">  <ProductId="*"Name= "Hellomsi"Language= "1033"Version= ""manufacturer= "LEH"UpgradeCode= "1de12ee7-2e94-42ac-979f-06245a0ade31">    < Packageinstallerversion= "$"Compressed= "Yes"Installscope= "Permachine" />    <MediaId= "1"Cabinet= ""Embedcab= "Yes" />        <DirectoryId= "TARGETDIR"Name= "SourceDir">      <DirectoryId= "ProgramFilesFolder">        <DirectoryId= "Installfolder"Name= "HelloWorld">          <ComponentId= "Productcomponent"Guid= "b5f0c012-49d6-4c63-afca-0ce6c24c6d7e">            <FileId= "HelloWorld"Source= "HelloWorld.exe" />          </Component>        </Directory>      </Directory>    </Directory>        <FeatureId= "Productfeature"Title= "HelloWorld" Level= "1">      <ComponentrefId= "Productcomponent" />    </Feature>         < PropertyId= "Wixshellexectarget"Value= "[#HelloWorld]" />    <CustomActionId= "LaunchFile"Binarykey= "Wixca"Dllentry= "Wixshellexec"impersonate= "Yes"/>        <InstallExecuteSequence>       <CustomAction= ' LaunchFile ' After= ' InstallFinalize '>Not installed</Custom>    </InstallExecuteSequence>  </Product></Wix>

Save this piece of XML as PRODUCT.WXS, remember that it is UTF-8 encoded, and then execute it under the command line:

- out Helloworld.msi-/I helloworld.msi/qn

Forget to say the premise of the operation:

    • Install WiX and add it to path
    • command line needs to be opened with administrator privileges
    • Change the GUID in the example.

What you just did, is actually:

    1. Wrap the Helloworld.exe into the MSI installation file Product.msi
    2. Then install Product.msi silently
    3. Run the Helloworld.exe file immediately after installation is complete


A flat "WiX Learning to Organize"
"How to:run the installed application after Setup" on the WiX website

StackOverflow "Open readme.txt at end of Installatin failed in WiX"

Notes WiX making an MSI installation package example

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: 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.