//
// Version Spec
// X.AA.BB 
// AA: Model Version BB: Data file Version 
//
// Installer command file V 2.00.00
//


//////////////////////////////////////////////////////////////////////////////////////////////////////////
//																										//
//												Command Section											//			
//																										//
//////////////////////////////////////////////////////////////////////////////////////////////////////////


//////////////////////////////////////////
// 		Install Start command			//
//////////////////////////////////////////

[INST_STRART_CMD]

[INST_STRART_CMD.END]


//////////////////////////////////////////
//		Install End  command			//
//////////////////////////////////////////
[INST_END_CMD]
CT_ADDREG = ADD_REG.PRINTER119_DELETE_ALL

[INST_END_CMD.END]



//////////////////////////////////////////
// 		Restall Start command			//
//////////////////////////////////////////

[REINST_STRART_CMD]

[REINST_STRART_CMD.END]

//////////////////////////////////////////
// 		Restall End command				//
//////////////////////////////////////////

[REINST_END_CMD]

[REINST_END_CMD.END]



//////////////////////////////////////////
// 		Unstall Start command			//
//////////////////////////////////////////

[UNINST_STRART_CMD]

[UNINST_STRART_CMD.END]

//////////////////////////////////////////
// 		Unstall End command				//
//////////////////////////////////////////

[UNINST_END_CMD]
//CT_DELREG = DEL_REG.VKPRINT
CT_DELREG = DEL_REG.VKPRINT_GDI
CT_DELREG = DEL_REG.VKPRINT_PCL
CT_DELREG = DEL_REG.VKPRINT_PS

[UNINST_END_CMD.END]



//////////////////////////////////////////////////////////////////////
//																	//		
// 							Copy file section						//
//																	//
//////////////////////////////////////////////////////////////////////
[COPY_FILE_INFO]

COPYFILE_DATA
COPYFILE_SETUP
COPYFILE_GDI_ALL
COPYFILE_PCL_ALL
COPYFILE_PS_ALL
COPYFILE_SCAN
COPYFILE_SPANEL
COPYFILE_PSU
COPYFILE_SM
[COPY_FILE_INFO_END]

[COPYFILE_GDI_ALL]
DESCRIPTION = @COMPONENT.PRINTER_GDI@
SOURCE = %GDI_DIR%
DESTINATION = $DEST_DIR$\Install\PRINTER\GDI\$OS_DIR$
COPY_SUBDIR = 1

[COPYFILE_PCL_ALL]
DESCRIPTION = @COMPONENT.PRINTER_PCL@
SOURCE = %PCL_DIR%
DESTINATION = $DEST_DIR$\Install\PRINTER\PCL\$OS_DIR$
COPY_SUBDIR = 1

[COPYFILE_PS_ALL]
DESCRIPTION = @COMPONENT.PRINTER_PS@
SOURCE = %PS_DIR%
DESTINATION = $DEST_DIR$\Install\PRINTER\PS\$OS_DIR$
COPY_SUBDIR = 1

[COPYFILE_SPANEL]
DESCRIPTION = @COMPONENT.SP@
SOURCE = %SPANEL_DIR%
DESTINATION = $DEST_DIR$\Install\Application\SPANEL
COPY_SUBDIR = 1

[COPYFILE_SM]
DESCRIPTION = @COMPONENT.SP@
SOURCE = %SM_DIR%
DESTINATION = $DEST_DIR$\Install\Application\SM
COPY_SUBDIR = 1

[COPYFILE_SCAN]
DESCRIPTION = @COMPONENT.SCANNER@
SOURCE = %SCANNER_DIR%
DESTINATION = $DEST_DIR$\Install\SCANNER\$OS_DIR$
COPY_SUBDIR = 1

[COPYFILE_PSU]
DESCRIPTION = @COMPONENT.PSU@
SOURCE = %PSU_DIR%
DESTINATION = $DEST_DIR$\Install\Application\PSU
COPY_SUBDIR = 1


[COPYFILE_DATA]
DESCRIPTION = @FILE_COPY.INSTALLATION@
SOURCE = $SRC_DIR$\data
DESTINATION = $DEST_DIR$\Install\data
COPY_SUBDIR = 1

[COPYFILE_SETUP]
DESCRIPTION = @FILE_COPY.INSTALLATION@
SOURCE = $SRC_DIR$
DESTINATION = $DEST_DIR$\Install
COPY_SUBDIR = 0






////////////////////////////////////////////////
//
// Shortcut information
//
///////////////////////////////////////////////
[UNINST_SHORTCUT]
NAME = @COMMON.SHORTCUT_MAINT@
GROUP = START
TARGET = $DEST_DIR$\Install\%INSTALLER_FIE%
ARGUMENT = /R
ICON_FILE = $DEST_DIR$\Install\%INSTALLER_FIE%
ICON_INDEX = 0
PERMISSION = 
FOLDER_NAME = @UNINST_SHORTCUT.FOLDER_NAME@
//DESCRIPTION = @UNINST_SHORTCUT.DESC@



/////////////////////////////////////////////////////////////////////
//
// section of Registry to be added 
// 
// RootKey = HKLM,HKCU        Default value is HKLM
// KeyName = Created or existing key name
// Value.VALUE = type,name,data 
// - value name is value name
// - value type is registry type (REG_DWORD, REG_SZ)
// - Value is real value, if REG_DWORD and value is 0x???? ==> it is hexadecimal
//                        if REG_DWORD and Value is ????   ==> it is decimal
//                        if REG_SZ, the value must be bound with quotation mark.
/////////////////////////////////////////////////////////////////////////////////

[ADD_REG.UNINSTKEY]
ROOTKEY = HKLM
KEYNAME = Software\Microsoft\Windows\CurrentVersion\uninstall\%MODEL_NAME%
VALUE = REG_SZ,DisplayName,@REGISTRY.UNINSTALL_NAME@
VALUE = REG_SZ,UninstallString,$DEST_DIR$\Install\%INSTALLER_FIE% /R
VALUE = REG_SZ,DisplayIcon,$DEST_DIR$\Install\%INSTALLER_FIE%
DELETE_KEY = 1
[ADD_REG.UNINSTKEY_END]


[ADD_REG.PRINTER119_DELETE_ALL]
ROOTKEY = HKLM
KEYNAME = Software\%MFG%\%MODEL_NAME%\Installed
VALUE = REG_SZ,Uninstall,"$DEST_DIR$\Install\Setup.exe" /D
[ADD_REG.PRINTER119_DELETE_ALL_END]