[Components]
AppInst.AIOC

[Defines]
CUR_VERSION=1.0
USER=AllUsers
APPFOLDER_NAME=%AppFolder%
SOURCE_DIR=$CD_ROOT_DIR$\$APPFOLDER_NAME$\AIOC
FOLDER_NAME=$OEM$ %ModelName%
INSTALL_DIR=$PROGRAMFILES_DIR$\$FOLDER_NAME$
INSTALL_DIR64=$PROGRAMFILES_DIR$ (x86)\$FOLDER_NAME$
ModelName=%ModelName%
ModelCode=%ModelCode%
AIOCShortCut=%Components.AIO_CENTER%
OEMAIOCShortCut=%Components.AIOC_OEM%
PrintCenterShortCut=%Components.PRINT_CENTER%
8CLANG=%LANG%
AIOC_REG_EXIST=<ExistReg,HKLM,Software\$OEM$InkJet\CustomInstall,$OEM$ $ModelName$ AIOC Install>
AIOC_EXISTREG_LABEL=<SetLabel,$AIOC_REG_EXIST$,EQ,FALSE>
AIOC_INSTALL_REG=<ReadReg,HKLM,Software\$OEM$InkJet\CustomInstall,$OEM$ $ModelName$ AIOC Install>
AIOC_INSTALL=<SetLabel,$AIOC_INSTALL_REG$,NE:NUM,0>
DELL_PRODUCT=<SetLabel,$OEM$,EQ,Dell>
DLCJ=<SetLabel,$ModelCode$,EQ,dlcj>
NON_LVDD=<SetLabel,$ModelCode$,NE,lvdd>
NON_DELL_PRODUCT=<SetLabel,$OEM$,NE,Dell>
PRINTERS=%Components.Printers%
DRIVER_PATH=$CD_ROOT_DIR$\%WARSAW_PATH%
COMM_PATH=$CD_ROOT_DIR$\%WARSAW_COMM%
MSI_9X_ARG=$CD_ROOT_DIR$\Fax\FxRedist.msi Reboot="suppress"

[AIOC]
Platform=9X,NT_VISTA
OEMCommon=FALSE
RequireS=LeadTool
Version=$CUR_VERSION$
SourceLocation=$SOURCE_DIR$

[AIOC_PreInstall]
[$AIOC_INSTALL$,$AIOC_EXISTREG_LABEL$]RunProgram,$INSTALL_DIR$\$ModelCode$mon.exe,TRUE,100,-u

[AIOC_PreInstall_64]
[$AIOC_INSTALL$,$AIOC_EXISTREG_LABEL$]RunProgram,$INSTALL_DIR64$\$ModelCode$mon.exe,TRUE,100,-u

[AIOC_Actions]
[9X]MsiPackage,$CD_ROOT_DIR$\Fax\instmsiA.exe,$MSI_9X_ARG$
[2K]MsiPackage,$CD_ROOT_DIR$\Fax\instmsiW.exe,$CD_ROOT_DIR$\Fax\FxRedist.msi
[NT_VISTA]GotoSection,GRID_SUPPORT_NT
[9X]GotoSection,GRID_SUPPORT_9X
[2K]File,Copy,$SOURCE_DIR$\msvcr71.dl*,$SYSTEM_DIR$\,,NotLogIt
[$AIOC_INSTALL$,$AIOC_EXISTREG_LABEL$]File,Copy,$SOURCE_DIR$\$ModelCode$*.*,$INSTALL_DIR$\
[$AIOC_INSTALL$,$AIOC_EXISTREG_LABEL$]File,Copy,$SOURCE_DIR$\*.ini,$INSTALL_DIR$\
[$AIOC_INSTALL$,$AIOC_EXISTREG_LABEL$]File,Copy,$SOURCE_DIR$\*.ex*,$INSTALL_DIR$\
[$AIOC_INSTALL$,$AIOC_EXISTREG_LABEL$]File,Copy,$SOURCE_DIR$\autosctest.*,$INSTALL_DIR$\
[$AIOC_INSTALL$,$AIOC_EXISTREG_LABEL$]File,Copy,$SOURCE_DIR$\mfc42.*,$INSTALL_DIR$\
[$AIOC_INSTALL$,$AIOC_EXISTREG_LABEL$]File,Copy,$SOURCE_DIR$\mfc71.dl*,$INSTALL_DIR$\
[$AIOC_INSTALL$,$AIOC_EXISTREG_LABEL$]File,Copy,$SOURCE_DIR$\msvcr71.dl*,$INSTALL_DIR$\
[$AIOC_INSTALL$,$AIOC_EXISTREG_LABEL$]File,Copy,$SOURCE_DIR$\msvcp71.dl*,$INSTALL_DIR$\
[$AIOC_INSTALL$,$AIOC_EXISTREG_LABEL$]File,Copy,$SOURCE_DIR$\pdflib.*,$INSTALL_DIR$\
# Restrict to 9X & 2K label only because action labels are ORed.
[9X,2K]File,Copy,$SOURCE_DIR$\gdiplus.*,$INSTALL_DIR$\
[$AIOC_INSTALL$,$AIOC_EXISTREG_LABEL$]File,Copy,$SOURCE_DIR$\$8CLANG$\*actr.*,$INSTALL_DIR$\
[$AIOC_INSTALL$,$AIOC_EXISTREG_LABEL$]GotoSection,COPY_AIO_LEGACY_32
[$AIOC_INSTALL$,$AIOC_EXISTREG_LABEL$]File,Copy,$SOURCE_DIR$\$8CLANG$\*atgr.*,$INSTALL_DIR$\
[$AIOC_INSTALL$,$AIOC_EXISTREG_LABEL$]File,Copy,$SOURCE_DIR$\$8CLANG$\*atwr.*,$INSTALL_DIR$\
[$AIOC_INSTALL$,$AIOC_EXISTREG_LABEL$]File,Copy,$SOURCE_DIR$\$8CLANG$\*jswr.*,$INSTALL_DIR$\
[$AIOC_INSTALL$,$AIOC_EXISTREG_LABEL$]File,Copy,$SOURCE_DIR$\$8CLANG$\*mon.*,$INSTALL_DIR$\
[$AIOC_INSTALL$,$AIOC_EXISTREG_LABEL$]File,Copy,$SOURCE_DIR$\$8CLANG$\*monr.*,$INSTALL_DIR$\
[$AIOC_INSTALL$,$AIOC_EXISTREG_LABEL$]File,Copy,$SOURCE_DIR$\$8CLANG$\*slng.nls,$INSTALL_DIR$\
[$AIOC_INSTALL$,$AIOC_EXISTREG_LABEL$]File,Copy,$SOURCE_DIR$\$8CLANG$\*temp.*,$INSTALL_DIR$\
[$AIOC_INSTALL$,$AIOC_EXISTREG_LABEL$]File,Copy,$CD_ROOT_DIR$\Pubs\$8CLANG$\$ModelCode$help.chm,$INSTALL_DIR$\
[$AIOC_INSTALL$,$AIOC_EXISTREG_LABEL$]RegistryEntry,Add,HKLM,Software\$OEM$\$ModelName$\AIO,FaxDriver,STR,CAPTURE FAX
[$AIOC_INSTALL$,$AIOC_EXISTREG_LABEL$]RegistryEntry,Add,HKLM,Software\Microsoft\Windows\CurrentVersion\Run,$ModelCode$mon.exe,STR,""$INSTALL_DIR$\$ModelCode$mon.exe""
[VISTA]RunProgram,$SYSTEM_DIR$\netsh.exe,TRUE,100,firewall add allowedprogram "$INSTALL_DIR$\$ModelCode$mon.exe" "Device Monitor"
[VISTA]GotoSection,FIREWALL_AIO_LEGACY_32
[$AIOC_INSTALL$,$AIOC_EXISTREG_LABEL$]GotoSection,SHORTCUTS

[COPY_AIO_LEGACY_32]
[$NON_LVDD$]File,Copy,$SOURCE_DIR$\$8CLANG$\*aior.*,$INSTALL_DIR$\

[FIREWALL_AIO_LEGACY_32]
[$NON_LVDD$]RunProgram,$SYSTEM_DIR$\netsh.exe,TRUE,100,firewall add allowedprogram "$INSTALL_DIR$\$ModelCode$aiox.exe" "All In One Center"

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

[GRID_SUPPORT_64]
File,Copy,$DRIVER_PATH$\$8CLANG$\$ModelCode$grd.dl*,$INSTALL_DIR$\
File,Copy,$DRIVER_PATH$\$8CLANG$\$ModelCode$grd.dl*,$INSTALL_DIR64$\

[GRID_SUPPORT_9X]
File,Copy,$CD_ROOT_DIR$\Drivers\Scan\i386\$ModelCode$caps.dl*,$SYSTEM_DIR$\
File,Copy,$CD_ROOT_DIR$\Drivers\Win_9X\$8CLANG$\$ModelCode$grd.dl*,$INSTALL_DIR$\
File,Copy,$CD_ROOT_DIR$\Drivers\Win_9X\mslurt.dl*,$INSTALL_DIR$\
File,Copy,$CD_ROOT_DIR$\Drivers\Win_9X\unicows.dl*,$INSTALL_DIR$\

[SHORTCUTS]
# Make this short cut for 4n1s
[2K_VISTA,$NON_DELL_PRODUCT$]GotoSection,SHORTCUT_LEGACY_32
[9X,$NON_DELL_PRODUCT$]Shortcut,Add,Startmenu\$FOLDER_NAME$,CurrentUser,$INSTALL_DIR$\$ModelCode$aiox.exe,$AIOCShortcut$

# Make this shortcut for 3n1s
#Shortcut,Add,Startmenu\$FOLDER_NAME$,AllUsers,$INSTALL_DIR$\$ModelCode$aiox.exe,$PrintCenterShortcut$
#[9X]Shortcut,Add,Startmenu\$FOLDER_NAME$,CurrentUser,$INSTALL_DIR$\$ModelCode$aiox.exe,$PrintCenterShortcut$

#Make these shortcuts for Dell Products
[$DELL_PRODUCT$]Shortcut,Add,Startmenu\$PRINTERS$\$FOLDER_NAME$,AllUsers,$INSTALL_DIR$\$ModelCode$aiox.exe,$OEMAIOCShortcut$
#[9X,$DELL_PRODUCT$]Shortcut,Add,Startmenu\$PRINTERS$\$FOLDER_NAME$,CurrentUser,$INSTALL_DIR$\$ModelCode$aiox.exe,$OEMAIOCShortcut$

[SHORTCUT_LEGACY_32]
[$NON_LVDD$]Shortcut,Add,Startmenu\$FOLDER_NAME$,AllUsers,$INSTALL_DIR$\$ModelCode$aiox.exe,$AIOCShortcut$

[AIOC_Cleanup]
#Put actions here that need to be done prior to installation

[AIOC_PostInstall]
#[$AIOC_INSTALL$,$AIOC_EXISTREG_LABEL$]RunProgram,$INSTALL_DIR$\$ModelCode$mon.exe,FALSE,100
RegistryEntry,Delete,HKLM,Software\$OEM$InkJet\CustomInstall,$OEM$ $ModelName$ AIOC Install

[AIOC_PostInstall_64]
#[$AIOC_INSTALL$,$AIOC_EXISTREG_LABEL$]RunProgram,$INSTALL_DIR64$\$ModelCode$mon.exe,FALSE,100
RegistryEntry,Delete,HKLM,Software\$OEM$InkJet\CustomInstall,$OEM$ $ModelName$ AIOC Install

[AIOC_Actions_64]
GotoSection,GRID_SUPPORT_64

# 32Bit CATS files need to be copied in $INSTALL_DIR64$.
File,Copy,$DRIVER_PATH$\$ModelCode$retv.dl_,$INSTALL_DIR64$\
File,Copy,$DRIVER_PATH$\$ModelCode$bubl.dll,$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$\

[$AIOC_INSTALL$,$AIOC_EXISTREG_LABEL$]File,Copy,$SOURCE_DIR$\$ModelCode$*.*,$INSTALL_DIR64$\
[$AIOC_INSTALL$,$AIOC_EXISTREG_LABEL$]File,Copy,$SOURCE_DIR$\*.ini,$INSTALL_DIR64$\
[$AIOC_INSTALL$,$AIOC_EXISTREG_LABEL$]File,Copy,$SOURCE_DIR$\*.ex*,$INSTALL_DIR64$\
[$AIOC_INSTALL$,$AIOC_EXISTREG_LABEL$]File,Copy,$SOURCE_DIR$\autosctest.*,$INSTALL_DIR64$\
[$AIOC_INSTALL$,$AIOC_EXISTREG_LABEL$]File,Copy,$SOURCE_DIR$\mfc42.*,$INSTALL_DIR64$\
[$AIOC_INSTALL$,$AIOC_EXISTREG_LABEL$]File,Copy,$SOURCE_DIR$\mfc71.dl*,$INSTALL_DIR64$\
[$AIOC_INSTALL$,$AIOC_EXISTREG_LABEL$]File,Copy,$SOURCE_DIR$\msvcr71.dl*,$INSTALL_DIR64$\
[$AIOC_INSTALL$,$AIOC_EXISTREG_LABEL$]File,Copy,$SOURCE_DIR$\msvcp71.dl*,$INSTALL_DIR64$\
[$AIOC_INSTALL$,$AIOC_EXISTREG_LABEL$]File,Copy,$SOURCE_DIR$\pdflib.*,$INSTALL_DIR64$\
# Delete this line from this section.
#[$AIOC_INSTALL$,$AIOC_EXISTREG_LABEL$]File,Copy,$SOURCE_DIR$\gdiplus.*,$INSTALL_DIR64$\
[$AIOC_INSTALL$,$AIOC_EXISTREG_LABEL$]File,Copy,$SOURCE_DIR$\$8CLANG$\*actr.*,$INSTALL_DIR64$\
[$AIOC_INSTALL$,$AIOC_EXISTREG_LABEL$]GotoSection,COPY_AIO_LEGACY_64
[$AIOC_INSTALL$,$AIOC_EXISTREG_LABEL$]File,Copy,$SOURCE_DIR$\$8CLANG$\*atgr.*,$INSTALL_DIR64$\
[$AIOC_INSTALL$,$AIOC_EXISTREG_LABEL$]File,Copy,$SOURCE_DIR$\$8CLANG$\*atwr.*,$INSTALL_DIR64$\
[$AIOC_INSTALL$,$AIOC_EXISTREG_LABEL$]File,Copy,$SOURCE_DIR$\$8CLANG$\*jswr.*,$INSTALL_DIR64$\
[$AIOC_INSTALL$,$AIOC_EXISTREG_LABEL$]File,Copy,$SOURCE_DIR$\$8CLANG$\*mon.*,$INSTALL_DIR64$\
[$AIOC_INSTALL$,$AIOC_EXISTREG_LABEL$]File,Copy,$SOURCE_DIR$\$8CLANG$\*monr.*,$INSTALL_DIR64$\
[$AIOC_INSTALL$,$AIOC_EXISTREG_LABEL$]File,Copy,$SOURCE_DIR$\$8CLANG$\*slng.nls,$INSTALL_DIR64$\
[$AIOC_INSTALL$,$AIOC_EXISTREG_LABEL$]File,Copy,$SOURCE_DIR$\$8CLANG$\*temp.*,$INSTALL_DIR64$\
[$AIOC_INSTALL$,$AIOC_EXISTREG_LABEL$]File,Copy,$CD_ROOT_DIR$\Pubs\$8CLANG$\$ModelCode$help.chm,$INSTALL_DIR64$\
[$AIOC_INSTALL$,$AIOC_EXISTREG_LABEL$]RegistryEntry,Add,HKLM,Software\$OEM$\$ModelName$\AIO,FaxDriver,STR,CAPTURE FAX
[$AIOC_INSTALL$,$AIOC_EXISTREG_LABEL$]RegistryEntry,Add,HKLM,Software\Microsoft\Windows\CurrentVersion\Run,$ModelCode$mon.exe,STR,""$INSTALL_DIR64$\$ModelCode$mon.exe""
[VISTA]RunProgram,$SYSTEM_DIR$\netsh.exe,TRUE,100,firewall add allowedprogram "$INSTALL_DIR64$\$ModelCode$mon.exe" "Device Monitor"
[VISTA]GotoSection,FIREWALL_AIO_LEGACY_64
[$AIOC_INSTALL$,$AIOC_EXISTREG_LABEL$]GotoSection,SHORTCUTS_64

[COPY_AIO_LEGACY_64]
[$NON_LVDD$]File,Copy,$SOURCE_DIR$\$8CLANG$\*aior.*,$INSTALL_DIR64$\

[FIREWALL_AIO_LEGACY_64]
[$NON_LVDD$]RunProgram,$SYSTEM_DIR$\netsh.exe,TRUE,100,firewall add allowedprogram "$INSTALL_DIR64$\$ModelCode$aiox.exe" "All In One Center"

[SHORTCUTS_64]
[$NON_DELL_PRODUCT$]GotoSection,SHORTCUT_LEGACY_64
[$DELL_PRODUCT$]Shortcut,Add,Startmenu\$PRINTERS$\$FOLDER_NAME$,AllUsers,$INSTALL_DIR64$\$ModelCode$aiox.exe,$OEMAIOCShortcut$

[SHORTCUT_LEGACY_64]
[$NON_LVDD$]Shortcut,Add,Startmenu\$FOLDER_NAME$,AllUsers,$INSTALL_DIR64$\$ModelCode$aiox.exe,$AIOCShortcut$








