;Declared Variables
$RTRNSOPHOS3 = EXIST ("%ProgramFiles%\Sophos\Sophos Anti-Virus\SavService.exe")
$RTRNSOPHOS4 = EXIST ("%ProgramFiles(x86)%\Sophos\Sophos Anti-Virus\SavService.exe")
$RTRNSOPHOS3PATH = "%ProgramFiles%\Sophos\Sophos Anti-Virus\"
$RTRNSOPHOS4PATH = "%ProgramFiles(x86)%\Sophos\Sophos Anti-Virus\"
;************************************************************
;** Check OS version for Token File Placement Then Create **
;************************************************************
;Check Which OS Version is Installed
$Handle = FreeFileHandle()
IF $Handle > 0
If $RTRNSOPHOS3 = 1
IF Open($Handle, $RTRNSOPHOS3PATH + "Alto-INS-Track.txt", 5) = 0
;at (14,5) "RTRNSOPHOS3 $RTRNSOPHOS3PATH + "Alto-INS-Track.txt""
goto FILETOKEN
ENDIF
ELSE
IF $RTRNSOPHOS4 = 1
IF Open($Handle, $RTRNSOPHOS4PATH + "Alto-INS-Track.txt", 5) = 0 goto FILETOKEN
ENDIF
ENDIF
ENDIF
Else
goto End_sub
ENDIF