symantec silent install
I'm new to the game and I finished with symantecs help a batch file that uninstalled and reinstalled symantec corprate editoin 9.0. Now before i deploy this I want the batch file to look for the 9.0 version so I don't get caught in a loop. Because after I run my script it has to restart. Does anyone know what registry keys to look for and how I should type it into my script so it will look for the version I want install and if its installed leave it alone and if its not run the program???[X(]
Thank you
Evan Reeves
Thank you
Evan Reeves
0 Comments
[ + ] Show comments
Answers (12)
Please log in to answer
Posted by:
rikx2
19 years ago
hi evpcb
what script are you using? vbscript? for batch you have to can use the reg command and query the registry key for SAV9 which is
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{848AC794-8B81-440A-81AE-6474337DB527}\DisplayName="Symantec AntiVirus"
if you could put in detail what you want to do i may scrap up a vbsript for you to:
check if sav 9 is installed
uninstall if version not matched and install the correct version
suppress the reboot and instead shows a msg prompting users they need to restart
is this what you wanted to do?
regards
rick =)
what script are you using? vbscript? for batch you have to can use the reg command and query the registry key for SAV9 which is
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{848AC794-8B81-440A-81AE-6474337DB527}\DisplayName="Symantec AntiVirus"
if you could put in detail what you want to do i may scrap up a vbsript for you to:
check if sav 9 is installed
uninstall if version not matched and install the correct version
suppress the reboot and instead shows a msg prompting users they need to restart
is this what you wanted to do?
regards
rick =)
Posted by:
rikx2
19 years ago
Posted by:
evpcb
19 years ago
Posted by:
evpcb
19 years ago
Posted by:
rikx2
19 years ago
hi
try this one =)
sRegKey = "HKLM\Software\Microsoft\Windows\CurrentVersion\Uninstall\{0EFC6259-3AD8-4CD2-BC57-D4937AF5CC0E}" 'replace with correct UID for yiou correct version of SAV
sRegValue = sRegKey & "\DisplayVersion"
NewVersion = "9.0.0.0" ' replace with your correct version on SAV
MsgBox "Your Current Version of AntiVirus is" & vbnewline & vbnewline & (RegValueExists(sRegValue))
If NewVersion <> (RegValueExists(sRegValue)) Then
MsgBox "Your have the wrong version of Antivirus!"
' place command here if wrong version is found on workstation
Else
MsgBox "You have the correct version of AntiVirus!"
' place command here if correct version is found on workstation
End If
Function RegValueExists(sRegValue)
' Returns True or False based of the existence of a registry value.
Dim oShell, RegReadReturn
Set oShell = CreateObject("WScript.Shell")
RegValueExists = True ' init value
On Error Resume Next
RegReadReturn = oShell.RegRead(sRegValue)
If Err.Number <> 0 Then
RegValueExists = False
Else
RegValueExists = RegReadReturn
End If
On Error Goto 0
End Function
happy coding =)
rick
try this one =)
sRegKey = "HKLM\Software\Microsoft\Windows\CurrentVersion\Uninstall\{0EFC6259-3AD8-4CD2-BC57-D4937AF5CC0E}" 'replace with correct UID for yiou correct version of SAV
sRegValue = sRegKey & "\DisplayVersion"
NewVersion = "9.0.0.0" ' replace with your correct version on SAV
MsgBox "Your Current Version of AntiVirus is" & vbnewline & vbnewline & (RegValueExists(sRegValue))
If NewVersion <> (RegValueExists(sRegValue)) Then
MsgBox "Your have the wrong version of Antivirus!"
' place command here if wrong version is found on workstation
Else
MsgBox "You have the correct version of AntiVirus!"
' place command here if correct version is found on workstation
End If
Function RegValueExists(sRegValue)
' Returns True or False based of the existence of a registry value.
Dim oShell, RegReadReturn
Set oShell = CreateObject("WScript.Shell")
RegValueExists = True ' init value
On Error Resume Next
RegReadReturn = oShell.RegRead(sRegValue)
If Err.Number <> 0 Then
RegValueExists = False
Else
RegValueExists = RegReadReturn
End If
On Error Goto 0
End Function
happy coding =)
rick
Posted by:
rikx2
19 years ago
Posted by:
evpcb
19 years ago
'sRegKey' is not recognized as an internal or external command,
operable program or batch file.
'sRegValue' is not recognized as an internal or external command,
operable program or batch file.
'"\DisplayVersion"' is not recognized as an internal or external command,
operable program or batch file.
'NewVersion' is not recognized as an internal or external command,
operable program or batch file.
) was unexpected at this time.
operable program or batch file.
'sRegValue' is not recognized as an internal or external command,
operable program or batch file.
'"\DisplayVersion"' is not recognized as an internal or external command,
operable program or batch file.
'NewVersion' is not recognized as an internal or external command,
operable program or batch file.
) was unexpected at this time.
Posted by:
rikx2
19 years ago
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
so that the conversation will remain readable.