| career | drupal | java | mac | mysql | perl | scala | uml | unix  

Ant example source code file (ant-msi.wxs)

This example Ant source code file (ant-msi.wxs) is included in the "Java Source Code Warehouse" project. The intent of this project is to help you "Learn Java by Example" TM.

Java - Ant tags/keywords

ant, apache, componentref, componentref, directory, diskid, file, file, id, id, license, name, name, vital

The ant-msi.wxs source code

   Licensed to the Apache Software Foundation (ASF) under one or more
   contributor license agreements.  See the NOTICE file distributed with
   this work for additional information regarding copyright ownership.
   The ASF licenses this file to You under the Apache License, Version 2.0
   (the "License"); you may not use this file except in compliance with
   the License.  You may obtain a copy of the License at

   Unless required by applicable law or agreed to in writing, software
   distributed under the License is distributed on an "AS IS" BASIS,
   See the License for the specific language governing permissions and
   limitations under the License.

   WiX File describing the MSI for Ant
   XSD lives at*checkout*/wix/wix2.0/src/wix/Xsd/wix.xsd
<Wix xmlns=''>

  <Product Name="Apache Ant $(var.version)"
    Version="$(var.version)" Language="1033"
    Manufacturer="Apache Software Foundation">

    <Package Id='????????-????-????-????-????????????'
      Keywords='Installer' Languages="1033"
      Description="Apache Ant $(var.version) installer"
      Comments='Apache Ant is a Java based build tool'
      Manufacturer='Apache Software Foundation'

    <Media Id='1' Cabinet='' EmbedCab='yes' />

    <Directory Id='TARGETDIR' Name='SourceDir'>
      <Directory Id='ProgramFilesFolder' Name='PFiles'>
        <Directory Id='ASF' Name='Apache'
          LongName="Apache Software Foundation">
          <Directory Id='INSTALLDIR' Name='Ant'
            LongName='Ant $(var.version)'>

            <Component Id="licenses"
              <File DiskId="1" Id="fetch.xml" Name="fetch.xml"
                Vital="yes" src="$(var.dist.dir)/fetch.xml"/>
              <File DiskId="1" Id="INSTALL" Name="INSTALL"
                Vital="yes" src="$(var.dist.dir)/INSTALL"/>
              <File DiskId="1" Id="KEYS" Name="KEYS"
                Vital="yes" src="$(var.dist.dir)/KEYS"/>
              <File DiskId="1" Id="LICENSE" Name="LICENSE"
                Vital="yes" src="$(var.dist.dir)/LICENSE"/>
              <File DiskId="1" Id="LICENSE.dom" Name="LICENSE.dom"
                Vital="yes" src="$(var.dist.dir)/LICENSE.dom"/>
              <File DiskId="1" Id="LICENSE.sax" Name="LICENSE.sax"
                Vital="yes" src="$(var.dist.dir)/LICENSE.sax"/>
              <File DiskId="1" Id="LICENSE.xer" Name="LICENSE.xer"
                Vital="yes" src="$(var.dist.dir)/LICENSE.xerces"/>
              <File DiskId="1" Id="NOTICE" Name="NOTICE"
                Vital="yes" src="$(var.dist.dir)/NOTICE"/>
              <File DiskId="1" Id="README" Name="README"
                Vital="yes" src="$(var.dist.dir)/README"/>
              <File DiskId="1" Id="WHATSNEW" Name="WHATSNEW"
                Vital="yes" src="$(var.dist.dir)/WHATSNEW"/>

      <Directory Id="ProgramMenuFolder" Name="PMenu" LongName="Programs">
        <Directory Id="ProgramMenuDir" Name='Ant'
          LongName="Apache Ant $(var.version)" />

    <Feature Id="Complete" Level="1">
      <ComponentRef Id="manualIndex"/>
      <ComponentRef Id="licenses"/>
      <ComponentRef Id="component0"/>
      <ComponentRef Id="component1"/>
      <ComponentRef Id="component2"/>
      <ComponentRef Id="component3"/>
      <ComponentRef Id="component4"/>
      <ComponentRef Id="component5"/>
      <ComponentRef Id="component6"/>
      <ComponentRef Id="component7"/>
      <ComponentRef Id="component8"/>
      <ComponentRef Id="component9"/>
      <ComponentRef Id="component86"/>
      <ComponentRef Id="component87"/>
      <ComponentRef Id="component88"/>
      <ComponentRef Id="component89"/>
      <ComponentRef Id="component90"/>
      <ComponentRef Id="component91"/>
      <ComponentRef Id="component92"/>
      <ComponentRef Id="component93"/>
      <ComponentRef Id="component94"/>
      <ComponentRef Id="component95"/>

    <DirectoryRef Id="manual">
      <Component Id="manualIndex"
        <File DiskId="1" Id="antManualIndex"
          Name="INDEX_1.HTM" LongName="index.html"
          Vital="yes" src="$(var.dist.dir)/docs/manual/index.html">
          <Shortcut Id="startmenuAntDocs"
            Directory="ProgramMenuDir" Name="Manual" />


Other Ant examples (source code examples)

Here is a short list of links related to this Ant ant-msi.wxs source code file:

... this post is sponsored by my books ...

#1 New Release!

FP Best Seller


new blog posts


Copyright 1998-2021 Alvin Alexander,
All Rights Reserved.

A percentage of advertising revenue from
pages under the /java/jwarehouse URI on this website is
paid back to open source projects.