#RequireAdmin
#Region ;**** Directives created by AutoIt3Wrapper_GUI ****
#AutoIt3Wrapper_Icon=..\img\PSI.ico
#EndRegion ;**** Directives created by AutoIt3Wrapper_GUI ****
#include <FileConstants.au3>
#include <MsgBoxConstants.au3>
#include <WinAPIFiles.au3>
Run("V2\NantianPR9_LQ_Driver_v1.0.0.0.exe")
If @OSArch == "IA64" Or @OSArch == "X64" Then
	sleep (2000) ;delay 2sec
	WinWaitActive("Setup","Completing the Nantian Printer")
	FileCopy("V2\Nantian Printer LQ Driver\ia64\360\NantianPR-LQ.GPD", @WindowsDir & "\System32\spool\drivers\x64\3", $FC_OVERWRITE + $FC_CREATEPATH)
	ElseIf @OSArch == "X86" Then
	sleep (2000) ;delay 2sec
	WinWaitActive("Setup","Completing the Nantian Printer")
	FileCopy("V2\Nantian Printer LQ Driver\i386\360\NantianPR-LQ.GPD", @WindowsDir & "\System32\spool\drivers\w32x86\3", $FC_OVERWRITE + $FC_CREATEPATH)
	EndIf
Exit