<?xml version="1.0"?>
<Wix xmlns="http://schemas.microsoft.com/wix/2003/01/wi">
  <Product Id="4717AF5D-52AC-4D13-85E6-D87278CE9BBC" 
           UpgradeCode="0BB7BB08-1A79-4981-A03F-32B401B01010" 
           Name="Grammatical Framework, version @PACKAGE_VERSION@" 
           Language="1033" Version="2.2" Manufacturer="The GF Developers">
    <Package Id="????????-????-????-????-????????????" 
             Description="Grammatical Framework, version @PACKAGE_VERSION@" 
             Comments="This package contains the Grammatical Framework system, version @PACKAGE_VERSION@." 
             InstallerVersion="200" Compressed="yes" />

    <Media Id="1" Cabinet="gf.cab" EmbedCab="yes" />

    <Directory Id="TARGETDIR" Name="SourceDir">

      <Directory Id="ProgramFilesFolder">
        <Directory Id="INSTALLDIR" Name="GF-@PACKAGE_VERSION@">

          <Component Id="GFBinary" Guid="E2A44A6C-0252-4346-85AE-BC6A16BFB0FC" DiskId="1">
            <File Id="GFEXE" Name="gf.exe" src="../bin/gf.exe" />
            <Shortcut Id="GFStartMenu" Directory="GFProgramMenuDir" 
                      Name="GF" Target="[!GFEXE]" />
          </Component>

          <Component Id="GFDocBinary" Guid="BDCA6F34-EE0A-4E72-8D00-CB7CAF3CEAEA" DiskId="1">
            <File Id="GFDocEXE" Name="gfdoc.exe" src="tools/gfdoc.exe" />
          </Component>

          <Component Id="GFEditor" Guid="39F885F7-BC49-4CBC-9DCD-569C95AA3364" DiskId="1">
            <Environment Id="GFHomeEnv" Name="GF_HOME" Action="create" Part="all" 
                         Permanent="no" Value="[INSTALLDIR]" />
            <File Id="GFEditorBat" Name="jgf.bat" src="jgf.bat" />
            <File Id="GFEditorJar" Name="gf-java.jar" src="JavaGUI/gf-java.jar" />
            <Shortcut Id="GFEditorStartMenu" Directory="GFProgramMenuDir" 
                      Name="GFEditor" LongName="GF Editor" Target="[!GFEditorBat]" 
                      WorkingDirectory="INSTALLDIR" />
          </Component>

          <Directory Id="GFDocDir" Name="doc">
            <Component Id="GFDoc" Guid="23BEEBBF-F9AB-459F-B8D2-8414BB47834A" DiskId="1">
              <File Id="GFReadme" Name="README.txt" src="../README" />
              <File Id="GFLicenee" Name="LICENSE.txt" src="../LICENSE" />
            </Component>
          </Directory>

        </Directory>
      </Directory>

      <Directory Id="ProgramMenuFolder" Name="PMenu" LongName="Programs">
        <Directory Id="GFProgramMenuDir" Name='GF-@PACKAGE_VERSION@' />
      </Directory>

    </Directory>

    <Feature Id="ProductFeature" Title="Feature Title" Level="1">
      <ComponentRef Id="GFBinary" />
      <ComponentRef Id="GFDocBinary" />
      <ComponentRef Id="GFEditor" />
      <ComponentRef Id="GFDoc" />
    </Feature>

  </Product>
</Wix>