WHat Im trying to accomplish is to verify that the version is 3.5 or less than if so then copy this executable file to the C:\Temp Directory. Then execute the FramePackage. But if this has the 3.5 version already installed on the computer then bypass the installation process and complete the script. Can anyone help me with this issue. The script below doesnt seem to work and from looking at it, it should???? Could use the help Thanks!!!


$ePOAgent=ReadValue('HKEY_LOCAL_MACHINE\SOFTWARE\Network Associates\ePolicy Orchestrator\Application Plugins\EPOAGENT3000','Version')

? "Checking for ePOAgent Install"
If $ePOAgent<'3.5'

? "Downloading ePO Agent ver 3.5"
MD "c:\Temp"
Shell "%COMSPEC% /c c:\windows\system32\xcopy.exe " + @LSERVER+ "\netlogon\Utility\ePOAgent\FramePKG.exe C:\temp /e /y /d"

? "Installing ePO Agent ver 3.5"
Run "%COMSPEC% /c c:\temp\FramePkg.exe /Install=Agent /Silent"

? "Installation Completed."
Else
? "Current ePO Agent Version " + $ePOAgent + " already installed."
EndIf
EndIf