Show TOC Start of Content Area

Background documentation Example: Install.xml File  Locate the document in its SAP Library structure

The install.xml file contain instructions on which components of the mobile client should be installed. You can modify this file to remove individual components or adjust installation paths. In an installation archive, the default version of the this file can be found in the folder called deployment.

The following is an example of the install.xml file, in which instructions for installing the patches/ upgrades on the mobile client are provided.

Example of an Install.xml file

<?xml version="1.0" encoding="UTF-8"?>

<ARCHIVE  name="Client Installer Sample Archive" description="This is a sample xml archive for Mobile Client Installer" uimode="full">

<PACKAGE  name="Mobile" description="Client Installer Sample Archive" >

<PREREQ>

    <APPLICATION name="SAMPLE_APPLICATION" version="25" prefixmatch="true" comparator="greater_equal"/>

</PREREQ>

<TASK name="Copy files">

  <!-- Create a backup of MobileEngine.registry file -->

  <COPY sourcelocation="local" source="%MI_HOME%" pattern="settings/MobileEngine.registry" target="%MI_HOME%/backup" mi_running="false"/>

</TASK>

<TASK name="Delete files">

  <!-- Delete temporary tomcat working files -->

  <DELETE targetfolder="%MI_HOME%/work" pattern="**" mi_running="false"/>

</TASK>

<TASK name="Manipulate classpath">

  <!-- Add entry to classpath -->

  <ADD_TO_CLASSPATH classpathentry="%MI_HOME%/lib/MEg.jar" mi_running="whatever"/>

  <!-- Remove entry from classpath -->

  <REMOVE_FROM_CLASSPATH classpathentry="%MI_HOME%/lib/MEg.jar" mi_running="whatever"/>

</TASK>

<TASK name="Execution test">

<!-- Start Internet Explorer and open a html file -->

<EXECUTE description="Start IE" executable="C:\WINDOWS\iexplore.exe" commandline="file://C:\Temp\Home.html" mi_running="false"/>

</TASK>

<TASK name="Manipulate property file">

<!-- Set properties to MobileEngine.config file -->

  <SET_PROPERTIES sourcelocation="local" source="%CI_HOME%/test/miupdate.config" target="%MI_HOME%/settings/MobileEngine.config" mi_running="false"/>

</TASK>

<TASK name="Manipulate archives">

  <!-- Remove German resource bundle from MEg.jar file-->

  <REMOVE_FROM_ARCHIVE targetarchive="%MI_HOME%/lib/MEg.jar" target="com/sap/ip/me/awtapps/home/mobile_engine_de.properties" mi_running="false" />

  <!-- Add MEVersion class to MEg.jar file-->

  <ADD_TO_ARCHIVE sourcelocation="archive" source="/jartest" pattern="me/api/conf/MEVersion.class" targetArchive="%MI_HOME%/lib/MEg.jar" target="com/sap/ip" mi_running="false"/>

</TASK>

</PACKAGE>

</ARCHIVE>

 

End of Content Area