Agent installation is not working in 9010

Agent installation is not working in 9010

Gents, have you checked your InstallAgent.vbs script in the latest version ?

Windows 8.0

As I can see, that doesn't work at all in InstallAgent.vbs:

 if(Cdbl(currVer)>Cdbl(latVer) or (Cdbl(currVer)=Cdbl(latVer) and Cdbl(currSP)>=Cdbl(latSP) )) then
  'Wscript.Echo "already in latest version, so no need to download the agent again."
  Wscript.quit(0)
 end if



MSI will be never installed for any params.

 

 

It should be something else:

 

if(not isNull(latestAgentVersion) and latestAgentVersion <> "")then

 latMaVer = Left(latestAgentVersion,Instr(latestAgentVersion,".")-1)
 latMiVer = Mid(latestAgentVersion, Instr(latestAgentVersion,".")+1, InstrRev(latestAgentVersion,".")-Instr(latestAgentVersion,".")-1)
 latSP = Mid(latestAgentVersion,InstrRev(latestAgentVersion,".")+1)

 currMaVer = Left(currentVersion,Instr(currentVersion,".")-1)
 currMiVer = Mid(currentVersion,Instr(currentVersion,".")+1, InstrRev(currentVersion,".")-Instr(currentVersion,".")-1)
 currSP = Mid(currentVersion,InstrRev(currentVersion,".")+1)

'Wscript.Echo "Latest: " & latMaVer & ", " & latMiVer & ", "  & latSP
'Wscript.Echo "Current: " & currMaVer & ", " & currMiVer  & ", " & currSP

 if( (Cdbl(currMaVer)>Cdbl(latMaVer)) or _
            (Cdbl(currMaVer)=Cdbl(latMaVer) and (Cdbl(currMiVer)>Cdbl(latMiVer))) or _
            (Cdbl(currMaVer)=Cdbl(latMaVer) and Cdbl(currMiVer)=Cdbl(latMiVer) and Cdbl(currSP)>=Cdbl(latSP) ) ) then
    Wscript.Echo "already in latest version, so no need to download the agent again."
    Wscript.quit(0)
 end if
end if
Wscript.Echo "Going to install."






 

Please check and fix. Thanks

                  New to ADSelfService Plus?