Adobe Reader packaging not silently upgrading fro, 9.1.1 to 9.1.3
I followed the instructions in the notes (http://itninja.com/link/a-second-record-exists-for-this-alternative-name-here) to use Adobe Customization wizard to create and edit my own mst file.
My setup.ini looks like this:
[Startup]
RequireOS=Windows 2000
RequireMSI=3.0
RequireIE=6.0.2600.0
CmdLine=/sall /rs
[Product]
msi=AcroRead.msi
msi=AdbeRdrSD90_all.msi
PATCH=AdbeRdrUpd911_all_incr.msp;AdbeRdrUpd912_all_incr.msp;AdbeRdrUpd913_all_incr.msp
CmdLine=TRANSFORMS="AcroRead.mst"
[Windows 2000]
PlatformID=2
MajorVersion=5
ServicePackMajor=4
[MSI Updater]
Path=http://ardownload.adobe.com/pub/adobe/reader/win/8.x/8.0/misc/WindowsInstaller-KB893803-v2-x86.exe
******
I can install silently and successfully from Adobe Reader 7 or 8 to 9.1.3. When trying to upgrade from 9.1.0 or 9.1.1 or 9.1.2 to 9.1.3, the installer shows up visibly and asks me if i want to repair/remove the software.
I plan to use Microsoft System Centre Config Manager to install but stuck on why Adobe is asking me to repair the software. Shouldn't it upgrade? Anyone have tips to bypass this?
My other plan would be to
1. Run a bat file to remove all Adobe Reader 9.1.x version (start /wait Msiexec /uninstall {AC76BA86-7AD7-1033-7B44-A91000000001} /q /norestart)
2. Then run my custom package above.
I would rather not run the bat file and have adobe install it directly.
Thank you,
Clint
My setup.ini looks like this:
[Startup]
RequireOS=Windows 2000
RequireMSI=3.0
RequireIE=6.0.2600.0
CmdLine=/sall /rs
[Product]
msi=AcroRead.msi
msi=AdbeRdrSD90_all.msi
PATCH=AdbeRdrUpd911_all_incr.msp;AdbeRdrUpd912_all_incr.msp;AdbeRdrUpd913_all_incr.msp
CmdLine=TRANSFORMS="AcroRead.mst"
[Windows 2000]
PlatformID=2
MajorVersion=5
ServicePackMajor=4
[MSI Updater]
Path=http://ardownload.adobe.com/pub/adobe/reader/win/8.x/8.0/misc/WindowsInstaller-KB893803-v2-x86.exe
******
I can install silently and successfully from Adobe Reader 7 or 8 to 9.1.3. When trying to upgrade from 9.1.0 or 9.1.1 or 9.1.2 to 9.1.3, the installer shows up visibly and asks me if i want to repair/remove the software.
I plan to use Microsoft System Centre Config Manager to install but stuck on why Adobe is asking me to repair the software. Shouldn't it upgrade? Anyone have tips to bypass this?
My other plan would be to
1. Run a bat file to remove all Adobe Reader 9.1.x version (start /wait Msiexec /uninstall {AC76BA86-7AD7-1033-7B44-A91000000001} /q /norestart)
2. Then run my custom package above.
I would rather not run the bat file and have adobe install it directly.
Thank you,
Clint
0 Comments
[ + ] Show comments
Answers (7)
Please log in to answer
Posted by:
pjgeutjens
15 years ago
Posted by:
darkfang
15 years ago
Posted by:
anonymous_9363
15 years ago
Posted by:
comatose
15 years ago
Hi All!
Thanks :D
Would this work (removed the update for 9.1.1)
Startup]
RequireOS=Windows 2000
RequireMSI=3.0
RequireIE=6.0.2600.0
CmdLine=/sall /rs
[Product]
msi=AcroRead.msi
msi=AdbeRdrSD90_all.msi
PATCH=AdbeRdrUpd912_all_incr.msp;AdbeRdrUpd913_all_incr.msp
CmdLine=TRANSFORMS="AcroRead.mst"
[Windows 2000]
PlatformID=2
MajorVersion=5
ServicePackMajor=4
[MSI Updater]
Path=http://ardownload.adobe.com/pub/adobe/reader/win/8.x/8.0/misc/WindowsInstaller-KB893803-v2-x86.exe
Thanks :D
Would this work (removed the update for 9.1.1)
Startup]
RequireOS=Windows 2000
RequireMSI=3.0
RequireIE=6.0.2600.0
CmdLine=/sall /rs
[Product]
msi=AcroRead.msi
msi=AdbeRdrSD90_all.msi
PATCH=AdbeRdrUpd912_all_incr.msp;AdbeRdrUpd913_all_incr.msp
CmdLine=TRANSFORMS="AcroRead.mst"
[Windows 2000]
PlatformID=2
MajorVersion=5
ServicePackMajor=4
[MSI Updater]
Path=http://ardownload.adobe.com/pub/adobe/reader/win/8.x/8.0/misc/WindowsInstaller-KB893803-v2-x86.exe
Posted by:
comatose
15 years ago
Well I almost got it to work.
1. First I created an admin install with the notes by Franks from http://itninja.com/link/a-second-record-exists-for-this-alternative-name-here
2. Now armed with my 9.1.3 installer I need to check if Adobe 9.1.0 to 9.1.2 is installed. If so then it will remove the older version and upgrade.
VBS file to check, uninstall if needed and install:
Dim oShell
Set oShell = CreateObject("WScript.Shell")
sKeyPath= "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{AC76BA86-7AD7-5464-3428-900000000004}"
If RegKeyExists(sKeyPath) then
oShell.Run "Z:\Adobe\UnInstall_AcrobatReader9.1.x.vbs"
oShell.Run "Z:\Adobe\Install_AcrobatReader9.1.3.bat"
Else
oShell.Run "Z:\Adobe\Install_AcrobatReader9.1.3.bat"
end if
Function RegKeyExists(ByVal sRegKey)
' Returns True or False based on the existence of a registry key.
' This part is a compliment from Torgeir Bakken.
Dim sDescription
RegKeyExists = True
sRegKey = Trim (sRegKey)
If Not Right(sRegKey, 1) = "\" Then
sRegKey = sRegKey & "\"
End If
On Error Resume Next
oShell.RegRead "HKEYNotAKey\"
sDescription = Replace(Err.Description, "HKEYNotAKey\", "")
Err.Clear
oShell.RegRead sRegKey
RegKeyExists = sDescription <> Replace(Err.Description, sRegKey, "")
On Error Goto 0
End Function
The above VBS calls another VBS to uninstall -> UnInstall_AcrobatReader9.1.x.vbs :
On Error Resume Next
Set WshShell = WScript.CreateObject("WScript.Shell")
WshShell.Run "Msiexec /uninstall {AC76BA86-7AD7-1033-7B44-A91000000001} /q /norestart"
After this uninstall runs, this bat file is called to run ->Install_AcrobatReader9.1.3.bat
@ECHO OFF
ECHO Installing Adobe Reader 9
Msiexec /I "Z:\Adobe\AcroRead.msi" transforms="Z:\Adobe\AcroRead.mst" /qn /l*v Z:\Adobe\adobeReader9.log
exit
My only issue is that once the uninstaller runs, the installer for 9.1.3 runs immediately and hence fails because the system has not uninstalled the older version yet. How can I make the bat file wait - say for about 10 minutes?
Regards,
Clint
1. First I created an admin install with the notes by Franks from http://itninja.com/link/a-second-record-exists-for-this-alternative-name-here
2. Now armed with my 9.1.3 installer I need to check if Adobe 9.1.0 to 9.1.2 is installed. If so then it will remove the older version and upgrade.
VBS file to check, uninstall if needed and install:
Dim oShell
Set oShell = CreateObject("WScript.Shell")
sKeyPath= "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{AC76BA86-7AD7-5464-3428-900000000004}"
If RegKeyExists(sKeyPath) then
oShell.Run "Z:\Adobe\UnInstall_AcrobatReader9.1.x.vbs"
oShell.Run "Z:\Adobe\Install_AcrobatReader9.1.3.bat"
Else
oShell.Run "Z:\Adobe\Install_AcrobatReader9.1.3.bat"
end if
Function RegKeyExists(ByVal sRegKey)
' Returns True or False based on the existence of a registry key.
' This part is a compliment from Torgeir Bakken.
Dim sDescription
RegKeyExists = True
sRegKey = Trim (sRegKey)
If Not Right(sRegKey, 1) = "\" Then
sRegKey = sRegKey & "\"
End If
On Error Resume Next
oShell.RegRead "HKEYNotAKey\"
sDescription = Replace(Err.Description, "HKEYNotAKey\", "")
Err.Clear
oShell.RegRead sRegKey
RegKeyExists = sDescription <> Replace(Err.Description, sRegKey, "")
On Error Goto 0
End Function
The above VBS calls another VBS to uninstall -> UnInstall_AcrobatReader9.1.x.vbs :
On Error Resume Next
Set WshShell = WScript.CreateObject("WScript.Shell")
WshShell.Run "Msiexec /uninstall {AC76BA86-7AD7-1033-7B44-A91000000001} /q /norestart"
After this uninstall runs, this bat file is called to run ->Install_AcrobatReader9.1.3.bat
@ECHO OFF
ECHO Installing Adobe Reader 9
Msiexec /I "Z:\Adobe\AcroRead.msi" transforms="Z:\Adobe\AcroRead.mst" /qn /l*v Z:\Adobe\adobeReader9.log
exit
My only issue is that once the uninstaller runs, the installer for 9.1.3 runs immediately and hence fails because the system has not uninstalled the older version yet. How can I make the bat file wait - say for about 10 minutes?
Regards,
Clint
Posted by:
anonymous_9363
15 years ago
How can I make the bat file wait - say for about 10 minutes?Easy: don't use a batch file but control the whole thing with a VBS. That way, you can add proper error-trapping, since the current code has none.
Once you've done that, re: waiting for execution completion, look up the parameter list for the .Run method on MSDN.
Posted by:
Simon_D_M
14 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.