Adobe reader repair script
Is there a way to run Adobe reader 7.0.1 repair option normally started from control panel, add remove programs.. silently without user intervention?
-Jouko-
-Jouko-
0 Comments
[ + ] Show comments
Answers (2)
Please log in to answer
Posted by:
WiseUser
19 years ago
Msiexec /f {ProductCode}
If you don't know the ProductCode then save the following script as a ".vbs" file, and then drag/drop a copy of the MSI used to install Acrobat Reader onto the script.
Const msiOpenDatabaseModeDirect = 2
Set oInst = CreateObject("WindowsInstaller.Installer")
sDBPath = Wscript.Arguments(0)
Set oDB = oInst.OpenDataBase(sDBPath, msiOpenDatabaseModeDirect)
sQuery = "SELECT `Value` FROM `Property` WHERE `Property` = 'ProductCode'"
Set oView = oDB.OpenView(sQuery)
oView.Execute
Set oRecord = oView.Fetch
InputBox "ProductCode is the following:", "PRODUCT CODE", oRecord.StringData(1)
Set oInst = Nothing
If you don't know the ProductCode then save the following script as a ".vbs" file, and then drag/drop a copy of the MSI used to install Acrobat Reader onto the script.
Const msiOpenDatabaseModeDirect = 2
Set oInst = CreateObject("WindowsInstaller.Installer")
sDBPath = Wscript.Arguments(0)
Set oDB = oInst.OpenDataBase(sDBPath, msiOpenDatabaseModeDirect)
sQuery = "SELECT `Value` FROM `Property` WHERE `Property` = 'ProductCode'"
Set oView = oDB.OpenView(sQuery)
oView.Execute
Set oRecord = oView.Fetch
InputBox "ProductCode is the following:", "PRODUCT CODE", oRecord.StringData(1)
Set oInst = Nothing
Posted by:
Joukoo
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.