<?xml version="1.0" encoding="ASCII"?>
<FLOW>

	<PACKAGE_INSTALL>
	</PACKAGE_INSTALL>
		
	<SILENT_INSTALL>
		<IF cmd="check_option" param0="install_vc" param1="TRUE">
			<TRUE>
			 		<IF cmd="is_vc_installed" param0="INSTALL_VC" param1="VC_REDIST">	 		
						<FALSE> <COMMAND cmd="execute_file_wait" param0="$INST_SRC_DIR$\DATA\vcredist_x86.exe" param1="/q /r:n" param2="INSTALL_VC" /> </FALSE>
					</IF>
			</TRUE>
		</IF>
		<COMMAND cmd="set_setup_type" param0="INSTALL" />
		<COMMAND cmd="check_spooler" />
		<COMMAND cmd="set_install_mode" param0="SILENT_INST" />		
		<!-- Search Component 
		<COMMAND cmd="search_components"/>
		-->
		
		<COMMAND cmd="WRITE_ITEM_INFO" /> 	
		<COMMAND cmd="copy_all_files" /> 		
		<IF cmd="check_option" param0="install_vc" param1="TRUE">
			<COMMAND cmd="wait_install_vc" /> 
		</IF>
		<COMMAND cmd="install" dwparam="1"/>
		<COMMAND cmd="system_install_update" />		
	<!--	<COMMAND cmd="refresh_system" />	-->		
	</SILENT_INSTALL>
	
	
	
	<SILENT_UNINSTALL>		
		<COMMAND cmd="set_setup_type" param0="UNINSTALL" />
		<COMMAND cmd="set_install_mode" param0="SILENT_INST" />		
		<COMMAND cmd="search_components"/>
		<COMMAND cmd="WRITE_ITEM_INFO" />
		<COMMAND cmd="uninstall" dwparam="1"/>		
		<COMMAND cmd="system_uninstall_update" />		
	<!--	<COMMAND cmd="refresh_system" />	-->		
	</SILENT_UNINSTALL>


<!--
			*
			*
			*	cmd param0,1,2,3,4.  wparam
			*
			*
-->
			
			

<!--
			Variables
			
			1) VAR.INSTALL_TYPE : Installation Type
				 
				 - install_now
				 - custom_install
				 - software_only  (not used)
				 - remote_install (not used)
				 - custom_utility (not used)
				 - wireless_setup
			
			2) VAR.CONNECTION_TYPE : Connectinon type, DON'T CHANGE the following defined string, because the strings are defined in core code.
			   
			   - LOCAL_QUICK_FOUND
			   - LOCAL_CONNECTION
			   - NETWORK_CONNECTION
			   - WIRELESS_CONNECTION
			   - SET_IP_CONNECTION
			   - NO_CONNECTION
			
			3) VAR.BOOL.CONNECT : Printer is connected or not
			   
			   - TRUE
			   - FALSE
-->

	<INSTALL>



	 <!-- ************************************************************************** -->
	 	
	 	
		
		
		<COMMAND cmd="set_setup_type" param0="INSTALL" />
				<!-- Search Component -->
		<COMMAND cmd="search_components"/>
		
		<COMMAND cmd="start_cmd_thread" param0="FLOW_INIT"/>
		
		<LABEL>START_STEP</LABEL> 
		
		
		
		
		<!-- Init variables -->
		<COMMAND cmd="set_variable" param0="VAL.CONNECTION_TYPE" param1="NOT_DEFINE"/>
		<COMMAND cmd="set_variable" param0="VAR.BOOL.CONNECT" param1="TRUE"/>
		<COMMAND cmd="set_variable" param0="VAR.BOOL.WEB_AGREE_DONE" param1="NOT_DEFINE"/>
		<COMMAND cmd="set_variable" param0="VAL.CONNECTION_DIALOG" param1="NOT_DEFINE"/>
		<COMMAND cmd="set_variable" param0="VAL.CONNECTION_DIALOG.TYPE" param1="USB"/>   <!-- default : USB -->
		<!--Dell-->
		<COMMAND cmd="set_variable" param0="VAL.START.TYPE" param1="NEW"/>			<!-- START TYPE : NEW, EXISTING -->
		<COMMAND cmd="set_variable" param0="VAL.START.DLG" param1="DELL_START"/>					<!-- START Dialog : DELL_START, DELL_START_ENV (for erp) -->
		<COMMAND cmd="set_variable" param0="VAL.CONNECTION.DLG" param1="DELL_SELECT_CONNECTION"/>	<!-- Select Connection Dialog : DELL_SELECT_CONNECTION, DELL_SELECT_CONNECTION_ONLY_WIRED (without wireless) -->
		
				
		
		<!--
			*
			*
			*	Main Screen
			*
			*
		-->
		
		
		<LABEL>START</LABEL>

		<!-- Dell -->

		
		<IF cmd="check_option" param0="network" param1 ="FALSE" operation="AND" cmd_1="check_option" param0_1="wireless" param1_1 ="FALSE">
			<TRUE>
				<IF cmd="is_erp_country">
					<TRUE> <COMMAND cmd="set_variable" param0="VAL.START.DLG" param1="DELL_START_EMBEDDED_ENV"/> </TRUE>
					<FALSE><COMMAND cmd="set_variable" param0="VAL.START.DLG" param1="DELL_START_EMBEDDED"/></FALSE>
				</IF>
			</TRUE>
		</IF>
		
		
		<SWITCH cmd="open_dlg" param0="#VAL.START.DLG#" step_dlg="TRUE">
			
			<!--New Printer Setup -->
			<CASE value="0"> 
				<COMMAND cmd="set_variable" param0="VAL.START.TYPE" param1="NEW"/>
				<GOTO>SELECT_CONNECT_TYPE</GOTO>
			</CASE>
			
			<!--Existing Printer Setup -->
			<CASE value="1">
				<COMMAND cmd="set_variable" param0="VAL.START.TYPE" param1="EXISTING"/>
				<GOTO>ALL_CONNECTION</GOTO>
			</CASE>
			
			<!--License Agreement -->
			<CASE value="10">
				<COMMAND cmd="open_dlg" param0="DELL_LICENSE_AGREEMENT" step_dlg="FALSE"/>
				<GOTO>START</GOTO>
			</CASE>
			
			<!--ERP  -->
			<CASE value="11">
				<COMMAND cmd="open_dlg" param0="DELL_EVM_NOTICE" step_dlg="FALSE"/>
				<GOTO>START</GOTO>
			</CASE>
			
			<!--Set IP -->
			<CASE value="100">
				<GOTO>SET_IP_CONNECTION</GOTO>
			</CASE>
		</SWITCH>
		
		
		
		<!-- 
			*
			*
			* Select Connection Type
			*
			*
		-->
			
		<LABEL>SELECT_CONNECT_TYPE</LABEL>
				
		<IF cmd="check_option" param0="network" param1 ="FALSE" operation="AND" cmd_1="check_option" param0_1="wireless" param1_1 ="FALSE">
			<TRUE> <GOTO>LOCAL_CONNECTION</GOTO> </TRUE>
		</IF>
	
		<!-- Dell-->
		
		<IF cmd="check_option" param0="wireless" param1="FALSE"> 
			<TRUE><COMMAND cmd="set_variable" param0="VAL.CONNECTION.DLG" param1="DELL_SELECT_CONNECTION_2OPTION"/></TRUE>
		</IF>

		<IF cmd="check_option" param0="network" param1="FALSE"> 
			<TRUE><COMMAND cmd="set_variable" param0="VAL.CONNECTION.DLG" param1="DELL_SELECT_CONNECTION_2OPTION"/></TRUE>
		</IF>
		
		<SWITCH cmd="open_dlg" param0="#VAL.CONNECTION.DLG#" param1="#VAL.CONNECTION_DIALOG.TYPE#" step_dlg="TRUE">
	
			<!-- Wireless -->
			<CASE value="0"> <COMMAND cmd="set_variable" param0="VAL.CONNECTION_TYPE" param1="WIRELESS_CONNECTION"/> <GOTO>WIRELESS_CONNECTION</GOTO></CASE>
									
			<!-- LOCAL -->
			<CASE value="1"> <COMMAND cmd="set_variable" param0="VAL.CONNECTION_TYPE" param1="LOCAL_CONNECTION"/> <GOTO>LOCAL_CONNECTION</GOTO></CASE>
	
			<!-- Network -->
			<CASE value="2"> <COMMAND cmd="set_variable" param0="VAL.CONNECTION_TYPE" param1="NETWORK_CONNECTION"/> <GOTO>NETWORK_CONNECTION</GOTO></CASE>
			
			<!--Back-->
			<CASE value="901"> <GOTO>START</GOTO></CASE>
	
		</SWITCH>
			


		
		<!-- 
			*
			*
			*	Local Connection
			*
			*
		 -->
		<LABEL>LOCAL_CONNECTION</LABEL>
		
		<IF cmd="find_local_printer" param0="SET_PORT">
			<FALSE> <COMMAND cmd="open_dlg" param0="DELL_HELP_WINDOW_LOCAL" step_dlg="FALSE"/> </FALSE>
		</IF>
		<!--<COMMAND cmd="set_variable" param0="VAL.CONNECTION_DIALOG" param1="DELL_FOUND_MODEL_SHOW_ONE"/>-->
			
		<!-- Dell-->
		<GOTO>SET_DRIVER_STEP</GOTO>
	
	
		
		
		<!-- 
			*
			*
			*	Network Connection
			*
			*
		 -->
		<LABEL>NETWORK_CONNECTION</LABEL>

		<IF cmd="check_option" param0="network_help" param1="FALSE" >
			<FALSE>		
					<SWITCH cmd="open_dlg" param0="DELL_HELP_WINDOW_NETWORK" step_dlg="FALSE">
						<CASE value="900"><GOTO>SEARCH_NETWORK</GOTO> </CASE> <!--Next-->
						<CASE value="901"><GOTO>SELECT_CONNECT_TYPE</GOTO> </CASE><!--Back-->
					</SWITCH>
			</FALSE>
		</IF>
		
		
		
		<LABEL>SEARCH_NETWORK</LABEL>
		<SWITCH cmd="open_dlg" param0="DELL_SEARCHING" param1="Network" step_dlg="FALSE">
					
			<!-- Not found -->
			<CASE value="0"> <GOTO>PRINTER_FOUND_STEP</GOTO> </CASE>
			
			<!-- 1 or more found -->
			<DEFAULT>
				<COMMAND cmd="set_variable" param0="VAL.CONNECTION_DIALOG" param1="DELL_FOUND_MODEL_LIST"/>
				<GOTO>PRINTER_FOUND_STEP</GOTO> 
			</DEFAULT>
			
		</SWITCH>
		
		
		<!-- 
			*
			*
			*	Search through All connection 
			*
			*
		 -->
		<LABEL>ALL_CONNECTION</LABEL>
			<COMMAND cmd="open_dlg" param0="DELL_SEARCHING" param1="ALL"/>					
			
			<SWITCH cmd="open_dlg" param0="DELL_FOUND_MODEL_LIST" param1="#VAL.CONNECTION_TYPE#" step_dlg="TRUE">
				<!-- Search Again (Network)-->
				<CASE value="11"> <GOTO>ALL_CONNECTION</GOTO> </CASE>
				<!-- Direct Input -->	
				<CASE value="12"> <GOTO>DIRECT_INPUT_STEP</GOTO> </CASE>	
	
			</SWITCH>
				
		<GOTO>SELECT_SOFTWARE_STEP</GOTO> 
				
		
		<!-- 
			*
			*
			*	Set IP Address
			*
			*
		 -->
		<GOTO>SET_IP_CONNECTION_END</GOTO>
		<LABEL>SET_IP_CONNECTION</LABEL>
		
		<!--Dell-->
		<COMMAND cmd="OPEN_DLG" param0="DELL_SEARCHING" param1="SETIP" step_dlg="FALSE" />
			
			
				<!-- Set IP Dialog -->
			<SWITCH cmd="OPEN_DLG" param0="DELL_SETIP_DLG" step_dlg="TRUE">
				<!-- Search Again-->
				<CASE value="11"><GOTO>SET_IP_CONNECTION</GOTO> </CASE>					
				<!-- Found-->
				<DEFAULT value="1">
					<GOTO>SET_DRIVER_STEP</GOTO>
				</DEFAULT>	
			</SWITCH>		
	

		<LABEL>SET_IP_CONNECTION_END</LABEL>
		
		
		
		
		<!-- 
			*
			*
			*	Direct Input
			*
			*
			-->
		<GOTO>DIRECT_INPUT_STEP_END</GOTO>	
		<LABEL>DIRECT_INPUT_STEP</LABEL>
		<!--Dell-->
		<SWITCH cmd="OPEN_DLG" param0="DELL_MANUAL_SEARCH_MODEL" param1="DIRECT_PORT" step_dlg="TRUE">
			
			<!-- Range Search -->
			<CASE value="100"> <GOTO>SEARCH_NETWORK</GOTO> </CASE>
			<CASE value="200"><COMMAND cmd="OPEN_DLG" param0="DELL_SNMP_COMMUNITY_DLG" step_dlg="FALSE"/>
					<GOTO>DIRECT_INPUT_STEP</GOTO>
			</CASE >

			<DEFAULT>
			<IF cmd="check_variable" param0="VAL.START.TYPE" param1="EXISTING">
				<TRUE><GOTO>SELECT_SOFTWARE_STEP</GOTO></TRUE>
				<FALSE><GOTO>SET_DRIVER_STEP</GOTO></FALSE>
			</IF>
				
			</DEFAULT>
			
		</SWITCH>
				
		<LABEL>DIRECT_INPUT_STEP_END</LABEL>
		
		
		
		
		
		<!-- 
			*
			*
			*	Wireless Connection
			*
			*
		 -->
		<LABEL>WIRELESS_CONNECTION</LABEL>
		
		<LABEL>BIC_WIRELESS_CONNECTION</LABEL>
		<IF cmd="check_option" param0="BIC" param1="TRUE">
			<TRUE>
				<COMMAND cmd="bic_initialize" />
				<IF cmd="is_wcn_supported">
					<TRUE>	<GOTO>BIC_SEARCH</GOTO>	</TRUE>
					<FALSE>	<GOTO>USB_WIRELESS_CONNECTION</GOTO></FALSE>
				</IF>
			</TRUE>
			<FALSE>
				<GOTO>USB_WIRELESS_CONNECTION</GOTO>
			</FALSE>
		</IF>
		
		<LABEL>BIC_SEARCH</LABEL>
		<SWITCH cmd="open_dlg" param0="DELL_BIC_SEARCHING" param1="WCN">
					
			<!-- Not found -->
			<CASE value="0"> <GOTO>USB_WIRELESS_CONNECTION</GOTO> </CASE>
			<!-- 1 found -->
			<CASE value="1"> <GOTO>BIC_SET_DRIVER</GOTO> </CASE>
			<DEFAULT>
				<!--<COMMAND cmd="open_dlg" param0="DELL_BIC_FOUND_MODEL_LIST" step_dlg="TRUE"/>-->
				<GOTO>BIC_SET_DRIVER</GOTO>
			</DEFAULT>
		</SWITCH>
		
		<LABEL>BIC_SET_DRIVER</LABEL>
		<SWITCH cmd="open_dlg" param0="DELL_BIC_SET_DRIVER" param1="Network">
			<!-- Connect to different wireless netowrk -->
			<CASE value="100"> <GOTO>USB_WIRELESS_CONNECTION</GOTO> </CASE>
			<CASE value="901"> <GOTO>SELECT_SOFTWARE_STEP</GOTO> </CASE>
		</SWITCH>
		
		<LABEL>BIC_INSTALL_STEP</LABEL>		
		<SWITCH cmd="open_dlg" param0="DELL_BIC_INSTALL" step_dlg="FALSE">
			<!-- Fail to connect printer via WCN-->
			<CASE value="112">
				<SWITCH cmd="open_dlg" param0="DELL_BIC_FAILURE" step_dlg="FALSE">
					<!--Retry -->
					<CASE value="1"><GOTO>BIC_INSTALL_STEP</GOTO></CASE>
					<!--Connect with USB -->
					<CASE value="0"><GOTO>USB_WIRELESS_CONNECTION</GOTO></CASE>
				</SWITCH>
			</CASE>
			<DEFAULT>
				<GOTO>FINISH_STEP</GOTO>
			</DEFAULT>
		
		</SWITCH>
		

	
			<!-- 
			*
			*
			*	Wireless Connection - USB
			*
			*
		 -->
	
	
		<GOTO>USB_WIRELESS_CONNECTION_END</GOTO>
		<LABEL>USB_WIRELESS_CONNECTION</LABEL>
		
		<COMMAND cmd="wsp_initialize" />

		<COMMAND cmd="set_variable" param0="VAL.PROFILE_AVAILABLE" param1="NO"/>
		<COMMAND cmd="set_variable" param0="VAL.WIRELESS_AVAILABLE" param1="NO"/>
		<!--       
		================================================================
		Connect Device       
		================================================================
		-->		
		<IF cmd="wsp_find_printer">
			<FALSE>	<COMMAND cmd="OPEN_DLG" param0="DELL_WSP_CONNECT_DEVICE" /> </FALSE>
		</IF>





		
		<!--       
		================================================================
		Load Current Device Settings and Wireless Network List       
		================================================================
		-->	
		<LABEL>WIRELESS_CI3_CHECKING_DEVICE</LABEL>
		<SWITCH cmd="OPEN_DLG" param0="DELL_WSP_DEVICE_CHECKING" param1="WSP_CHECK">
		
			<!--  ERROR_DEVICE_DATA -->
			<CASE value="101">  
			
				<SWITCH cmd="OPEN_DLG" param0="DELL_WSP_CHECKING_ERROR_DEVICE_DATA">		
					
					<!-- Retry	-->	
					<CASE value="11"> <GOTO>WIRELESS_CI3_CHECKING_DEVICE </GOTO> </CASE>
					
					<!-- go to select connection -->
					<DEFAULT> <GOTO>SELECT_CONNECT_TYPE</GOTO> </DEFAULT>
					
				</SWITCH>				
				
			</CASE>
			
			<!--  ERROR_WLAN_SUPPORT -->
			<CASE value="102">  				
				<COMMAND cmd="OPEN_DLG" param0="DELL_WSP_CHECKING_ERROR_WLAN_SUPPORT" /> 
				<GOTO>SELECT_CONNECT_TYPE</GOTO> 				
			</CASE>
			
			<!--  WSP_ERROR_CONNECTED_WIRED -->
			<CASE value="107">  				
				<COMMAND cmd="OPEN_DLG" param0="DELL_WSP_DISCONNECT_WIRED_NETWORK" /> 		
				<IF cmd="wsp_find_printer">
					<FALSE>	<COMMAND cmd="OPEN_DLG" param0="DELL_WSP_CONNECT_DEVICE" /> </FALSE>
				</IF> 		
			</CASE>
			
			
			<!-- Wireless is availabel -->
			<CASE value="200"> <COMMAND cmd="set_variable" param0="VAL.WIRELESS_AVAILABLE" param1="YES"/> </CASE>
			
		</SWITCH>
				
		
		<!--       
		================================================================
		Check Wireless Settings are already configured       
		================================================================
		-->
		
		<IF cmd="check_variable" param0="VAL.WIRELESS_AVAILABLE" param1="YES">
				
			<SWITCH cmd="open_dlg" param0="DELL_WSP_ALREADY_CONNECTED">
				
				<!-- use current setting -->
				<CASE value = "100"> <GOTO>WIRELESS_SETTING_SUCCESS</GOTO> </CASE>
				
				<!-- Go to select Model -->
				<DEFAULT>
					<COMMAND cmd="set_variable" param0="VAL.WIRELESS_AVAILABLE" param1="NO"/>
					<GOTO>WSP_CI3_FOUND_MODEL_STEP</GOTO>
				</DEFAULT>
				
			</SWITCH> 
			
		</IF>		
		
			
		
		<!-- 
		============================================================================================ 
				Show Wireless Network List 
		============================================================================================
		--> 
		<LABEL>WSP_CI3_FOUND_MODEL_STEP</LABEL> 
		<SWITCH cmd="open_dlg" param0="DELL_WSP_FOUND_SSID" step_dlg="TRUE">
					 			
			<!--  200 : Advanced Setting --> 
			<CASE value="200"> 
				<COMMAND cmd="open_dlg" param0="DELL_WSP_ADVANCED_SETTING"/>	
				<COMMAND cmd="set_variable" param0="VAL.PROFILE_AVAILABLE" param1="NO"/>				
			</CASE>
			
			<!--  103 : Set Security Key --> 
			<CASE value="103"> 
				<COMMAND cmd="open_dlg" param0="DELL_WSP_SECURITY_KEY" step_dlg="TRUE"/> 
				<COMMAND cmd="set_variable" param0="VAL.PROFILE_AVAILABLE" param1="NO"/>
				<GOTO>WSP_CI3_WIRELESS_CONNECTING_STEP</GOTO>
			</CASE>
	
		</SWITCH>


			
		
		
		<!-- 
		========================================================================================= 
				Setting Confirm Dialog
		=========================================================================================					
		--> 
		<LABEL>WSP_CI3_WIRELESS_CONFIRM_STEP</LABEL> 
		<SWITCH cmd="open_dlg" param0="DELL_WSP_SETTING_CONFIRM" param1="WSP_CONFIRM" step_dlg="TRUE">
			<CASE value="300">
				<!--  300 : Change Network --> 
				<COMMAND cmd="open_dlg" param0="DELL_WSP_SET_NET_PROTOCOL" /> 
				<GOTO>WSP_CI3_WIRELESS_CONFIRM_STEP</GOTO> 
			</CASE>						
		</SWITCH>



		<!-- 
		========================================================================================= 
				Connecting Dialog
		=========================================================================================					
		--> 
		
		<LABEL>WSP_CI3_WIRELESS_CONNECTING_STEP</LABEL> 
	
		<IF cmd="wsp_find_printer">
			<FALSE>	<COMMAND cmd="OPEN_DLG" param0="DELL_WSP_CONNECT_DEVICE" /> </FALSE>
		</IF> 
					
		<SWITCH cmd="open_dlg" param0="DELL_WSP_WIRELESS_CONNECTING" param1="WSP_CONNECT">
			<!--  101 : WSP_ERROR_DEVICE_DATA WSP_CHECKING_ERROR_DEVICE_DATA --> 
			
			<CASE value="103"> <COMMAND cmd="set_variable" param0="VAR.INT.FAIL_NUM" param1="1"/> </CASE>
		
			<!--  104 : WSP_ERROR_SSID -->
			<CASE value="104"> <COMMAND cmd="set_variable" param0="VAR.INT.FAIL_NUM" param1=""/>	</CASE>
			 
			<!--  105 : WSP_ERROR_SECURITY --> 
			<CASE value="105"> <COMMAND cmd="set_variable" param0="VAR.INT.FAIL_NUM" param1="3"/>	</CASE>
			
			<!--  106 : WSP_ERROR_PC_CONNECTION_ERROR -->
			<CASE value="106"> <COMMAND cmd="set_variable" param0="VAR.INT.FAIL_NUM" param1="2"/>	</CASE>

			<!--  107 : WSP_ERROR_CONNECTED_WIRED -->
			<CASE value="107"> <COMMAND cmd="set_variable" param0="VAR.INT.FAIL_NUM" param1="4"/>	</CASE>
			
			<!--  108 : WSP_ERROR_IP_NOT_ALLOCATED -->
			<CASE value="108"> <COMMAND cmd="set_variable" param0="VAR.INT.FAIL_NUM" param1="5"/>	</CASE>
			
			<!--  109 : WSP_ERROR_GENERAL_WIRELESS -->
			<CASE value="109"> <COMMAND cmd="set_variable" param0="VAR.INT.FAIL_NUM" param1="6"/>	</CASE>
			
			<!-- Success -->
			<DEFAULT><GOTO>WIRELESS_SETTING_SUCCESS</GOTO></DEFAULT>
			
		</SWITCH>
		
		
		<!-- If wireless setup was connecting with PC Profile and it is failed, go to show SSID List dialog -->
				
		<IF cmd="check_variable" param0="VAL.PROFILE_AVAILABLE" param1="YES">
			<TRUE><GOTO>WSP_CI3_FOUND_MODEL_STEP</GOTO></TRUE>
		</IF>
	
		
		
		<!--
		====================================================================================================================
			Show Error Dialog
		====================================================================================================================
		-->
		<IF cmd="check_variable" param0="VAR.INT.FAIL_NUM" param1="2">
			<TRUE>
				<COMMAND  cmd="open_dlg" param0="DELL_WSP_CONNECTING_FAILURE#VAR.INT.FAIL_NUM#" param1="DIRECT_PORT"/>
				<GOTO>WIRELESS_SETTING_SUCCESS</GOTO>
			</TRUE>
			<FALSE>
				<COMMAND  cmd="open_dlg" param0="DELL_WSP_CONNECTING_FAILURE#VAR.INT.FAIL_NUM#" />
				<GOTO>WSP_CI3_WIRELESS_CONNECTING_STEP</GOTO>
			</FALSE>
		</IF>
		
	
		
		<!-- 
		===================================================================
		Find wireless network & Complete dialog
		===================================================================
		-->
		<LABEL>WIRELESS_SETTING_SUCCESS</LABEL>
		
		<!--<COMMAND cmd="wsp_net_find" />-->
		<!--Dell-->
		<IF cmd="check_variable" param0="VAL.WIRELESS_AVAILABLE" param1="YES">
			<TRUE>
				<GOTO>USB_WIRELESS_CONNECTION_END</GOTO>
			</TRUE>
		</IF>
	
		<COMMAND cmd="open_dlg" param0="DELL_WSP_WIFI_DIRECT"/> 
		<LABEL>USB_WIRELESS_CONNECTION_END</LABEL>
		
		
		<!-- 
		===================================================================
		Disconnect USB cable Dialog 
		===================================================================
		-->		
		<SWITCH cmd="open_dlg" param0="DELL_WSP_SETTING_COMPLETE"> 	
			<CASE value="901"> <GOTO>SELECT_CONNECT_TYPE</GOTO>	</CASE> 	<!--  Back to select connection -->
		</SWITCH>
		
		<GOTO>SET_DRIVER_STEP</GOTO>
		
		
		<!-- 
			*
			*
			* Select Printer
			*
			*
			-->
		<LABEL>PRINTER_FOUND_STEP</LABEL>

		<IF cmd="check_variable" param0="VAL.CONNECTION_DIALOG" param1="NOT_DEFINE">
			<TRUE> <COMMAND cmd="set_variable" param0="VAL.CONNECTION_DIALOG" param1="DELL_FOUND_MODEL_LIST"/> </TRUE>
		</IF>		
		
		<SWITCH cmd="open_dlg" param0="#VAL.CONNECTION_DIALOG#" param1="#VAL.CONNECTION_TYPE#" step_dlg="TRUE">
			<!-- Search Again (Network)-->
			<CASE value="11"> <GOTO>SEARCH_NETWORK</GOTO> </CASE>
			<!-- Direct Input -->	
			<CASE value="12"> <GOTO>DIRECT_INPUT_STEP</GOTO> </CASE>	
			<!-- Search Again ( USB )-->
			<!--<CASE value="13"> <GOTO>LOCAL_CONNECTION</GOTO>  </CASE>			-->
			
		</SWITCH>
	
			
		
		
		<!-- 
			*
			*
			* Select Software
			*
			*
			-->
		<LABEL>SELECT_SOFTWARE_STEP</LABEL>
		

		

		<IF cmd="check_variable" param0="VAL.START.TYPE" param1="EXISTING">
			<TRUE>
	
				<COMMAND cmd="open_dlg" param0="DELL_SELECT_SW" param1="INSTALL" step_dlg="TRUE"/>
			</TRUE>
		</IF>
	
		
		
		<LABEL>SET_DRIVER_STEP</LABEL>
		

		<!-- Set Printer Settings -->
		<IF cmd="is_printer_selected">
			<TRUE>
				<SWITCH cmd="open_dlg" param0="DELL_SET_PRINTER_SETTING" param1="MAIN"  step_dlg="TRUE"> 
					<CASE value="901"><GOTO>SELECT_SOFTWARE_STEP</GOTO></CASE>
				</SWITCH>
			</TRUE>
		</IF>
    
    <!-- Write Item Info again ??? -->

    <IF cmd="check_variable" param0="VAL.START.TYPE" param1="EXISTING">
      <TRUE>
        <COMMAND cmd="WRITE_ITEM_INFO" param0="CUSTOM"/>
      </TRUE>
      <FALSE>
        <COMMAND cmd="WRITE_ITEM_INFO" />
      </FALSE>
    </IF>

		
	
		
		<!-- 
			*
			*
			* Copying Files
			*
			*
			-->
				
		<LABEL>INSTALL_STEP</LABEL>
		

		<!-- 
			*
			* Installing Step
			*
			-->	
		<COMMAND cmd="turn_off_search_update"/> 
		
		<IF cmd="check_option" param0="install_vc" param1="TRUE">
			<TRUE> <COMMAND cmd="open_dlg" param0="DELL_INSTALL" param1="WAIT_INSTALL_VC" /> </TRUE>
			<FALSE> <COMMAND cmd="open_dlg" param0="DELL_INSTALL" /> </FALSE>
		</IF>

		<LABEL>FINISH_STEP</LABEL>
		
		<!--Dell-->
		<IF cmd="check_option" param0="check_unc_printer" param1="TRUE">
			<TRUE>
				<IF cmd="is_valid_share_folder_addr">
					<TRUE><COMMAND cmd="create_shortcut" param0="DELL_UNC_SHORTCUT" /></TRUE>
				</IF>
			</TRUE>
		</IF>
		
		<COMMAND cmd="restore_search_update"/>
			
		
		
		
		<!-- 
			*
			*
			* Finish Dialog
			*
			*
			-->
		
		<COMMAND cmd="set_variable" param0="VAL.TEST_PAGE" param1=""/>
		<IF cmd="is_printer_installed" operator="AND" cmd_1="is_connected">			
			<TRUE>	
				<COMMAND cmd="diagnosis" />
				<COMMAND cmd="set_variable" param0="VAL.TEST_PAGE" param1="TEST_PAGE"/>
				<IF cmd="check_option" param0="paperportMSG" param1 ="TRUE" operation="AND" cmd_1="is_paperport_msg_support">
					<TRUE> <COMMAND cmd="open_dlg" param0="DELL_FINISH_TEST_PAGE_PAPERPORT" param1="#VAL.TEST_PAGE#" />  </TRUE>
					<FALSE><COMMAND cmd="open_dlg" param0="DELL_FINISH_TEST_PAGE" param1="#VAL.TEST_PAGE#"/></FALSE>
				</IF>
			</TRUE>
			<FALSE>
				<COMMAND cmd="set_variable" param0="VAL.TEST_PAGE" param1=""/>
				<IF cmd="check_option" param0="paperportMSG" param1 ="TRUE" operation="AND" cmd_1="is_paperport_msg_support">
					<TRUE> <COMMAND cmd="open_dlg" param0="DELL_FINISH_PAPERPORT" />  </TRUE>
					<FALSE><COMMAND cmd="open_dlg" param0="DELL_FINISH" /></FALSE>
				</IF>
			</FALSE>		
		</IF>			




		<!-- 
			*
			*
			* Smart update Finish
			*
			*
			-->
		<IF cmd="check_option" param0="smartupdate" param1="TRUE" >
			<TRUE>
				<IF cmd="is_connected">
					<TRUE>
						<IF cmd="is_there_fw_update">
							<TRUE>
								<COMMAND cmd="call_fw_update" />
							</TRUE>
						</IF>
					</TRUE>
				</IF>
		
				<COMMAND cmd="restore_max_connection" />
								
				<COMMAND cmd="delete_su_download_files" />
			</TRUE>
		</IF>	
		
		
		
		<!--
			*
			*
			*	END of Installation
			*	
			*
			-->
		<COMMAND cmd="terminate"/>	
	
		
	</INSTALL>




	<!--
	*
	*
	*	Maintenance
	*
	*
	-->
	<MAINTENANCE>
	
	<!--	
	=============   Remove  =============   
	-->
		<COMMAND cmd="set_setup_type" param0="UNINSTALL" />
				
		<COMMAND cmd="open_dlg" param0="DELL_REMOVE_SELECT_FEATURES" param1="REMOVE"/> 
		
		<COMMAND cmd="open_dlg" param0="DELL_REMOVE_INSTALL" param1="REMOVE"/> 

		<COMMAND cmd="open_dlg" param0="DELL_REMOVE_FINISH"/>
				
		<COMMAND cmd="terminate"/>
			
					
	</MAINTENANCE>

	
	
	
	
	<!-- 
		
		Called from WSP_Start() function of sswsp.dll and Wireless Setting Proram Shortcut (sswsp.exe) 
		
		-->
	
	<WSP_FLOW_PSU>
	

		<!-- 
			*
			*
			*	Wireless Setup Step
			*
			*
			-->
		
		<LABEL>WIRELESS_SETUP_STEP</LABEL>
		
		<!-- 
		=============================================================================== 
				Check Local Connection 
		===================================================================================
		--> 	
		<COMMAND cmd="wsp_initialize" />
		
		<COMMAND cmd="set_variable" param0="VAL.PROFILE_AVAILABLE" param1="NO"/>
		<COMMAND cmd="set_variable" param0="VAL.WIRELESS_AVAILABLE" param1="NO"/>
				
		
		<LABEL>WIRELESS_CI3_SEARCH_USB_STEP</LABEL> 
		
		<!--       
		================================================================
		Connect Device       
		================================================================
		-->		
		<IF cmd="wsp_find_printer">
			<FALSE>	<COMMAND cmd="OPEN_DLG" param0="DELL_WSP_CONNECT_DEVICE_PSU" /> </FALSE>
		</IF>
				
	
		<!--       
		================================================================
		Load Current Device Settings and Wireless Network List       
		================================================================
		-->	
		<LABEL>WIRELESS_CI3_CHECKING_DEVICE</LABEL>
		<SWITCH cmd="OPEN_DLG" param0="DELL_WSP_DEVICE_CHECKING" param1="WSP_CHECK">
		
			<!--  ERROR_DEVICE_DATA -->
			<CASE value="101">  
			
				<SWITCH cmd="OPEN_DLG" param0="DELL_WSP_CHECKING_ERROR_DEVICE_DATA_PSU">		
					
					<!-- Retry	-->	
					<CASE value="11"> <GOTO>WIRELESS_CI3_CHECKING_DEVICE </GOTO> </CASE>
					
					<!-- go to select connection -->
					<DEFAULT> <GOTO>WSP_PSU_WIRELESS_CANCEL</GOTO> </DEFAULT>
					
				</SWITCH>				
				
			</CASE>
			
			<!--  ERROR_WLAN_SUPPORT -->
			<CASE value="102">  				
				<COMMAND cmd="OPEN_DLG" param0="DELL_WSP_CHECKING_ERROR_WLAN_SUPPORT_PSU" /> 
				<GOTO>WSP_PSU_WIRELESS_CANCEL</GOTO> 				
			</CASE>
			
			<!--  WSP_ERROR_CONNECTED_WIRED -->
			<CASE value="107">  				
				<COMMAND cmd="OPEN_DLG" param0="DELL_WSP_DISCONNECT_WIRED_NETWORK_PSU" /> 		
				<IF cmd="wsp_find_printer">
					<FALSE>	<COMMAND cmd="OPEN_DLG" param0="DELL_WSP_CONNECT_DEVICE_PSU" /> </FALSE>
				</IF> 		
			</CASE>
			
			
			<!-- Wireless is available -->
			<CASE value="200"> <COMMAND cmd="set_variable" param0="VAL.WIRELESS_AVAILABLE" param1="YES"/> </CASE>
			
		</SWITCH>
		


		<!--       
		================================================================
		Check Wireless Settings are already configured       
		================================================================
		-->
		
		<IF cmd="check_variable" param0="VAL.WIRELESS_AVAILABLE" param1="YES">
			<TRUE>
				<SWITCH cmd="open_dlg" param0="DELL_WSP_ALREADY_CONNECTED_PSU">
				
					<!-- use current setting -->
					<CASE value = "100"> <GOTO>WIRELESS_SETTING_SUCCESS</GOTO> </CASE>
			
				</SWITCH> 
			</TRUE>
		</IF>		


			<COMMAND cmd="set_variable" param0="VAL.WIRELESS_AVAILABLE" param1="NO"/>

		
		<!-- 
		============================================================================================ 
				Show Wireless Network List 
		============================================================================================
		--> 
		<LABEL>WSP_PSU_FOUND_MODEL_STEP</LABEL> 
		<SWITCH cmd="open_dlg" param0="DELL_WSP_FOUND_SSID_PSU" step_dlg="TRUE">
					 			
			<!--  200 : Advanced Setting --> 
			<CASE value="200"> 
				<COMMAND cmd="open_dlg" param0="DELL_WSP_ADVANCED_SETTING"/>	
			</CASE>
			
			<!--  103 : Set Security Key --> 
			<CASE value="103"> 
				<COMMAND cmd="open_dlg" param0="DELL_WSP_SECURITY_KEY" step_dlg="TRUE"/> 
				<GOTO>WSP_PSU_WIRELESS_CONNECTING_STEP</GOTO>
			</CASE>
	
		</SWITCH>

	
		
		
		<!-- 
		========================================================================================= 
				Setting Confirm Dialog
		=========================================================================================					
		--> 
		<LABEL>WSP_CI3_WIRELESS_CONFIRM_STEP</LABEL> 
		<SWITCH cmd="open_dlg" param0="DELL_WSP_SETTING_CONFIRM" param1="WSP_CONFIRM" step_dlg="TRUE">
			<CASE value="300">
				<!--  300 : Change Network --> 
				<COMMAND cmd="open_dlg" param0="DELL_WSP_SET_NET_PROTOCOL" /> 
				<GOTO>WSP_PSU_WIRELESS_CONFIRM_STEP</GOTO> 
			</CASE>						
		</SWITCH>
	
	
	
		<!-- 
		========================================================================================= 
				Connecting Dialog
		=========================================================================================					
		--> 
		
		<LABEL>WSP_PSU_WIRELESS_CONNECTING_STEP</LABEL> 
	
		<IF cmd="wsp_find_printer">
			<FALSE>	<COMMAND cmd="OPEN_DLG" param0="DELL_WSP_CONNECT_DEVICE_PSU" /> </FALSE>
		</IF> 
					
		<SWITCH cmd="open_dlg" param0="DELL_WSP_WIRELESS_CONNECTING" param1="WSP_CONNECT">
			<!--  101 : WSP_ERROR_DEVICE_DATA WSP_CHECKING_ERROR_DEVICE_DATA --> 
			<CASE value="103"> <COMMAND cmd="set_variable" param0="VAR.INT.FAIL_NUM" param1="1"/> </CASE>
		
			<!--  104 : WSP_ERROR_SSID -->
			<CASE value="104"> <COMMAND cmd="set_variable" param0="VAR.INT.FAIL_NUM" param1=""/>	</CASE>
			 
			<!--  105 : WSP_ERROR_SECURITY --> 
			<CASE value="105"> <COMMAND cmd="set_variable" param0="VAR.INT.FAIL_NUM" param1="3"/>	</CASE>
			
			<!--  106 : WSP_ERROR_PC_CONNECTION_ERROR -->
			<CASE value="106"> <COMMAND cmd="set_variable" param0="VAR.INT.FAIL_NUM" param1="2"/>	</CASE>

			<!--  107 : WSP_ERROR_CONNECTED_WIRED -->
			<CASE value="107"> <COMMAND cmd="set_variable" param0="VAR.INT.FAIL_NUM" param1="4"/>	</CASE>
			
			<!--  108 : WSP_ERROR_IP_NOT_ALLOCATED -->
			<CASE value="108"> <COMMAND cmd="set_variable" param0="VAR.INT.FAIL_NUM" param1="5"/>	</CASE>
			
			<!--  109 : WSP_ERROR_GENERAL_WIRELESS -->
			<CASE value="109"> <COMMAND cmd="set_variable" param0="VAR.INT.FAIL_NUM" param1="6"/>	</CASE>
			
			<!-- Success -->
			<DEFAULT><GOTO>WIRELESS_SETTING_SUCCESS</GOTO></DEFAULT>
			
		</SWITCH>
		
		
	
<!--
		====================================================================================================================
			Show Error Dialog
		====================================================================================================================
		-->
		
		<IF cmd="check_variable" param0="VAR.INT.FAIL_NUM" param1="2">
			<TRUE>
				<COMMAND  cmd="open_dlg" param0="DELL_WSP_CONNECTING_FAILURE#VAR.INT.FAIL_NUM#" param1="DIRECT_PORT"/>
				<GOTO>WIRELESS_SETTING_SUCCESS</GOTO>
			</TRUE>
			<FALSE>
				<COMMAND  cmd="open_dlg" param0="DELL_WSP_CONNECTING_FAILURE#VAR.INT.FAIL_NUM#" />
				<GOTO>WSP_CI3_WIRELESS_CONNECTING_STEP</GOTO>
			</FALSE>
		</IF>
			
		<COMMAND  cmd="open_dlg" param0="DELL_WSP_CONNECTING_FAILURE#VAR.INT.FAIL_NUM#" />
		<GOTO>WSP_PSU_WIRELESS_CONNECTING_STEP</GOTO>
		
		

		<!-- 
		===================================================================
		Find wireless network & Complete dialog
		===================================================================
		-->
		<LABEL>WIRELESS_SETTING_SUCCESS</LABEL>
		
		<COMMAND cmd="wsp_net_find" />

		
		<!-- 
			===================================================================
			Set driver Port setting and Complete
			===================================================================
			-->
		<COMMAND cmd="open_dlg" param0="DELL_WSP_COMPLETE_NO_CHECK" />
		<COMMAND cmd="terminate" param0="IDCANCEL"/>
		
		
		<LABEL>WSP_PSU_WIRELESS_CANCEL</LABEL>
		<COMMAND cmd="open_dlg" param0="DELL_WSP_SETTING_COMPLETE" step_dlg="TRUE"/>
		<COMMAND cmd="terminate" param0="IDCANCEL"/>


	</WSP_FLOW_PSU>
	
	<!-- 
		
		Called from WSP_StartEX() function of sswsp.dll 
		
		- Searching Device should be removed because EPM will pass the device information through parameters
		
		-->
	<WSP_FLOW_EPM>
	
				<!-- 
			*
			*
			*	Wireless Setup Step
			*
			*
			-->
		
		<LABEL>WIRELESS_SETUP_STEP</LABEL>
		
		<!-- 
		=============================================================================== 
				Check Local Connection 
		===================================================================================
		--> 	
		<COMMAND cmd="wsp_initialize" />
		
		<COMMAND cmd="set_variable" param0="VAL.PROFILE_AVAILABLE" param1="NO"/>
		<COMMAND cmd="set_variable" param0="VAL.WIRELESS_AVAILABLE" param1="NO"/>
				
		
		<LABEL>WIRELESS_CI3_SEARCH_USB_STEP</LABEL> 
		
		<!--       
		================================================================
		Connect Device       
		================================================================
		-->		
		<IF cmd="wsp_check_printer">
			<FALSE>	<COMMAND cmd="OPEN_DLG" param0="DELL_WSP_CONNECT_DEVICE_PSU" /> </FALSE>
		</IF>
				
	
		<!--       
		================================================================
		Load Current Device Settings and Wireless Network List       
		================================================================
		-->	
		<LABEL>WIRELESS_CI3_CHECKING_DEVICE</LABEL>
		<SWITCH cmd="OPEN_DLG" param0="DELL_WSP_DEVICE_CHECKING" param1="WSP_CHECK">
		
			<!--  ERROR_DEVICE_DATA -->
			<CASE value="101">  
			
				<SWITCH cmd="OPEN_DLG" param0="DELL_WSP_CHECKING_ERROR_DEVICE_DATA_PSU">		
					
					<!-- Retry	-->	
					<CASE value="11"> <GOTO>WIRELESS_CI3_CHECKING_DEVICE </GOTO> </CASE>
					
					<!-- go to select connection -->
					<DEFAULT> <GOTO>WSP_PSU_WIRELESS_CANCEL</GOTO> </DEFAULT>
					
				</SWITCH>				
				
			</CASE>
			
			<!--  ERROR_WLAN_SUPPORT -->
			<CASE value="102">  				
				<COMMAND cmd="OPEN_DLG" param0="DELL_WSP_CHECKING_ERROR_WLAN_SUPPORT_PSU" /> 
				<GOTO>WSP_PSU_WIRELESS_CANCEL</GOTO> 				
			</CASE>
			
			<!--  WSP_ERROR_CONNECTED_WIRED -->
			<CASE value="107">  				
				<COMMAND cmd="OPEN_DLG" param0="DELL_WSP_DISCONNECT_WIRED_NETWORK_PSU" /> 		
				<IF cmd="wsp_find_printer">
					<FALSE>	<COMMAND cmd="OPEN_DLG" param0="DELL_WSP_CONNECT_DEVICE_PSU" /> </FALSE>
				</IF> 		
			</CASE>
			
			
			<!-- Wireless is available -->
			<CASE value="200"> <COMMAND cmd="set_variable" param0="VAL.WIRELESS_AVAILABLE" param1="YES"/> </CASE>
			
		</SWITCH>
		


		<!--       
		================================================================
		Check Wireless Settings are already configured       
		================================================================
		-->
		
		<IF cmd="check_variable" param0="VAL.WIRELESS_AVAILABLE" param1="YES">
			<TRUE>
				<SWITCH cmd="open_dlg" param0="DELL_WSP_ALREADY_CONNECTED_PSU">
				
					<!-- use current setting -->
					<CASE value = "100"> <GOTO>WIRELESS_SETTING_SUCCESS</GOTO> </CASE>
			
				</SWITCH> 
			</TRUE>
		</IF>		


			<COMMAND cmd="set_variable" param0="VAL.WIRELESS_AVAILABLE" param1="NO"/>

		
		<!-- 
		============================================================================================ 
				Show Wireless Network List 
		============================================================================================
		--> 
		<LABEL>WSP_PSU_FOUND_MODEL_STEP</LABEL> 
		<SWITCH cmd="open_dlg" param0="DELL_WSP_FOUND_SSID_PSU" step_dlg="TRUE">
					 			
			<!--  200 : Advanced Setting --> 
			<CASE value="200"> 
				<COMMAND cmd="open_dlg" param0="DELL_WSP_ADVANCED_SETTING"/>	
			</CASE>
			
			<!--  103 : Set Security Key --> 
			<CASE value="103"> 
				<COMMAND cmd="open_dlg" param0="DELL_WSP_SECURITY_KEY" step_dlg="TRUE"/> 
				<GOTO>WSP_PSU_WIRELESS_CONNECTING_STEP</GOTO>
			</CASE>
	
		</SWITCH>

	
		
		
		<!-- 
		========================================================================================= 
				Setting Confirm Dialog
		=========================================================================================					
		--> 
		<LABEL>WSP_CI3_WIRELESS_CONFIRM_STEP</LABEL> 
		<SWITCH cmd="open_dlg" param0="DELL_WSP_SETTING_CONFIRM" param1="WSP_CONFIRM" step_dlg="TRUE">
			<CASE value="300">
				<!--  300 : Change Network --> 
				<COMMAND cmd="open_dlg" param0="DELL_WSP_SET_NET_PROTOCOL" /> 
				<GOTO>WSP_PSU_WIRELESS_CONFIRM_STEP</GOTO> 
			</CASE>						
		</SWITCH>
	
	
	
		<!-- 
		========================================================================================= 
				Connecting Dialog
		=========================================================================================					
		--> 
		
		<LABEL>WSP_PSU_WIRELESS_CONNECTING_STEP</LABEL> 
	
		<IF cmd="wsp_find_printer">
			<FALSE>	<COMMAND cmd="OPEN_DLG" param0="DELL_WSP_CONNECT_DEVICE_PSU" /> </FALSE>
		</IF> 
					
		<SWITCH cmd="open_dlg" param0="DELL_WSP_WIRELESS_CONNECTING" param1="WSP_CONNECT">
			<!--  101 : WSP_ERROR_DEVICE_DATA WSP_CHECKING_ERROR_DEVICE_DATA --> 
			<CASE value="101"> <COMMAND cmd="set_variable" param0="VAR.INT.FAIL_NUM" param1="1"/> </CASE>
		
			<!--  104 : WSP_ERROR_SSID -->
			<CASE value="104"> <COMMAND cmd="set_variable" param0="VAR.INT.FAIL_NUM" param1=""/>	</CASE>
			 
			<!--  105 : WSP_ERROR_SECURITY --> 
			<CASE value="105"> <COMMAND cmd="set_variable" param0="VAR.INT.FAIL_NUM" param1="3"/>	</CASE>
			
			<!--  106 : WSP_ERROR_PC_CONNECTION_ERROR -->
			<CASE value="106"> <COMMAND cmd="set_variable" param0="VAR.INT.FAIL_NUM" param1="2"/>	</CASE>

			<!--  107 : WSP_ERROR_CONNECTED_WIRED -->
			<CASE value="107"> <COMMAND cmd="set_variable" param0="VAR.INT.FAIL_NUM" param1="4"/>	</CASE>
			
			<!--  108 : WSP_ERROR_IP_NOT_ALLOCATED -->
			<CASE value="108"> <COMMAND cmd="set_variable" param0="VAR.INT.FAIL_NUM" param1="5"/>	</CASE>
			
			<!--  109 : WSP_ERROR_GENERAL_WIRELESS -->
			<CASE value="109"> <COMMAND cmd="set_variable" param0="VAR.INT.FAIL_NUM" param1="6"/>	</CASE>
			
			<!-- Success -->
			<DEFAULT><GOTO>WIRELESS_SETTING_SUCCESS</GOTO></DEFAULT>
			
		</SWITCH>
		
		
	
<!--
		====================================================================================================================
			Show Error Dialog
		====================================================================================================================
		-->
		
		<IF cmd="check_variable" param0="VAR.INT.FAIL_NUM" param1="2">
			<TRUE>
				<COMMAND  cmd="open_dlg" param0="DELL_WSP_CONNECTING_FAILURE#VAR.INT.FAIL_NUM#" param1="DIRECT_PORT"/>
				<GOTO>WIRELESS_SETTING_SUCCESS</GOTO>
			</TRUE>
			<FALSE>
				<COMMAND  cmd="open_dlg" param0="DELL_WSP_CONNECTING_FAILURE#VAR.INT.FAIL_NUM#" />
				<GOTO>WSP_CI3_WIRELESS_CONNECTING_STEP</GOTO>
			</FALSE>
		</IF>
			
		<COMMAND  cmd="open_dlg" param0="DELL_WSP_CONNECTING_FAILURE#VAR.INT.FAIL_NUM#" />
		<GOTO>WSP_PSU_WIRELESS_CONNECTING_STEP</GOTO>
		
		

		<!-- 
		===================================================================
		Find wireless network & Complete dialog
		===================================================================
		-->
		<LABEL>WIRELESS_SETTING_SUCCESS</LABEL>
		
		<COMMAND cmd="wsp_net_find" />

		
		<!-- 
			===================================================================
			Set driver Port setting and Complete
			===================================================================
			-->
		<COMMAND cmd="open_dlg" param0="DELL_WSP_COMPLETE_NO_CHECK" />
		<COMMAND cmd="terminate" param0="IDCANCEL"/>
		
		
		<LABEL>WSP_PSU_WIRELESS_CANCEL</LABEL>
		<COMMAND cmd="open_dlg" param0="DELL_WSP_SETTING_COMPLETE" step_dlg="TRUE"/>
		<COMMAND cmd="terminate" param0="IDCANCEL"/>

	</WSP_FLOW_EPM>
	
	
		
	<EMBEDDED_INSTALL>
		<COMMAND cmd="set_setup_type" param0="INSTALL" />
		<COMMAND cmd="check_spooler" />					
		<COMMAND cmd="search_components"/>
		<COMMAND cmd="WRITE_ITEM_INFO" />
		
		
		
		<COMMAND cmd="set_variable" param0="VAL.START.DLG" param1="DELL_START_EMBEDDED"/>
			
		<IF cmd="is_erp_country">
			<TRUE><COMMAND cmd="set_variable" param0="VAL.START.DLG" param1="DELL_START_EMBEDDED_ENV"/></TRUE>			
		</IF>
		
		<LABEL>START_EMBEDDED</LABEL>
		<SWITCH cmd="open_dlg" param0="#VAL.START.DLG#" step_dlg="TRUE">
			<!--License Agreement -->
			<CASE value="10">
				<COMMAND cmd="open_dlg" param0="DELL_LICENSE_AGREEMENT" step_dlg="FALSE"/>
				<GOTO>START_EMBEDDED</GOTO>
			</CASE>
			
			<!--ERP  -->
			<CASE value="11">
				<COMMAND cmd="open_dlg" param0="DELL_EVM_NOTICE" step_dlg="FALSE" />
				<GOTO>START_EMBEDDED</GOTO>
			</CASE>
		</SWITCH>
		
		<COMMAND cmd="open_dlg" param0="DELL_SET_PRINTER_SETTING_EMBEDDED" step_dlg="FALSE" />
		<!--
		<SWITCH cmd="open_dlg" param0="DELL_SET_PRINTER_SETTING" >
			<CASE value="901"><GOTO>START_EMBEDDED</GOTO></CASE>
		</SWITCH>
		-->
		<COMMAND cmd="open_dlg" param0="DELL_INSTALL" step_dlg="FALSE" /> 

		<IF cmd="is_valid_share_folder_addr">
			<TRUE><COMMAND cmd="create_shortcut" param0="DELL_UNC_SHORTCUT" /></TRUE>
		</IF>

		<IF cmd="is_printer_installed" operator="AND" cmd_1="is_connected">			
			<TRUE>	
				<COMMAND cmd="diagnosis" />
				<COMMAND cmd="open_dlg" param0="DELL_FINISH_TEST_PAGE" param1="TEST_PAGE" step_dlg="FALSE"/>
			</TRUE>
			<FALSE>
				<COMMAND cmd="open_dlg" param0="DELL_FINISH" step_dlg="FALSE"/>
			</FALSE>		
		</IF>	
		
		<!--
			*
			*
			*	END of Installation
			*	
			*
			-->
		<COMMAND cmd="terminate"/>
	</EMBEDDED_INSTALL>
	
	<!-- 
			*
			*
			*	Command Flow
			*
			*
	-->
	<FLOW_INIT>
		
		<!-- Check the spooler status and start spooler if spooler is stopped -->
		<COMMAND cmd="check_spooler" />
		
		<!-- Add Firewall exception -->
		<COMMAND cmd="add_firewall_exception" />
		
		<!-- Turn Off seaching update server when PnP  -->
		<COMMAND cmd="turn_off_search_update"/>
	</FLOW_INIT>
</FLOW>