1

I want to create an msi installation file using wix.

I want to create these distributions as wix installation files.

<?xml version="1.0" encoding="UTF-8"?>
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
  <Product Id="*" Name="SetupProject1" Language="1033" Version="1.0.0.0" Manufacturer="winitech"     UpgradeCode="5a410445-8d05-44f3-aa33-3662cf67060a">
    <Package InstallerVersion="200" Compressed="yes" InstallScope="perMachine" />
    <MajorUpgrade DowngradeErrorMessage="A newer version of [ProductName] is already installed." />
    <MediaTemplate />
    <Feature Id="ProductFeature" Title="SetupProject1" Level="1">
      <ComponentGroupRef Id="ProductComponents" />
    </Feature>
  </Product>
  <Fragment>
    <Directory Id="TARGETDIR" Name="SourceDir">
      <Directory Id="ProgramFilesFolder">
        <Directory Id="INSTALLFOLDER" Name="SetupProject1" />
      </Directory>
    </Directory>
  </Fragment>
  <Fragment>
    <ComponentGroup Id="ProductComponents" Directory="INSTALLFOLDER">
      <!-- TODO: Remove the comments around this Component element and the ComponentRef below in order to add resources to this installer. -->
      <!-- <Component Id="ProductComponent"> -->
      <!-- TODO: Insert files, registry keys, and other resources here. -->
      <!-- </Component> -->
    </ComponentGroup>
  </Fragment>
</Wix>

There is also a file in a subfolder named symbols.

I think I need to add it to the componentGroup but I don't know how.

Sh H
  • 53
  • 4

1 Answers1

0

Quick "Tutorials": A few pointers to samples of WiX in use:

Some observations: Don't include all build files:

  • Don't include the .pdb files or other files that are meant for debugging (Skeet).
  • Don't distribute a debug build, build in release mode and use those files (unless you want to test a debug build internally).
  • XML files should generally be installed with XmlFile and XmlConfig elements.
Stein Åsmul
  • 39,960
  • 25
  • 91
  • 164