Here is what i have come up with that so far is working even for older versions:
$NAVHome = ReadValue("HKLM\software\INTEL\LANDesk\VirusProtect6\CurrentVersion\", "Home Directory")
$NavExecutable = GETFILEVERSION($NAVHome +"\vpc32.exe","ProductVersion")
$ver1 = (SUBSTR($NavExecutable, 8, 1))
$ver2 = (SUBSTR($NavExecutable, 10, 1))
Select
Case $ver1 < 3
RUN "\\$server_name\vphome\clt-inst\win32\setup.exe /S /v/qn"
Case $ver2 = 4
RUN "msiexec /update \\$server_name\netlogon\sav396.msp /passive /qr /norestart"
EndSelect
This solves the issue of listing each of the known versions, (5 on our systems) that all need to be updated, (with much less typing
). And also gives me the flexibility to easily modify these lines for other programs in the future.
Thoughts? Comments?
Tell me it's all jacked up, I can take it...
_________________________
If you're not livin' on the edge, you're takin' up too much space!