; <COMPULSORY> STATE_INIT is a compulsory state that must be present in the ini file.
; It is the starting state... 
[STATE_INIT]
STATE_TYPE=CStateInit
; <OPTIONAL> If set to 1, State_Init will check that the user has the Administrator
; privileges. This check is done only if running under Windows 2000 and XP (this parameter
; will be ignored on W9X OS's). If this parameter is omitted or set to 0, no check will be done.
CHECK_IS_ADMIN=1

NEXT_STATE=STATE_KILL_DEMOSHIELD

;===========================================================================
[STATE_KILL_DEMOSHIELD]
STATE_TYPE=CStateCustomAction

; Provide the name of the dll containing the function that
; will carry out the custom actions.
DLL=MFCustomInstall.dll

; List of the calls that will be done.
; Syntax : CALL_<Order Number>=<FunctionName>@<First Parameter>@<Second Parameter>
CALL_0=KillApp@demo32.exe


NEXT_STATE=STATE_CHECK_MSI
;===========================================================================

;===========================================================================
[STATE_CHECK_MSI]
STATE_TYPE=CStateMSI

; Command line to be executed if version not sufficient.
CMD_W98=.\InstMsiA.exe /c:"msiinst /delayrebootq"
CMD_WMe=.\InstMsiA.exe /c:"msiinst /delayrebootq"
CMD_W2000=.\InstMsiW.exe /c:"msiinst /delayrebootq"
CMD_WNT4=.\InstMsiW.exe /c:"msiinst /delayrebootq"
CMD_W2003=
CMD_WXP=

; <OPTIONAL> If REBOOT_WME is set to One, the system will be restarted
; after MSI has been updated.
REBOOT_WME=1
REBOOT_W98=1
REBOOT_WNT4=1
; REBOOT_W2000=0
; REBOOT_W2003=0
; REBOOT_WXP=0

; <OPTIONAL> Version of MSI that needs to be installed.
; These fields are optional. If omitted, 0 is used as the default value.
VER_MAJOR = 2
VER_MINOR = 0
VER_BUILD = 0

NEXT_STATE=STATE_COMPANION
;===========================================================================

;===========================================================================
[STATE_COMPANION]
APP_DISPLAYNAME=Xerox Phaser 3100MFP - InstallShield Wizard
STATE_TYPE=CStateInstallSoftware
APP_NAME=Xerox Companion Suite
CHECKINSTALLED={ABDB5A8F-A163-4FD7-A8AE-E2695ACFEA90}
CHECKINSTALLED_REPLACE={4ACE3E86-78B6-43A1-B104-E3F3006FC576}
CNX=USBLAN
OEM=Xerox
;<OPTIONAL> Additional key containing the version of MF Inkjet that
; used InstallShield 6.3 not based on Windows Installer.
CHECKINSTALLED_ADDITIONAL={4ACE3E86-78B6-43A1-B104-E3F3006FC576}
;VERSION_KEY_ADDITIONAL=SOFTWARE\SAGEM SA\MF Inkjet

CMD_ENG=..\Companion\Setup.exe /L1033 /v"USBLAN=1 ILANSETUP=1 ALLUSERS=1 INSTALLFAX=1 /l*+ %WINDIR%\CompanionProLL2.log"
CMD_FRE=..\Companion\Setup.exe /L1036 /v"USBLAN=1 ILANSETUP=1 ALLUSERS=1 INSTALLFAX=1 /l*+ %WINDIR%\CompanionProLL2.log"
CMD_GER=..\Companion\Setup.exe /L1031 /v"USBLAN=1 ILANSETUP=1 ALLUSERS=1 INSTALLFAX=1 /l*+ %WINDIR%\CompanionProLL2.log"
CMD_ITA=..\Companion\Setup.exe /L1040 /v"USBLAN=1 ILANSETUP=1 ALLUSERS=1 INSTALLFAX=1 /l*+ %WINDIR%\CompanionProLL2.log"
CMD_SPA=..\Companion\Setup.exe /L1034 /v"USBLAN=1 ILANSETUP=1 ALLUSERS=1 INSTALLFAX=1 /l*+ %WINDIR%\CompanionProLL2.log" 
CMD_DUT=..\Companion\Setup.exe /L1043 /v"USBLAN=1 ILANSETUP=1 ALLUSERS=1 INSTALLFAX=1 /l*+ %WINDIR%\CompanionProLL2.log" 
CMD_PTG=..\Companion\Setup.exe /L1046 /v"USBLAN=1 ILANSETUP=1 ALLUSERS=1 INSTALLFAX=1 /l*+ %WINDIR%\CompanionProLL2.log" 
CMD_CHS=..\Companion\Setup.exe /L2052 /v"USBLAN=1 ILANSETUP=1 ALLUSERS=1 INSTALLFAX=1 /l*+ %WINDIR%\CompanionProLL2.log" 
CMD_CSY=..\Companion\Setup.exe /L1029 /v"USBLAN=1 ILANSETUP=1 ALLUSERS=1 INSTALLFAX=1 /l*+ %WINDIR%\CompanionProLL2.log" 
CMD_DAN=..\Companion\Setup.exe /L1030 /v"USBLAN=1 ILANSETUP=1 ALLUSERS=1 INSTALLFAX=1 /l*+ %WINDIR%\CompanionProLL2.log" 
CMD_HUN=..\Companion\Setup.exe /L1038 /v"USBLAN=1 ILANSETUP=1 ALLUSERS=1 INSTALLFAX=1 /l*+ %WINDIR%\CompanionProLL2.log" 
CMD_NOR=..\Companion\Setup.exe /L1044 /v"USBLAN=1 ILANSETUP=1 ALLUSERS=1 INSTALLFAX=1 /l*+ %WINDIR%\CompanionProLL2.log" 
CMD_PLK=..\Companion\Setup.exe /L1045 /v"USBLAN=1 ILANSETUP=1 ALLUSERS=1 INSTALLFAX=1 /l*+ %WINDIR%\CompanionProLL2.log" 
CMD_SVE=..\Companion\Setup.exe /L1053 /v"USBLAN=1 ILANSETUP=1 ALLUSERS=1 INSTALLFAX=1 /l*+ %WINDIR%\CompanionProLL2.log"  
CMD_RUS=..\Companion\Setup.exe /L1049 /v"USBLAN=1 ILANSETUP=1 ALLUSERS=1 INSTALLFAX=1 /l*+ %WINDIR%\CompanionProLL2.log" 
CMD_TUR=..\Companion\Setup.exe /L1055 /v"USBLAN=1 ILANSETUP=1 ALLUSERS=1 INSTALLFAX=1 /l*+ %WINDIR%\CompanionProLL2.log" 
CMD_KRN=..\Companion\Setup.exe /L1042 /v"USBLAN=1 ILANSETUP=1 ALLUSERS=1 INSTALLFAX=1 /l*+ %WINDIR%\CompanionProLL2.log" 
CMD_FIN=..\Companion\Setup.exe /L1035 /v"USBLAN=1 ILANSETUP=1 ALLUSERS=1 INSTALLFAX=1 /l*+ %WINDIR%\CompanionProLL2.log" 


VER_MAJOR= 1
VER_MINOR= 2
VER_BUILD= 5

; <OPTIONAL> Tells that the automate that it should allow modify installation
; Must be set to 1 for launch that allows modify installation.
MODIFY_INSTALL=1

; <OPTIONAL> Tells that the automate that it should not wait for the completion
; of this install...(If this variable is omitted then, by default completion
; is waited.) Must be set to 1 or omitted for launch that waits program completion.
WAITCOMPLETION=1

; <OPTIONAL> Tells the automate that he should uninstall any older version of the
; application before carrying on. (User is told what's happening). If 0 or omitted,
; no uninstall is done.
UNINSTALL_IF_OLDER=1

; <OPTIONAL>
; If set to 1, the install scheduler will be started automatically after
; the reboot of the PC. Setting this value to 1 causes the state machine to stop
; at this point.
; If 0 or omitted : Scheduler will not be relaunched after reboot of PC.
LAUNCH_AFTER_REBOOT=0

; <OPTIONAL>
; If set to 1, the install scheduler will be started automatically after
; the reboot of the PC.
UPDATE_NEEDS_REBOOT=1

; <OPTIONAL> This is an optional parameter that is used only for the MF Inkjet.
; When this parameter is set to one, it will write a value (named "InstallAll")
; in the Uninstall key of "MF Inkjet".
;WRITE_REGISTRY_INSTALL_ALL=1

; <OPTIONAL> This specifies the default directory for the current state. Once
; the state has exited, the default directory is set back to the directory
; of the executable.
STATE_CURRENT_DIR=.\..

; <OPTIONAL> Size in MB of the required space for the installation on the C: drive.
; If this is omitted, no checking is performed on the free space on the C: drive.
;REQUIRED_SPACE_MB=260


NEXT_STATE=LAUNCH_REBOOT_DIALOG
;===========================================================================

;===========================================================================
[LAUNCH_REBOOT_DIALOG]
STATE_TYPE=CStateCustomAction

; Provide the name of the dll containing the function that
; will carry out the custom actions.
DLL=MFCustomInstall.dll

RUN_ACCORDING_TO_OS=1
RUN_ON_W98=1
RUN_ON_WME=1
RUN_ON_WNT4=1
RUN_ON_W2K=1
RUN_ON_W2003=1
RUN_ON_WXP=1
RUN_ON_WVista=1

DO_ONLY_AT_REBOOT_NEDEED=1

; List of the calls that will be done.
; Syntax : CALL_<Order Number>=<FunctionName>@<First Parameter>@<Second Parameter>
; Parameters : LANG_OS ( Dialog will be displayed according to operating system language ).
; Parameters : LANG_RS ( Dialog will be displayed according to regional settings language ).
CALL_0=ShowRebootDialogInstall@1@LANG_OS


NEXT_STATE=LAUNCH_WITHOUT_REBOOT_DIALOG

[LAUNCH_WITHOUT_REBOOT_DIALOG]
STATE_TYPE=CStateCustomAction

; Provide the name of the dll containing the function that
; will carry out the custom actions.
DLL=MFCustomInstall.dll

RUN_ACCORDING_TO_OS=1
RUN_ON_W98=1
RUN_ON_WME=1
RUN_ON_WNT4=1
RUN_ON_W2K=1
RUN_ON_W2003=1
RUN_ON_WXP=1
RUN_ON_WVista=1

; List of the calls that will be done.
; Syntax : CALL_<Order Number>=<FunctionName>@<First Parameter>@<Second Parameter>
; Parameters : LANG_OS ( Dialog will be displayed according to operating system language ).
; Parameters : LANG_RS ( Dialog will be displayed according to regional settings language ).
CALL_0=ShowDialogWithoutReboot@1@LANG_OS



NEXT_STATE=LAUNCH_REBOOT_UNINSTALL_DIALOG
;===========================================================================

;===========================================================================
[LAUNCH_REBOOT_UNINSTALL_DIALOG]
STATE_TYPE=CStateCustomAction

; Provide the name of the dll containing the function that
; will carry out the custom actions.
DLL=MFCustomInstall.dll

RUN_ACCORDING_TO_OS=1
RUN_ON_W98=1
RUN_ON_WME=1
RUN_ON_WNT4=1
RUN_ON_W2K=1
RUN_ON_W2003=1
RUN_ON_WXP=1
RUN_ON_WVista=1

; Execute Custom Action only during an Uninstall operation.
DO_ONLY_AT_UNINSTALL=1
DO_ONLY_AT_REBOOT_NEDEED=1
; List of the calls that will be done.
; Syntax : CALL_<Order Number>=<FunctionName>@<First Parameter>@<Second Parameter>
; Parameters : LANG_OS ( Dialog will be displayed according to operating system language ).
; Parameters : LANG_RS ( Dialog will be displayed according to regional settings language ).
CALL_0=ShowRebootDialogUninstall@1@LANG_OS

NEXT_STATE=LAUNCH_WITHOUT_REBOOT_UNINSTALL_DIALOG
;===========================================================================

;===========================================================================
[LAUNCH_WITHOUT_REBOOT_UNINSTALL_DIALOG]
STATE_TYPE=CStateCustomAction

; Provide the name of the dll containing the function that
; will carry out the custom actions.
DLL=MFCustomInstall.dll

RUN_ACCORDING_TO_OS=1
RUN_ON_W98=1
RUN_ON_WME=1
RUN_ON_WNT4=1
RUN_ON_W2K=1
RUN_ON_W2003=1
RUN_ON_WXP=1
RUN_ON_WVista=1

; Execute Custom Action only during an Uninstall operation.
DO_ONLY_AT_UNINSTALL=1

; List of the calls that will be done.
; Syntax : CALL_<Order Number>=<FunctionName>@<First Parameter>@<Second Parameter>
; Parameters : LANG_OS ( Dialog will be displayed according to operating system language ).
; Parameters : LANG_RS ( Dialog will be displayed according to regional settings language ).
CALL_0=ShowDialogWithoutRebootUninstall@1@LANG_OS


NEXT_STATE=STATE_LAUNCH_APP

[STATE_LAUNCH_APP]
STATE_TYPE=CStateCustomAction
RUN_ACCORDING_TO_OS=1
RUN_ON_W98=0
RUN_ON_WME=0
RUN_ON_WNT4=1
RUN_ON_W2K=1
RUN_ON_W2003=1
RUN_ON_WXP=1
RUN_ON_WVista=1
; Provide the name of the dll containing the function that
; will carry out the custom actions.
DLL=MFCustomInstall.dll

; Execute Custom Action only during an Uninstall operation.


; List of the calls that will be done.
; Syntax : CALL_<Order Number>=<FunctionName>@<First Parameter>@<Second Parameter>



CALL_0=launchAppInUserSession

NEXT_STATE=QUIT_STATEMACHINE
;===========================================================================
