Classes

Wix::Extensions::JavaTools Namespace Reference

Classes

class  JavaArchive
class  JavaArchiveFile

Detailed Description

Windows Installer XML Java Tools Extension

This extension significantly simplifies managing JAVA archives in a windows installer.

The java archives belong to a component. A java archive can be extracted or compressed, an optional manifest file specified, etc. The extension attempts to locate jar.exe under JAVA_HOME if JavaArchive.ToolPath is not specified.

The custom action constructs a command line to jar {ctxu}[vfm0Mi] [jar-file] [manifest-file] [-C dir] files ... and executes it.

Example: Adding and Extracting JAR Files
<Wix ... xmlns:AppSecIncJavaTools="http://schemas.appsecinc.com/wix/JavaToolsExtension">
 <Product ...>
   ...
   <Component Id="ProductComponent" Guid="ca70ba08-0c57-4fa2-b6c1-57a00123e391">
     <File Id="JavaToolsMsi_wxs" Name="JavaToolsMsi.wxs" Source="JavaToolsMsi.wxs" />
     <File Id="JavaToolsUI_wxi" Name="JavaToolsUI.wxi" Source="JavaToolsUI.wxi" />
     <File Id="JavaToolsMsiExtract_jar" Name="JavaToolsMsiExtract.jar" Source="Data\\JavaToolsMsi.jar" />
     <AppSecInc:JavaArchive Id="JavaToolsArchiveExtract" Directory="[INSTALLLOCATION]" JarFile="[INSTALLLOCATION]JavaToolsMsiExtract.jar" Operation="xvf">
       <Condition>JAR_EXTRACT = 1</Condition>
     </AppSecInc:JavaArchive>
     <AppSecInc:JavaArchive Id="JavaToolsArchiveCompress" Directory="[INSTALLLOCATION]" JarFile="[INSTALLLOCATION]JavaToolsMsiCompressed.jar" Operation="cvf">
       <AppSecInc:JavaArchiveFile Id="JavaToolsMsiCompress_JavaToolsMsi_wxs" Directory="[INSTALLLOCATION]" File="JavaToolsMsi.wxs">
         JAR_COMPRESS = 1
       </AppSecInc:JavaArchiveFile>
       <AppSecInc:JavaArchiveFile Id="JavaToolsMsiCompress_JavaToolsUI_wxi" Directory="[INSTALLLOCATION]" File="JavaToolsUI.wxi">
         JAR_COMPRESS = 1
       </AppSecInc:JavaArchiveFile>
     </AppSecInc:JavaArchive>           
   </Component>
 </Product>
</Wix>


© Application Security Inc. - All Rights Reserved http://msiext.codeplex.com