[Components]
Uninstaller

[Defines]
TARGET_DIR=$INSTALL_DIR$\Install
SOURCE_DIR=$CD_ROOT_DIR$\Install
PRINTERS=%Components.Printers%
FOLDER_NAME=$OEM$ %ModelName%
TARGET_DIR64=$PROGRAMFILES_DIR$ (x86)\$FOLDER_NAME$\Install
UNINSTALLSTRING=%Uninstall.SoftwareUninstall%
SUITE_NAME =
USER=AllUsers
#INSTALL_DIR=<ReadReg,HKLM,Software\lexmark,InstallDir>
MODEL_CODE=%ModelCode%
MODEL_NAME=%ModelName%
ARG_LSC=/M=$OEM$ %ModelName% /T=100
ARG_DIMS=/M=$OEM$ $MODEL_NAME$ /T=701 /L=a
LSC_Shortcut=%COMPONENTS.LSCShortcut%
DIMS_Shortcut=%COMPONENTS.DIMS%
#HBD_Shortcut=%COMPONENTS.HBDShortcut%
ReadMe_Shortcut=%COMPONENTS.ReadMeShortcut%
SYSTEST_INSTALL=<SetLabel,$MODEL_NAME$,EQ,System Test>
DELL_PRODUCT=<SetLabel,$OEM$,EQ,Dell>
NON_DELL_PRODUCT=<SetLabel,$OEM$,NE,Dell>
UninstallShortcut=%Uninstall.DriverUninstallShortcut%
ISRTL=<SetLabel,%IS_RTL%,eq,true>
NORTL=<SetLabel,%IS_RTL%,ne,true>
9X_UNINSTALL_PATH=$SYSTEM_DIR$\$MODEL_CODE$un9x.exe -d
IS_LXCQ=<SetLabel,$MODEL_CODE$,eq,lxcq>
NON_LV=<SetLabel,%OEM_CODE%,NE,lv>
LVDD=<SetLabel,$MODEL_CODE$,EQ,lvdd>
LVDC=<SetLabel,$MODEL_CODE$,EQ,lvdc>

[Uninstaller]
OEMCommon=FALSE

[Uninstaller_Actions]
File,Copy,$CD_ROOT_DIR$\Install\x86\Engine.dll,$TARGET_DIR$\x86\Engine.dll
File,Copy,$CD_ROOT_DIR$\Install\x86\softcoin.dll,$TARGET_DIR$\x86\$MODEL_CODE$soft.dll
File,Copy,$CD_ROOT_DIR$\Install\x86\softcoin.dll,$TARGET_DIR$\x86\softcoin.dll
File,Copy,$CD_ROOT_DIR$\Install\Config\NLS\$LANGUAGE$.nls,$TARGET_DIR$\Config\NLS\$LANGUAGE$.nls
File,Copy,$CD_ROOT_DIR$\Install\Config\NLS\Common.nls,$TARGET_DIR$\Config\NLS\Common.nls
File,Copy,$CD_ROOT_DIR$\Install\Config\NLS\OEM.nls,$TARGET_DIR$\Config\NLS\OEM.nls
File,Copy,$CD_ROOT_DIR$\Install\x86\Uninst.exe,$TARGET_DIR$\x86\Uninst.exe
File,Copy,$CD_ROOT_DIR$\Install\Config\Uninst.cif,$TARGET_DIR$\Config\Uninstall.cif
File,Copy,$CD_ROOT_DIR$\Install\Config\Uninst.xml,$TARGET_DIR$\Config\Uninstall.xml
File,Copy,$CD_ROOT_DIR$\Install\Config\Uninst.cgf,$TARGET_DIR$\Config\Uninstall.cgf
[$NON_DELL_PRODUCT$]File,Copy,$CD_ROOT_DIR$\Install\Config\image\sideimg.bmp,$TARGET_DIR$\Config\Image\sideimage.bmp
[$DELL_PRODUCT$]File,Copy,$CD_ROOT_DIR$\Install\Config\image\left.bmp,$TARGET_DIR$\Config\Image\sideimage.bmp
File,Copy,$CD_ROOT_DIR$\Install\Config\image\bottom.bmp,$TARGET_DIR$\Config\Image\bottom.bmp
[$ISRTL$]File,Copy,$CD_ROOT_DIR$\Install\Config\image\cdpcrtl.bmp,$TARGET_DIR$\Config\Image\cdpcrtl.bmp
[$NORTL$]File,Copy,$CD_ROOT_DIR$\Install\Config\image\cdpc.bmp,$TARGET_DIR$\Config\Image\cdpc.bmp
[$ISRTL$]File,Copy,$CD_ROOT_DIR$\Install\Config\image\trdrprtl.avi,$TARGET_DIR$\Config\Image\trdrprtl.avi
[$NORTL$]File,Copy,$CD_ROOT_DIR$\Install\Config\image\trdrp.avi,$TARGET_DIR$\Config\Image\trdrp.avi
File,Copy,$CD_ROOT_DIR$\Install\Config\Product.ini,$TARGET_DIR$\Config\Product.ini
[9X]File,Copy,$CD_ROOT_DIR$\Install\BEUnst.isf,$TARGET_DIR$\BEUnst.isf
[2K_VISTA]GotoSection,CreateStartMenuShortcut
[$SYSTEST_INSTALL$]ShortCut,Add,DESKTOP,$USER$,$TARGET_DIR$\x86\Uninst.exe,$MODEL_NAME$ Uninstaller
[$SYSTEST_INSTALL$]Shortcut,Add,Startmenu\Lexmark System Test,AllUsers,$TARGET_DIR$\x86\Uninst.exe,$MODEL_NAME$ Uninstaller

[CreateStartMenuShortcut]
[$NON_DELL_PRODUCT$]File,Copy,$SOURCE_DIR$\Config\Image\lpa.ico,$TARGET_DIR$\Config\Image\
#[$NON_DELL_PRODUCT$]File,Copy,$SOURCE_DIR$\Config\Image\lifering.ico,$TARGET_DIR$\Config\Image\
[$NON_DELL_PRODUCT$]File,Copy,$SOURCE_DIR$\Config\Image\reorder.ico,$TARGET_DIR$\Config\Image\
[$NON_DELL_PRODUCT$]Shortcut,Add,Startmenu\$FOLDER_NAME$,AllUsers,$DRIVER_MULTI_OS_DIR$\$MODEL_CODE$pswx.exe,$LSC_Shortcut$,$TARGET_DIR$\Config\Image\lpa.ico,$ARG_LSC$
#[$NON_DELL_PRODUCT$]Shortcut,Add,Startmenu\$FOLDER_NAME$,AllUsers,$DRIVER_MULTI_OS_DIR$\$MODEL_CODE$hbd.exe,$HBD_Shortcut$,$TARGET_DIR$\Config\Image\lifering.ico
[$NON_DELL_PRODUCT$]GotoSection,CreateReadMeShortcut
[$NON_DELL_PRODUCT$]Shortcut,Add,Startmenu\$FOLDER_NAME$,AllUsers,$TARGET_DIR$\x86\Uninst.exe,$UninstallShortcut$
[$IS_LXCQ$]Shortcut,Add,Startmenu\$FOLDER_NAME$,AllUsers,$DRIVER_MULTI_OS_DIR$\$MODEL_CODE$pswx.exe,$DIMS_Shortcut$,$TARGET_DIR$\Config\Image\reorder.ico,$ARG_DIMS$
[$DELL_PRODUCT$]Shortcut,Add,Startmenu\$PRINTERS$\$FOLDER_NAME$,AllUsers,$TARGET_DIR$\x86\Uninst.exe,$UninstallShortcut$

[Uninstaller_Actions_64]
File,Copy,$CD_ROOT_DIR$\Install\x64\Engine.dll,$TARGET_DIR64$\x64\Engine.dll
File,Copy,$CD_ROOT_DIR$\Install\x64\softcoin.dll,$TARGET_DIR64$\x64\$MODEL_CODE$soft.dll
File,Copy,$CD_ROOT_DIR$\Install\x64\softcoin.dll,$TARGET_DIR64$\x64\softcoin.dll
File,Copy,$CD_ROOT_DIR$\Install\Config\NLS\$LANGUAGE$.nls,$TARGET_DIR64$\Config\NLS\$LANGUAGE$.nls
File,Copy,$CD_ROOT_DIR$\Install\Config\NLS\Common.nls,$TARGET_DIR64$\Config\NLS\Common.nls
File,Copy,$CD_ROOT_DIR$\Install\Config\NLS\OEM.nls,$TARGET_DIR64$\Config\NLS\OEM.nls
File,Copy,$CD_ROOT_DIR$\Install\x64\Uninst.exe,$TARGET_DIR64$\x64\Uninst.exe
File,Copy,$CD_ROOT_DIR$\Install\Config\Uninst.cif,$TARGET_DIR64$\Config\Uninstall.cif
File,Copy,$CD_ROOT_DIR$\Install\Config\Uninst.xml,$TARGET_DIR64$\Config\Uninstall.xml
File,Copy,$CD_ROOT_DIR$\Install\Config\Uninst.cgf,$TARGET_DIR64$\Config\Uninstall.cgf
[$NON_DELL_PRODUCT$]File,Copy,$CD_ROOT_DIR$\Install\Config\image\sideimg.bmp,$TARGET_DIR64$\Config\Image\sideimage.bmp
[$DELL_PRODUCT$]File,Copy,$CD_ROOT_DIR$\Install\Config\image\left.bmp,$TARGET_DIR64$\Config\Image\sideimage.bmp
File,Copy,$CD_ROOT_DIR$\Install\Config\image\bottom.bmp,$TARGET_DIR64$\Config\Image\bottom.bmp
[$ISRTL$]File,Copy,$CD_ROOT_DIR$\Install\Config\image\cdpcrtl.bmp,$TARGET_DIR64$\Config\Image\cdpcrtl.bmp
[$NORTL$]File,Copy,$CD_ROOT_DIR$\Install\Config\image\cdpc.bmp,$TARGET_DIR64$\Config\Image\cdpc.bmp
[$ISRTL$]File,Copy,$CD_ROOT_DIR$\Install\Config\image\trdrprtl.avi,$TARGET_DIR64$\Config\Image\trdrprtl.avi
[$NORTL$]File,Copy,$CD_ROOT_DIR$\Install\Config\image\trdrp.avi,$TARGET_DIR64$\Config\Image\trdrp.avi
File,Copy,$CD_ROOT_DIR$\Install\Config\Product.ini,$TARGET_DIR64$\Config\Product.ini
[$NON_DELL_PRODUCT$]Shortcut,Add,Startmenu\$FOLDER_NAME$,AllUsers,$TARGET_DIR64$\x64\Uninst.exe,$UninstallShortcut$
[$DELL_PRODUCT$]Shortcut,Add,Startmenu\$PRINTERS$\$FOLDER_NAME$,AllUsers,$TARGET_DIR64$\x64\Uninst.exe,$UninstallShortcut$

[$NON_DELL_PRODUCT$]File,Copy,$SOURCE_DIR$\Config\Image\lpa.ico,$TARGET_DIR64$\Config\Image\
#[$NON_DELL_PRODUCT$]File,Copy,$SOURCE_DIR$\Config\Image\lifering.ico,$TARGET_DIR64$\Config\Image\
[$NON_DELL_PRODUCT$]File,Copy,$SOURCE_DIR$\Config\Image\reorder.ico,$TARGET_DIR64$\Config\Image\
[$NON_DELL_PRODUCT$]Shortcut,Add,Startmenu\$FOLDER_NAME$,AllUsers,$DRIVER_MULTI_OS_DIR$\$MODEL_CODE$pswx.exe,$LSC_Shortcut$,$TARGET_DIR64$\Config\Image\lpa.ico,$ARG_LSC$
#[$NON_DELL_PRODUCT$]Shortcut,Add,Startmenu\$FOLDER_NAME$,AllUsers,$DRIVER_MULTI_OS_DIR$\$MODEL_CODE$hbd.exe,$HBD_Shortcut$,$TARGET_DIR64$\Config\Image\lifering.ico
[$NON_DELL_PRODUCT$]GotoSection,CreateReadMeShortcut
[$IS_LXCQ$]Shortcut,Add,Startmenu\$FOLDER_NAME$,AllUsers,$DRIVER_MULTI_OS_DIR$\$MODEL_CODE$pswx.exe,$DIMS_Shortcut$,$TARGET_DIR64$\Config\Image\reorder.ico,$ARG_DIMS$

[$SYSTEST_INSTALL$]ShortCut,Add,DESKTOP,$USER$,$TARGET_DIR64$\x64\Uninst.exe,$MODEL_NAME$ Uninstaller
[$SYSTEST_INSTALL$]Shortcut,Add,Startmenu\Lexmark System Test,AllUsers,$TARGET_DIR64$\x64\Uninst.exe,$MODEL_NAME$ Uninstaller

[Uninstaller_PostInstall]
[9X]RegistryEntry,Add,HKLM,Software\Microsoft\Windows\CurrentVersion\Uninstall\$OEM$ $MODEL_NAME$,UninstallString,STR,$9X_UNINSTALL_PATH$
[9X]RegistryEntry,Add,HKLM,Software\Microsoft\Windows\CurrentVersion\Uninstall\$OEM$ $MODEL_NAME$,DisplayIcon,STR,$9X_UNINSTALL_PATH$

[CreateReadMeShortcut]
[$NON_LV$,$LVDD$,$LVDC$]Shortcut,Add,Startmenu\$FOLDER_NAME$,AllUsers,$SYSTEM_DIR$\write.exe,$ReadMe_Shortcut$,$SYSTEM_DIR$\write.exe,$DRIVER_MULTI_OS_DIR$\$MODEL_CODE$rme.doc
