All Downloads are FREE. Search and download functionalities are using the official Maven repository.

dib.bidibwizard-spy-installer.2.0.7.source-code.installer.xml Maven / Gradle / Ivy

There is a newer version: 2.0.9
Show newest version
<?xml version="1.0" encoding="UTF-8"?>
<izpack:installation version="5.0" 
    xmlns:izpack="http://izpack.org/schema/installation" 
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
    xsi:schemaLocation="http://izpack.org/schema/installation http://izpack.org/schema/5.0/izpack-installation-5.0.xsd">
    
    <info>
        <appname>@{projectname}</appname>
        <appversion>@{projectversion}</appversion>
        <appsubpath>@{projectname}-@{projectversion}</appsubpath>
        <authors>
            <author email="[email protected]" name="Andreas Kuhtz"/>
            <author email="[email protected]" name="André Schenk"/>
        </authors>
        <!-- use at least java 11 -->
        <javaversion>11</javaversion>
        <requiresjdk>no</requiresjdk>
        <summarylogfilepath>$INSTALL_PATH/installinfo/Summary.htm</summarylogfilepath>
        
        <run-privileged condition="izpack.windowsinstall.vista|izpack.windowsinstall.7|izpack.windowsinstall.8|izpack.windowsinstall.10" />
    </info>
    <guiprefs height="480" resizable="no" width="600">
        <!-- Show the splashScreen -->
        <modifier key="useSplashScreen" value="3000"/>   
        
        <modifier key="useHeadingPanel" value="yes"/>
        <modifier key="useHeadingForSummary" value="yes"/>
        <modifier key="headingImageOnLeft" value="yes"/>
        <modifier key="headingLineCount" value="2"/>
        <modifier key="headingFontSize" value="1.5"/>
        <modifier key="headingBackgroundColor" value="0x00ffffff"/>
        <modifier key="headingPanelCounter" value="text"/>
        <modifier key="headingPanelCounterPos" value="inHeading"/>
    </guiprefs>
    <locale>
        <langpack iso3="deu" />
        <langpack iso3="eng" />
        <langpack iso3="nld" />
    </locale>
    <resources>
        <!--Define the splash screen image as a reading just like a heading image -->
        <res id="Splash.image" src="images/BiDiBWizardSplash.png"/>
        
        <res id="installer.langsel.img" src="images/BiDiBWizardSplash.png"/>
        
        <!-- <res id="JFrameIcon.png" src="icons/wizardframe.png"/> -->
        <res id="JFrameIcon.png" src="icons/wizard-logo2-48x48.png"/>
        <res id="customicons.xml" src="customicons.xml" />
        
        <res id="packsLang.xml_deu" src="i18n/packsLang.xml_deu"/>
        <res id="packsLang.xml_eng" src="i18n/packsLang.xml_eng"/>
        <res id="shortcutSpec.xml" src="windows_shortcut_specification.xml"/>
        <res id="Unix_shortcutSpec.xml" src="unix_shortcut_specification.xml"/>
        <res id="HTMLLicencePanel.licence" src="gpl-3.0-standalone.html"/>
        <res id="UninstallerIcon" src="icons/wizard-logo2-34x34.ico"/>
    </resources>
	
	<dynamicvariables>
		<variable name="java_version" checkonce="true"
				value="${SYSTEM[java.version]}">
			<filters>
				<regex regexp="^(\d+)([\d\._]+)?" select="\1"/>
			</filters>
		</variable>
		
		<variable name="ADD_JVM_ARGS" checkonce="true" value="-Xms604M " condition="!isJavaVersion11Plus" />
		<variable name="ADD_JVM_ARGS" checkonce="true" value="-Xms604M --add-opens=java.base/java.lang=ALL-UNNAMED --add-exports java.desktop/com.sun.java.swing.plaf.windows=ALL-UNNAMED --add-opens java.desktop/javax.swing=ALL-UNNAMED --add-opens java.desktop/com.sun.java.swing.plaf.windows=ALL-UNNAMED" condition="onwindows-java11plus" />
		
		<variable name="ADD_JVM_ARGS" checkonce="true" value="-Xms604M --add-opens=java.base/java.lang=ALL-UNNAMED --add-exports java.desktop/javax.swing.plaf.synth=ALL-UNNAMED --add-opens java.desktop/javax.swing=ALL-UNNAMED --add-opens java.desktop/javax.swing.plaf.synth=ALL-UNNAMED" condition="onlinux-java11plus" /> 
		
	</dynamicvariables>	
    
	<conditions>
		<condition type="java" id="installonwindows">
			<java>
				<class>com.izforge.izpack.util.OsVersion</class>
				<field>IS_WINDOWS</field>
			</java>
			<returnvalue type="boolean">true</returnvalue>
		</condition>
		<condition type="java" id="installonlinux">
			<java>
				<class>com.izforge.izpack.util.OsVersion</class>
				<field>IS_LINUX</field>
			</java>
			<returnvalue type="boolean">true</returnvalue>
		</condition>
		<condition type="or" id="onwindows-onlinux">
			<condition type="ref" refid="installonlinux"/>
			<condition type="ref" refid="installonwindows" />
		</condition>
		
		<condition type="comparenumerics" id="isJavaVersion11Plus">
			<arg1>${java_version}</arg1>
			<arg2>11</arg2>
			<operator>geq</operator>
		</condition>
		
		<condition type="and" id="onwindows-java11plus">
			<condition type="ref" refid="installonwindows"/>
			<condition type="ref" refid="isJavaVersion11Plus" />
		</condition>
		<condition type="and" id="onlinux-java11plus">
			<condition type="ref" refid="installonlinux"/>
			<condition type="ref" refid="isJavaVersion11Plus" />
		</condition>

	</conditions>
	
    <variables>
        <variable name="executable-jar" value="bidibwizard-spy"/>
        <!-- Don't show warning in TargetPanel that directory doesn't exist. -->
        <variable name="ShowCreateDirectoryMessage" value="false"/>

        <variable name="DesktopShortcutCheckboxEnabled" value="true"/>
        <variable name="ApplicationShortcutPath" value="ApplicationShortcuts"/>
    </variables>
    
    <panels>
        <panel classname="HelloPanel"/>
        <panel classname="HTMLLicencePanel"/>
        <!--panel classname="TargetPanel"/-->
        <panel classname="com.izforge.izpack.panels.target.MyTargetPanel"/>
        <panel classname="PacksPanel"/>
        <panel classname="SummaryPanel"/>
        <panel classname="InstallPanel"/>
        <!-- don't show shortcut panel on mac -->
        <panel classname="ShortcutPanel" id="shortcutpanel" condition="!izpack.macinstall.osx" />
        <panel classname="SimpleFinishPanel"/>
    </panels>
    <jar src="lib/bidibwizard-installer-panel-@{projectversion}.jar"/>
    <listeners>
        <listener classname="SummaryLoggerInstallerListener" stage="install">
        </listener>
        <listener classname="RegistryInstallerListener" stage="install">
            <os family="windows"/>
        </listener>
        <listener classname="RegistryUninstallerListener" stage="uninstall">
            <os family="windows"/>
        </listener>
    </listeners>
    <packs>
        <pack id="main" name="@{projectname}" required="yes">
            <description>The BiDiB Wizard Spy files.</description>
            <file src="@{projectartifact}-@{projectversion}.jar" override="true" targetdir="$INSTALL_PATH" />
            
            <file src="BiDiB-Wizard2-Spy.exe" override="true" targetdir="$INSTALL_PATH">
                <os family="windows"/>
            </file>
            <file src="BiDiB-Wizard2-Spy.l4j.ini" override="true" targetdir="$INSTALL_PATH">
                <os family="windows"/>
            </file>
            <parsable targetfile="$INSTALL_PATH/BiDiB-Wizard2-Spy.l4j.ini">
                <os family="windows"/>
            </parsable>
			
            <fileset dir="lib" override="true" targetdir="$INSTALL_PATH/lib" >
				<os family="linux"/>
				<os family="windows"/>
                <include name="*.jar"/>
            </fileset>

            <fileset dir="icons" override="true" targetdir="$INSTALL_PATH/icons" />

            <!-- linux start script -->
            <file src="@{projectname}2" override="true" targetdir="$INSTALL_PATH" />
            
            <executable keep="true" stage="never" targetfile="$INSTALL_PATH/@{projectname}2" >
                <os family="unix" />
            </executable>
            <parsable targetfile="$INSTALL_PATH/@{projectname}2">
                <os family="unix"/>
            </parsable>
            
            <!-- Create an Application icon on Mac OS X -->
            <fileset targetdir="${INSTALL_PATH}/../" dir="files/bidib_wizard_app" override="true">
                <os name="Mac OS X"/>
                <include name="Contents/"/>
            </fileset>

            <file src="images/BiDiBWizardSplash.png" targetdir="${INSTALL_PATH}/Resources/icons" override="true">
                <os name="Mac OS X"/>
            </file>
            <fileset dir="lib" override="true" targetdir="$INSTALL_PATH/Java/classpath" >
				<os family="Mac OS X"/>
                <include name="*.jar"/>
            </fileset>
            <file src="@{projectartifact}-@{projectversion}.jar" override="true" targetdir="$INSTALL_PATH/Java/classpath" >
				<os family="Mac OS X"/>
			</file>
			
            <parsable targetfile="${INSTALL_PATH}/Info.plist">
                <os name="Mac OS X"/>
            </parsable>
            <executable targetfile="${INSTALL_PATH}/MacOS/JavaLauncher" stage="never">
                <os name="Mac OS X"/>
            </executable>
            <executable targetfile="/usr/bin/touch" stage="postinstall">
                <os name="Mac OS X"/>
                <args><arg value="${INSTALL_PATH}/../"/></args>
            </executable>
        </pack>
    </packs>
    <natives>
        <native type="izpack" name="ShellLink.dll"/>
        <native type="izpack" name="ShellLink_x64.dll"/>
        <native type="izpack" name="WinSetupAPI.dll" uninstaller="true"/>
        <native type="izpack" name="WinSetupAPI_x64.dll" uninstaller="true"/>
        <native type="3rdparty" name="COIOSHelper.dll" uninstaller="true"/>
        <native type="3rdparty" name="COIOSHelper_x64.dll" uninstaller="true"/>
    </natives>
</izpack:installation>




© 2015 - 2024 Weber Informatics LLC | Privacy Policy