Installer

Cmobilecom Installer is a Java swing program and supports silent installation with an answer file. Its installation tasks include From root project directory, run
	gradle assemble 
It will create installer zip archives for different operating systems. The install directory under productRootDir is used to customize installer.

productRootDir/install
	build.properties
	install[_os].properties
	images/logo.png
	       icon.png
	       west.png
	bundle/messages.properties
	       messages_[locale].properties
see Project Build for project directory structure.

build.properties

Define software name and version. For example,

	# build properties
	software.id=0001
	software.name=cmobilecom-af-examples
	software.displayName=Cmobilecom AF Examples
	software.version=1.1.5

install[_os].properties

Override some or all property values in cmobilecomAFDir/installer/installer[_os].properties. For example,
	
	cmobilecom.home=C:/cmobilecom-af-examples
	
	mysql.db.name=cmobilecom_af_examples
	mysql.db.schema.name=cmobilecom_af_examples
	mysql.db.username=cmobilecom
	
	oracle.db.name=XE
	oracle.db.schema.name=cmobilecom_af_examples
	oracle.db.username=cmobilecom_af_examples
Change default installation directory(cmobilecom.home), and default database name, schema, and username for Mysql and Oracle database. To find the properties to override, see cmobilecomAFDir/installer/installer[_os].properties.

UI

Installer UI images, size, font and color can be configured. All images must be under the images directory. The order to search an image by its name without suffix is png, jpg, gif.

The install[_os].properties supports the following properties to configure installer UI size, font and color:

# window width
gui.width=800
# window height
gui.height=600
# west panel width
gui.west.width=200
# west panel background
gui.west.background=0000FF
# west panel image: name without suffix
gui.west.image=foo
# logo max height
gui.logo.height=30
# font name
gui.font.name=Serif
# font size
gui.font.size=18
# window background
gui.background=000000
# window foreground
gui.foreground=F0F0F0
# button background
gui.btn.background=FFFFFF
# button foreground
gui.btn.foreground=000000

Resource Bundle

Localized software name and description that will be displayed by installer. For example,

bundle/messages.properties

	
	# software name
	cmobilecom-af-examples=Cmobilecom AF Examples
	
	# software description
	cmobilecom-af-examples.description=This installer will guide you to install \
	Cmobilecom AF Examples {0}{1} on this computer. Cmobilecom AF will help \
	you develop responsive web applications quickly across all major devices \
	and browsers.
Software name and version are defined in build.properties. The key for description is [software.name].description. {0} will be replaced by software version. {1} is reserved for future use.

Seed

After extracting an installer zip archive, there are seed.xml, system-config.xml and module seed sql files under install/seed directory. The seed sql files of system and website modules are already in the Cmobilecom AF archive, and they do not need to be included under the seed directory.

The seed.xml describes the sql scripts to execute for target database and/or files to copy. For each module in system instance, execute its seed sql files to create tables in database schema. For example,


	<seedSql>examplehr/db/@DBMS_TYPE@/seed.sql</seedSql>
@DBMS_TYPE@ will be replaced by the selected dbms type during installation.