[Components]
App4R

[Defines]
CUR_VERSION=1.0
USER=AllUsers
APPFOLDER_NAME=%AppFolder%
ModelName=%ModelName%
ModelCode=%ModelCode%
SOURCE_DIR=$CD_ROOT_DIR$\$APPFOLDER_NAME$\App4R
FOLDER_NAME=$OEM$ $ModelName$
INSTALL_DIR=$PROGRAMFILES_DIR$\$FOLDER_NAME$
INSTALL_DIR64=$PROGRAMFILES_DIR$ (x86)\$FOLDER_NAME$
App4R_ProgramShortCut=%COMPONENTS.App4R%
8CLANG=%LANG%
ISOLANG=%ISO_LANG%
MSLANGUAGE=%MSLANG%
USER=AllUsers
DOTNET_LANG_PARM="/q:a /c:"install /q""
DOTNET_LANGPACK_PARM=/c:"install /q"
DOTNETSP1_LANG_PARM=/q
DOTNET_INSTALL_REG=<ReadReg,HKLM,Software\Microsoft\NET Framework Setup\NDP\v1.1.4322,sp>
DOTNET_INSTALL=<SetLabel,$DOTNET_INSTALL_REG$,EQ:NUM,0>
INIT_PARM=-install
REG_RUN = Microsoft\Windows\CurrentVersion\Run
DRIVER_PATH=$CD_ROOT_DIR$\%WARSAW_PATH%
COMM_PATH=$CD_ROOT_DIR$\%WARSAW_COMM%
APP4R_REG_EXIST=<ExistReg,HKLM,Software\$OEM$InkJet\CustomInstall,$OEM$ $ModelName$ APP4R Install>
APP4R_EXISTREG_LABEL=<SetLabel,$APP4R_REG_EXIST$,EQ,FALSE>
APP4R_INSTALL_REG=<ReadReg,HKLM,Software\$OEM$InkJet\CustomInstall,$OEM$ $ModelName$ APP4RInstall>
APP4R_INSTALL=<SetLabel,$APP4R_INSTALL_REG$,NE:NUM,0>
AIOC_SOURCE_DIR=$CD_ROOT_DIR$\$APPFOLDER_NAME$\AIOC
DOTNET20_REG_EXIST=<ExistReg,HKLM,SOFTWARE\Microsoft\NET Framework Setup\NDP\v2.0.50727,Install>
DOTNET20_EXISTREG_LABEL=<SetLabel,$DOTNET20_REG_EXIST$,EQ,FALSE>
DOTNET20_INSTALL_REG=<ReadReg,HKLM,SOFTWARE\Microsoft\NET Framework Setup\NDP\v2.0.50727,Install>
DOTNET20_INSTALL=<SetLabel,$DOTNET20_INSTALL_REG$,NE:NUM,1>
IS_PTBR=<SetLabel,$OS_ISOLANG$,eq,pt_br>
IS_PTPT=<SetLabel,$OS_ISOLANG$,eq,pt_pt>
IS_ZHCHT=<SetLabel,$OS_ISOLANG$,eq,zh_cht>
IS_ZHHK=<SetLabel,$OS_ISOLANG$,eq,zh_hk>
NOT_ZHCHT=<SetLabel,$OS_ISOLANG$,ne,zh_cht>
NOT_ZHHK=<SetLabel,$OS_ISOLANG$,ne,zh_hk>
IS_NO_CL=<SetLabel,$LANGUAGE$,eq,no>
IS_ZH_CL=<SetLabel,$LANGUAGE$,eq,zh>
IS_ZHTW_CL=<SetLabel,$LANGUAGE$,eq,zh_tw>


#Registries to be set as requested by App4R team
REG_STR_ACTION=%App4R.RegistryAction%
REG_STR_PROVIDER=%App4R.RegistryProvider%
REG_APP=%ModelCode%amon.exe
REG_ID_DEVICE=%DeviceRegID%
REG_ID_CLSID={4D36E979-E325-11CE-BFC1-08002BE10318}
REG_F_SHOWPIC=Microsoft\Windows\CurrentVersion\Explorer\AutoPlayHandlers\EventHandlers\ShowPicturesOnArrival
REG_F_HANDLER=Microsoft\Windows\CurrentVersion\Explorer\AutoPlayHandlers\Handlers\$REG_ID_DEVICE$
REG_F_CANCELAUTO=Microsoft\Windows\CurrentVersion\Explorer\AutoplayHandlers\CancelAutoplay\CLSID
REG_F_COMMAND=$REG_ID_DEVICE$\Shell\Open\Command
REG_F_DROPTARGET=$REG_ID_DEVICE$\Shell\Play\DropTarget
REG_F_SERVER=CLSID\$REG_ID_CLSID$\LocalServer32


[App4R]
Platform=2K_VISTA
OEMCommon=FALSE
RequireS=LeadTool
Version=$CUR_VERSION$
SourceLocation=$SOURCE_DIR$
DiskSpace=100,10

[App4R_PreInstall]
[$App4R_INSTALL$,$App4R_EXISTREG_LABEL$]RunProgram,$INSTALL_DIR$\$ModelCode$mon.exe,TRUE,100,-u
[$App4R_INSTALL$,$App4R_EXISTREG_LABEL$]RunProgram,$INSTALL_DIR$\$ModelCode$amon.exe,TRUE,100,-unregister

[App4R_PreInstall_64]
[$App4R_INSTALL$,$App4R_EXISTREG_LABEL$]RunProgram,$INSTALL_DIR64$\$ModelCode$mon.exe,TRUE,100,-u
[$App4R_INSTALL$,$App4R_EXISTREG_LABEL$]RunProgram,$INSTALL_DIR64$\$ModelCode$amon.exe,TRUE,100,-unregister

[App4R_Actions]
[2K]MsiPackage,$CD_ROOT_DIR$\Fax\instmsiW.exe,$CD_ROOT_DIR$\Fax\FxRedist.msi
GotoSection,GRID_SUPPORT_NT
[$App4R_INSTALL$,$App4R_EXISTREG_LABEL$]GotoSection,InitialSShowCopy
[$App4R_INSTALL$,$App4R_EXISTREG_LABEL$]GotoSection,DoubleCheckSShowCopy

#Install .net Framework
[$DOTNET20_INSTALL$,$DOTNET20_EXISTREG_LABEL$]RunProgram,$SOURCE_DIR$\tools\dotnetfx.exe,TRUE,100,$DOTNET_LANG_PARM$
PostMessage,log,DotNet installer, done
PostMessage,log,MS languager, $MSLANGUAGE$
[XP]RunProgram,$SOURCE_DIR$\tools\langpacks\$MSLANGUAGE$\langpack.exe,TRUE,200,$DOTNET_LANGPACK_PARM$
PostMessage,log,DotNet lang pack, done

#extra actions from AIOC.cif 
[2K]File,Copy,$SOURCE_DIR$\msvcr71.dl*,$SYSTEM_DIR$\,,NotLogIt
[$App4R_INSTALL$,$App4R_EXISTREG_LABEL$]File,Copy,$AIOC_SOURCE_DIR$\mfc42.*,$INSTALL_DIR$\
[$App4R_INSTALL$,$App4R_EXISTREG_LABEL$]File,Copy,$AIOC_SOURCE_DIR$\$ModelCode$gf.*,$INSTALL_DIR$\
[$App4R_INSTALL$,$App4R_EXISTREG_LABEL$]File,Copy,$AIOC_SOURCE_DIR$\$ModelCode$rpt.*,$INSTALL_DIR$\
[$App4R_INSTALL$,$App4R_EXISTREG_LABEL$]File,Copy,$AIOC_SOURCE_DIR$\$ModelCode$util.*,$INSTALL_DIR$\
[$App4R_INSTALL$,$App4R_EXISTREG_LABEL$]File,Copy,$AIOC_SOURCE_DIR$\$8CLANG$\*jswr.*,$INSTALL_DIR$\
[$App4R_INSTALL$,$App4R_EXISTREG_LABEL$]File,Copy,$AIOC_SOURCE_DIR$\$8CLANG$\$ModelCode$grd.*,$INSTALL_DIR$\
[$App4R_INSTALL$,$App4R_EXISTREG_LABEL$]File,Copy,$AIOC_SOURCE_DIR$\$8CLANG$\*monr.*,$INSTALL_DIR$\
[$App4R_INSTALL$,$App4R_EXISTREG_LABEL$]File,Copy,$AIOC_SOURCE_DIR$\$8CLANG$\*slng.nls,$INSTALL_DIR$\
[$App4R_INSTALL$,$App4R_EXISTREG_LABEL$]RegistryEntry,Add,HKLM,Software\$OEM$\$ModelName$\App4R,FaxDriver,STR,CAPTURE FAX
[$App4R_INSTALL$,$App4R_EXISTREG_LABEL$]RegistryEntry,Add,HKLM,Software\Microsoft\Windows\CurrentVersion\Run,$ModelCode$mon.exe,STR,""$INSTALL_DIR$\$ModelCode$mon.exe""
[$App4R_INSTALL$,$App4R_EXISTREG_LABEL$]RegistryEntry,Add,HKLM,Software\$REG_RUN$,$ModelCode$amon,STR,""$INSTALL_DIR$\$ModelCode$amon.exe""

# LJD - added the following lines to copy Scan Core, CATS, LCS and PDFLIB
[$App4R_INSTALL$,$App4R_EXISTREG_LABEL$]File,Copy,$CD_ROOT_DIR$\$APPFOLDER_NAME$\AIOC\$ModelCode$caps.*,$INSTALL_DIR$\
[$App4R_INSTALL$,$App4R_EXISTREG_LABEL$]File,Copy,$CD_ROOT_DIR$\$APPFOLDER_NAME$\AIOC\$ModelCode$cfg.*,$INSTALL_DIR$\
[$App4R_INSTALL$,$App4R_EXISTREG_LABEL$]File,Copy,$CD_ROOT_DIR$\$APPFOLDER_NAME$\AIOC\$ModelCode$cnv4.*,$INSTALL_DIR$\
[$App4R_INSTALL$,$App4R_EXISTREG_LABEL$]File,Copy,$CD_ROOT_DIR$\$APPFOLDER_NAME$\AIOC\$ModelCode$com*.*,$INSTALL_DIR$\
[$App4R_INSTALL$,$App4R_EXISTREG_LABEL$]File,Copy,$CD_ROOT_DIR$\$APPFOLDER_NAME$\AIOC\$ModelCode$dds.*,$INSTALL_DIR$\
[$App4R_INSTALL$,$App4R_EXISTREG_LABEL$]File,Copy,$CD_ROOT_DIR$\$APPFOLDER_NAME$\AIOC\$ModelCode$drec.*,$INSTALL_DIR$\
[$App4R_INSTALL$,$App4R_EXISTREG_LABEL$]File,Copy,$CD_ROOT_DIR$\$APPFOLDER_NAME$\AIOC\$ModelCode$drs.*,$INSTALL_DIR$\
[$App4R_INSTALL$,$App4R_EXISTREG_LABEL$]File,Copy,$CD_ROOT_DIR$\$APPFOLDER_NAME$\AIOC\$ModelCode$mon.*,$INSTALL_DIR$\
[$App4R_INSTALL$,$App4R_EXISTREG_LABEL$]File,Copy,$CD_ROOT_DIR$\$APPFOLDER_NAME$\AIOC\$ModelCode$pplc.*,$INSTALL_DIR$\
[$App4R_INSTALL$,$App4R_EXISTREG_LABEL$]File,Copy,$CD_ROOT_DIR$\$APPFOLDER_NAME$\AIOC\$ModelCode$prox.*,$INSTALL_DIR$\
[$App4R_INSTALL$,$App4R_EXISTREG_LABEL$]File,Copy,$CD_ROOT_DIR$\$APPFOLDER_NAME$\AIOC\$ModelCode$scw.*,$INSTALL_DIR$\
[$App4R_INSTALL$,$App4R_EXISTREG_LABEL$]File,Copy,$CD_ROOT_DIR$\$APPFOLDER_NAME$\AIOC\$ModelCode$tsfw.*,$INSTALL_DIR$\
[$App4R_INSTALL$,$App4R_EXISTREG_LABEL$]File,Copy,$CD_ROOT_DIR$\$APPFOLDER_NAME$\AIOC\pdflib.*,$INSTALL_DIR$\
[$App4R_INSTALL$,$App4R_EXISTREG_LABEL$]File,Copy,$CD_ROOT_DIR$\$APPFOLDER_NAME$\AIOC\scancore.*,$INSTALL_DIR$\
# End of LJD additions

#Install TWAIN component
[$App4R_INSTALL$,$App4R_EXISTREG_LABEL$]File,Copy,$CD_ROOT_DIR$\$APPFOLDER_NAME$\AIOC\$ModelCode$ac*.*,$INSTALL_DIR$\
[$App4R_INSTALL$,$App4R_EXISTREG_LABEL$]File,Copy,$CD_ROOT_DIR$\$APPFOLDER_NAME$\AIOC\$ModelCode$at*.*,$INSTALL_DIR$\
[$App4R_INSTALL$,$App4R_EXISTREG_LABEL$]File,Copy,$CD_ROOT_DIR$\$APPFOLDER_NAME$\AIOC\$ModelCode$afcn.*,$INSTALL_DIR$\
[$App4R_INSTALL$,$App4R_EXISTREG_LABEL$]File,Copy,$CD_ROOT_DIR$\$APPFOLDER_NAME$\AIOC\$ModelCode$autl.*,$INSTALL_DIR$\
[$App4R_INSTALL$,$App4R_EXISTREG_LABEL$]File,Copy,$CD_ROOT_DIR$\$APPFOLDER_NAME$\AIOC\$ModelCode$bmp.*,$INSTALL_DIR$\
[$App4R_INSTALL$,$App4R_EXISTREG_LABEL$]File,Copy,$CD_ROOT_DIR$\$APPFOLDER_NAME$\AIOC\lexocr.*,$INSTALL_DIR$\
[$App4R_INSTALL$,$App4R_EXISTREG_LABEL$]File,Copy,$CD_ROOT_DIR$\$APPFOLDER_NAME$\AIOC\*71.*,$INSTALL_DIR$\
[$App4R_INSTALL$,$App4R_EXISTREG_LABEL$]File,Copy,$CD_ROOT_DIR$\$APPFOLDER_NAME$\AIOC\$8CLANG$\$ModelCode$at*.*,$INSTALL_DIR$\
[$App4R_INSTALL$,$App4R_EXISTREG_LABEL$]File,Copy,$CD_ROOT_DIR$\$APPFOLDER_NAME$\AIOC\$8CLANG$\$ModelCode$actr.*,$INSTALL_DIR$\
[$App4R_INSTALL$,$App4R_EXISTREG_LABEL$]File,Copy,$CD_ROOT_DIR$\$APPFOLDER_NAME$\AIOC\$8CLANG$\$ModelCode$atwr.*,$INSTALL_DIR$\

#Install 4Runner application
[$App4R_INSTALL$,$App4R_EXISTREG_LABEL$]File,Copy,$SOURCE_DIR$\*.*,$INSTALL_DIR$\
[$App4R_INSTALL$,$App4R_EXISTREG_LABEL$]File,CopyRecursive,$SOURCE_DIR$\Scripts\*,$INSTALL_DIR$\Scripts\
[$App4R_INSTALL$,$App4R_EXISTREG_LABEL$]File,CopyRecursive,$SOURCE_DIR$\PhotoCards\*,$INSTALL_DIR$\PhotoCards\
[$App4R_INSTALL$,$App4R_EXISTREG_LABEL$]File,Copy,$SOURCE_DIR$\Sshow\$LANGUAGE$\*,$INSTALL_DIR$\Sshow\
[$App4R_INSTALL$,$App4R_EXISTREG_LABEL$]Shortcut,Add,Startmenu\$FOLDER_NAME$,$USER$,$INSTALL_DIR$\App4R.exe,$App4R_ProgramShortCut$
#[$App4R_INSTALL$,$App4R_EXISTREG_LABEL$]Shortcut,Add,DESKTOP,$USER$,$INSTALL_DIR$\App4R.exe,$App4R_ProgramShortCut$,

[App4R_PostInstall]
GotoSection,App4R_RegWrite_32
[XPSP2,2K3SP1,VISTA]RunProgram,$SYSTEM_DIR$\netsh.exe,TRUE,100,firewall add allowedprogram "$INSTALL_DIR$\$ModelCode$amon.exe" "$OEM$ Device Monitor"
[XPSP2,2K3SP1,VISTA]RunProgram,$SYSTEM_DIR$\netsh.exe,TRUE,100,firewall add allowedprogram "$INSTALL_DIR$\app4r.exe" "$OEM$ Imaging Studio"
RegistryEntry,Delete,HKLM,Software\$OEM$InkJet\CustomInstall,$OEM$ $ModelName$ App4R Install
RunProgram,$INSTALL_DIR$\app4r.exe,FALSE,100, $INIT_PARM$
#RunProgram,$INSTALL_DIR$\$ModelCode$amon.exe,FALSE,100, -register
#RunProgram,$INSTALL_DIR$\$ModelCode$mon.exe,FALSE,100,

[App4R_RegWrite_32]
RegistryEntry,Add,HKLM,Software\$REG_F_SHOWPIC$,$REG_ID_DEVICE$,STR,""
RegistryEntry,Add,HKLM,Software\$REG_F_HANDLER$,Action,STR,$REG_STR_ACTION$
RegistryEntry,Add,HKLM,Software\$REG_F_HANDLER$,DefaultIcon,STR,"$INSTALL_DIR$\$ModelCode$amon.exe"
RegistryEntry,Add,HKLM,Software\$REG_F_HANDLER$,InvokeProgID,STR,$REG_ID_DEVICE$
RegistryEntry,Add,HKLM,Software\$REG_F_HANDLER$,InvokeVerb,STR,"Play"
RegistryEntry,Add,HKLM,Software\$REG_F_HANDLER$,Provider,STR,$REG_STR_PROVIDER$
RegistryEntry,Add,HKLM,Software\$REG_F_CANCELAUTO$,DDEFE873-6997-4e68-BE26-38B633ADBE12,STR,"" 
RegistryEntry,Add,HKCR,$REG_F_COMMAND$,"",STR,"$INSTALL_DIR$\$ModelCode$amon.exe"
RegistryEntry,Add,HKCR,$REG_F_DROPTARGET$,CLSID,STR,$REG_ID_CLSID$
RegistryEntry,Add,HKCR,$REG_F_SERVER$,"",STR,"$INSTALL_DIR$\$ModelCode$amon.exe"


######Start 64bit Section################
#Add 64 section if the component is not 64bit application
[App4R_Actions_64]
GotoSection,GRID_SUPPORT_NT
[$App4R_INSTALL$,$App4R_EXISTREG_LABEL$]GotoSection,InitialSShowCopy_64
[$App4R_INSTALL$,$App4R_EXISTREG_LABEL$]GotoSection,DoubleCheckSShowCopy_64

#extra actions from AIOC.cif 
[$App4R_INSTALL$,$App4R_EXISTREG_LABEL$]File,Copy,$AIOC_SOURCE_DIR$\mfc42.*,$INSTALL_DIR64$\
[$App4R_INSTALL$,$App4R_EXISTREG_LABEL$]File,Copy,$AIOC_SOURCE_DIR$\$ModelCode$gf.*,$INSTALL_DIR64$\
[$App4R_INSTALL$,$App4R_EXISTREG_LABEL$]File,Copy,$AIOC_SOURCE_DIR$\$ModelCode$rpt.*,$INSTALL_DIR64$\
[$App4R_INSTALL$,$App4R_EXISTREG_LABEL$]File,Copy,$AIOC_SOURCE_DIR$\$ModelCode$util.*,$INSTALL_DIR64$\
[$App4R_INSTALL$,$App4R_EXISTREG_LABEL$]File,Copy,$AIOC_SOURCE_DIR$\$8CLANG$\$ModelCode$grd.*,$INSTALL_DIR64$\
[$App4R_INSTALL$,$App4R_EXISTREG_LABEL$]File,Copy,$AIOC_SOURCE_DIR$\$8CLANG$\*jswr.*,$INSTALL_DIR64$\
[$App4R_INSTALL$,$App4R_EXISTREG_LABEL$]File,Copy,$AIOC_SOURCE_DIR$\$8CLANG$\*monr.*,$INSTALL_DIR64$\
[$App4R_INSTALL$,$App4R_EXISTREG_LABEL$]File,Copy,$AIOC_SOURCE_DIR$\$8CLANG$\*slng.nls,$INSTALL_DIR64$\
[$App4R_INSTALL$,$App4R_EXISTREG_LABEL$]RegistryEntry,Add,HKLM,Software\$OEM$\$ModelName$\App4R,FaxDriver,STR,CAPTURE FAX
[$App4R_INSTALL$,$App4R_EXISTREG_LABEL$]RegistryEntry,Add,HKLM,Software\Microsoft\Windows\CurrentVersion\Run,$ModelCode$mon.exe,STR,""$INSTALL_DIR64$\$ModelCode$mon.exe""
[$App4R_INSTALL$,$App4R_EXISTREG_LABEL$]RegistryEntry,Add,HKLM,Software\$REG_RUN$,$ModelCode$amon,STR,""$INSTALL_DIR64$\$ModelCode$amon.exe""

# 32Bit CATS files need to be copied in $INSTALL_DIR64$.
File,Copy,$DRIVER_PATH$\$ModelCode$retv.dl_,$INSTALL_DIR64$\
File,Copy,$DRIVER_PATH$\$ModelCode$serv.ex_,$INSTALL_DIR64$\
File,Copy,$DRIVER_PATH$\$ModelCode$time.dl_,$INSTALL_DIR64$\
File,Copy,$DRIVER_PATH$\$ModelCode$time.ex_,$INSTALL_DIR64$\
File,Copy,$DRIVER_PATH$\$ModelCode$uldr.dl_,$INSTALL_DIR64$\
File,Copy,$DRIVER_PATH$\$ModelCode$upld.ex_,$INSTALL_DIR64$\
File,Copy,$DRIVER_PATH$\$ModelCode$view.ex_,$INSTALL_DIR64$\

# LJD - added the following lines to copy Scan Core, CATS, LCS and PDFLIB
[$App4R_INSTALL$,$App4R_EXISTREG_LABEL$]File,Copy,$CD_ROOT_DIR$\$APPFOLDER_NAME$\AIOC\$ModelCode$caps.*,$INSTALL_DIR64$\
[$App4R_INSTALL$,$App4R_EXISTREG_LABEL$]File,Copy,$CD_ROOT_DIR$\$APPFOLDER_NAME$\AIOC\$ModelCode$cfg.*,$INSTALL_DIR64$\
[$App4R_INSTALL$,$App4R_EXISTREG_LABEL$]File,Copy,$CD_ROOT_DIR$\$APPFOLDER_NAME$\AIOC\$ModelCode$cnv4.*,$INSTALL_DIR64$\
[$App4R_INSTALL$,$App4R_EXISTREG_LABEL$]File,Copy,$CD_ROOT_DIR$\$APPFOLDER_NAME$\AIOC\$ModelCode$com*.*,$INSTALL_DIR64$\
[$App4R_INSTALL$,$App4R_EXISTREG_LABEL$]File,Copy,$CD_ROOT_DIR$\$APPFOLDER_NAME$\AIOC\$ModelCode$dds.*,$INSTALL_DIR64$\
[$App4R_INSTALL$,$App4R_EXISTREG_LABEL$]File,Copy,$CD_ROOT_DIR$\$APPFOLDER_NAME$\AIOC\$ModelCode$drec.*,$INSTALL_DIR64$\
[$App4R_INSTALL$,$App4R_EXISTREG_LABEL$]File,Copy,$CD_ROOT_DIR$\$APPFOLDER_NAME$\AIOC\$ModelCode$drs.*,$INSTALL_DIR64$\
[$App4R_INSTALL$,$App4R_EXISTREG_LABEL$]File,Copy,$CD_ROOT_DIR$\$APPFOLDER_NAME$\AIOC\$ModelCode$mon.*,$INSTALL_DIR64$\
[$App4R_INSTALL$,$App4R_EXISTREG_LABEL$]File,Copy,$CD_ROOT_DIR$\$APPFOLDER_NAME$\AIOC\$ModelCode$pplc.*,$INSTALL_DIR64$\
[$App4R_INSTALL$,$App4R_EXISTREG_LABEL$]File,Copy,$CD_ROOT_DIR$\$APPFOLDER_NAME$\AIOC\$ModelCode$prox.*,$INSTALL_DIR64$\
[$App4R_INSTALL$,$App4R_EXISTREG_LABEL$]File,Copy,$CD_ROOT_DIR$\$APPFOLDER_NAME$\AIOC\$ModelCode$scw.*,$INSTALL_DIR64$\
[$App4R_INSTALL$,$App4R_EXISTREG_LABEL$]File,Copy,$CD_ROOT_DIR$\$APPFOLDER_NAME$\AIOC\$ModelCode$tsfw.*,$INSTALL_DIR64$\
[$App4R_INSTALL$,$App4R_EXISTREG_LABEL$]File,Copy,$CD_ROOT_DIR$\$APPFOLDER_NAME$\AIOC\pdflib.*,$INSTALL_DIR64$\
[$App4R_INSTALL$,$App4R_EXISTREG_LABEL$]File,Copy,$CD_ROOT_DIR$\$APPFOLDER_NAME$\AIOC\scancore.*,$INSTALL_DIR64$\
# End of LJD additions

#Install TWAIN component
[$App4R_INSTALL$,$App4R_EXISTREG_LABEL$]File,Copy,$CD_ROOT_DIR$\$APPFOLDER_NAME$\AIOC\$ModelCode$ac*.*,$INSTALL_DIR64$\
[$App4R_INSTALL$,$App4R_EXISTREG_LABEL$]File,Copy,$CD_ROOT_DIR$\$APPFOLDER_NAME$\AIOC\$ModelCode$at*.*,$INSTALL_DIR64$\
[$App4R_INSTALL$,$App4R_EXISTREG_LABEL$]File,Copy,$CD_ROOT_DIR$\$APPFOLDER_NAME$\AIOC\$ModelCode$afcn.*,$INSTALL_DIR64$\
[$App4R_INSTALL$,$App4R_EXISTREG_LABEL$]File,Copy,$CD_ROOT_DIR$\$APPFOLDER_NAME$\AIOC\$ModelCode$autl.*,$INSTALL_DIR64$\
[$App4R_INSTALL$,$App4R_EXISTREG_LABEL$]File,Copy,$CD_ROOT_DIR$\$APPFOLDER_NAME$\AIOC\$ModelCode$bmp.*,$INSTALL_DIR64$\
[$App4R_INSTALL$,$App4R_EXISTREG_LABEL$]File,Copy,$CD_ROOT_DIR$\$APPFOLDER_NAME$\AIOC\lexocr.*,$INSTALL_DIR64$\
[$App4R_INSTALL$,$App4R_EXISTREG_LABEL$]File,Copy,$CD_ROOT_DIR$\$APPFOLDER_NAME$\AIOC\*71.*,$INSTALL_DIR64$\
[$App4R_INSTALL$,$App4R_EXISTREG_LABEL$]File,Copy,$CD_ROOT_DIR$\$APPFOLDER_NAME$\AIOC\$8CLANG$\$ModelCode$at*.*,$INSTALL_DIR64$\
[$App4R_INSTALL$,$App4R_EXISTREG_LABEL$]File,Copy,$CD_ROOT_DIR$\$APPFOLDER_NAME$\AIOC\$8CLANG$\$ModelCode$actr.*,$INSTALL_DIR64$\
[$App4R_INSTALL$,$App4R_EXISTREG_LABEL$]File,Copy,$CD_ROOT_DIR$\$APPFOLDER_NAME$\AIOC\$8CLANG$\$ModelCode$atwr.*,$INSTALL_DIR64$\

#Install 4Runner application
[$App4R_INSTALL$,$App4R_EXISTREG_LABEL$]File,Copy,$SOURCE_DIR$\*.*,$INSTALL_DIR64$\
[$App4R_INSTALL$,$App4R_EXISTREG_LABEL$]File,CopyRecursive,$SOURCE_DIR$\Scripts\*,$INSTALL_DIR64$\Scripts\
[$App4R_INSTALL$,$App4R_EXISTREG_LABEL$]File,CopyRecursive,$SOURCE_DIR$\PhotoCards\*,$INSTALL_DIR64$\PhotoCards\
[$App4R_INSTALL$,$App4R_EXISTREG_LABEL$]File,Copy,$SOURCE_DIR$\Sshow\$LANGUAGE$\*,$INSTALL_DIR64$\Sshow\
#[$App4R_INSTALL$,$App4R_EXISTREG_LABEL$]File,Copy,$SOURCE_DIR$\Scripts\*.*,$INSTALL_DIR64$\Scripts\
[$App4R_INSTALL$,$App4R_EXISTREG_LABEL$]Shortcut,Add,Startmenu\$FOLDER_NAME$,$USER$,$INSTALL_DIR64$\App4R.exe,$App4R_ProgramShortCut$
#[$App4R_INSTALL$,$App4R_EXISTREG_LABEL$]Shortcut,Add,DESKTOP,$USER$,$INSTALL_DIR64$\App4R.exe,$App4R_ProgramShortCut$,

#Install .net Framework
[$DOTNET20_INSTALL$,$DOTNET20_EXISTREG_LABEL$]RunProgram,$SOURCE_DIR$\tools\NetFx64.exe,TRUE,100,$DOTNET_LANG_PARM$

[App4R_PostInstall_64]
GotoSection,App4R_RegWrite_64
[XPSP2,2K3SP1,VISTA]RunProgram,$SYSTEM_DIR$\netsh.exe,TRUE,100,firewall add allowedprogram "$INSTALL_DIR64$\$ModelCode$amon.exe" "$OEM$ Device Monitor"
[XPSP2,2K3SP1,VISTA]RunProgram,$SYSTEM_DIR$\netsh.exe,TRUE,100,firewall add allowedprogram "$INSTALL_DIR64$\app4r.exe" "$OEM$ Imaging Studio"
RegistryEntry,Delete,HKLM,Software\$OEM$InkJet\CustomInstall,$OEM$ $ModelName$ App4R Install
RunProgram,$INSTALL_DIR64$\app4r.exe,FALSE,100, $INIT_PARM$
#RunProgram,$INSTALL_DIR64$\$ModelCode$amon.exe,FALSE,100, -register
#RunProgram,$INSTALL_DIR64$\$ModelCode$mon.exe,FALSE,100,

[App4R_RegWrite_64]
RegistryEntry,Add,HKLM,Software\$REG_F_SHOWPIC$,$REG_ID_DEVICE$,STR,""
RegistryEntry,Add,HKLM,Software\$REG_F_HANDLER$,Action,STR,$REG_STR_ACTION$
RegistryEntry,Add,HKLM,Software\$REG_F_HANDLER$,DefaultIcon,STR,"$INSTALL_DIR64$\$ModelCode$amon.exe"
RegistryEntry,Add,HKLM,Software\$REG_F_HANDLER$,InvokeProgID,STR,$REG_ID_DEVICE$
RegistryEntry,Add,HKLM,Software\$REG_F_HANDLER$,InvokeVerb,STR,"Play"
RegistryEntry,Add,HKLM,Software\$REG_F_HANDLER$,Provider,STR,$REG_STR_PROVIDER$
RegistryEntry,Add,HKLM,Software\$REG_F_CANCELAUTO$,DDEFE873-6997-4e68-BE26-38B633ADBE12,STR,"" 
RegistryEntry,Add,HKCR,$REG_F_COMMAND$,"",STR,"$INSTALL_DIR64$\$ModelCode$amon.exe"
RegistryEntry,Add,HKCR,$REG_F_DROPTARGET$,CLSID,STR,$REG_ID_CLSID$
RegistryEntry,Add,HKCR,$REG_F_SERVER$,"",STR,"$INSTALL_DIR64$\$ModelCode$amon.exe"


[GRID_SUPPORT_NT]
File,Copy,$DRIVER_PATH$\$8CLANG$\$ModelCode$grd.dl*,$INSTALL_DIR$\
#File,Copy,$DRIVER_PATH$\mslurt.dl*,$INSTALL_DIR$\

[InitialSShowCopy]
[$IS_PTBR$]File,Copy,$SOURCE_DIR$\Sshow\pt-br\*,$INSTALL_DIR$\Sshow\
[$IS_PTPT$]File,Copy,$SOURCE_DIR$\Sshow\pt-pt\*,$INSTALL_DIR$\Sshow\
[$IS_ZHCHT$]File,Copy,$SOURCE_DIR$\Sshow\zh-cht\*,$INSTALL_DIR$\Sshow\
[$IS_ZHHK$]File,Copy,$SOURCE_DIR$\Sshow\zh-hk\*,$INSTALL_DIR$\Sshow\

[DoubleCheckSShowCopy]
[$NOT_ZHCHT$]GotoSection,DoubleCheckSShowCopy2
[DoubleCheckSShowCopy2]
[$NOT_ZHHK$]GotoSection,DoubleCheckSShowCopy3
[DoubleCheckSShowCopy3]
[$IS_NO_CL$]File,Copy,$SOURCE_DIR$\Sshow\nb\*,$INSTALL_DIR$\Sshow\
[$IS_ZH_CL$]File,Copy,$SOURCE_DIR$\Sshow\zh\*,$INSTALL_DIR$\Sshow\
[$IS_ZHTW_CL$]File,Copy,$SOURCE_DIR$\Sshow\zh-tw\*,$INSTALL_DIR$\Sshow\

[InitialSShowCopy_64]
[$IS_PTBR$]File,Copy,$SOURCE_DIR$\Sshow\pt-br\*,$INSTALL_DIR64$\Sshow\
[$IS_PTPT$]File,Copy,$SOURCE_DIR$\Sshow\pt-pt\*,$INSTALL_DIR64$\Sshow\
[$IS_ZHCHT$]File,Copy,$SOURCE_DIR$\Sshow\zh-cht\*,$INSTALL_DIR64$\Sshow\
[$IS_ZHHK$]File,Copy,$SOURCE_DIR$\Sshow\zh-hk\*,$INSTALL_DIR64$\Sshow\

[DoubleCheckSShowCopy_64]
[$NOT_ZHCHT$]GotoSection,DoubleCheckSShowCopy2_64
[DoubleCheckSShowCopy2_64]
[$NOT_ZHHK$]GotoSection,DoubleCheckSShowCopy3_64
[DoubleCheckSShowCopy3_64]
[$IS_NO_CL$]File,Copy,$SOURCE_DIR$\Sshow\nb\*,$INSTALL_DIR64$\Sshow\
[$IS_ZH_CL$]File,Copy,$SOURCE_DIR$\Sshow\zh\*,$INSTALL_DIR64$\Sshow\
[$IS_ZHTW_CL$]File,Copy,$SOURCE_DIR$\Sshow\zh-tw\*,$INSTALL_DIR64$\Sshow\

