0 Replies Latest reply on Oct 28, 2009 8:48 AM by hgiljr

    VBS Script to update Acrobat via SCCM (SMS)

    hgiljr

      I posted this on the wrong forum so I was sent over here...

       

      Good day everyone. So I found the following script and have tested it manually on a computer of computers, but somewhat failes via SCCM:

      Dim objShell, RegLocate
      Set objShell = WScript.CreateObject("WScript.Shell")
      On error resume next

      Dim sngVersion

      ''' Adobe 7.0.0
      sngVersion = objShell.RegRead ("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{AC76B A86-1033-0000-BA7E-000000000002}\DisplayVersion")
      if sngVersion="7.0.0" then
      objShell.run "msiexec /p AcSt710.msp /quiet /qn /norestart", 0, True
      end if

      ''' Adobe 7.0.0
      sngVersion = objShell.RegRead ("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{AC76B A86-1033-0000-7760-000000000002}\DisplayVersion")
      if sngVersion="7.0.0" then
      objShell.run "msiexec /p acpr710.msp/quiet /qn /norestart", 0, True
      end if

      ''' Adobe 7.1.0
      sngVersion = objShell.RegRead ("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{AC76B A86-1033-0000-BA7E-000000000002}\DisplayVersion")
      if sngVersion="7.1.0" then
      objShell.run "msiexec /p AcroUpd711.msp /quiet /qn /norestart", 0, True
      end if

      ''' Adobe 7.1.0
      sngVersion = objShell.RegRead ("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{AC76B A86-1033-0000-7760-000000000002}\DisplayVersion")
      if sngVersion="7.1.0" then
      objShell.run "msiexec /p AcroUpd711.msp /quiet /qn /norestart", 0, True
      end if


      ''' Adobe 7.1.1
      sngVersion = objShell.RegRead ("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{AC76B A86-1033-0000-BA7E-000000000002}\DisplayVersion")
      if sngVersion="7.1.1" then
      objShell.run "msiexec /p AcrobatUpd712_all_incr.msp /quiet /qn /norestart", 0, True
      end if


      ''' Adobe 7.1.1
      sngVersion = objShell.RegRead ("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{AC76B A86-1033-0000-7760-000000000002}\DisplayVersion")
      if sngVersion="7.1.1" then
      objShell.run "msiexec /p AcrobatUpd712_all_incr.msp /quiet /qn /norestart", 0, True
      end if

      ''' Adobe 7.1.2
      sngVersion = objShell.RegRead ("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{AC76B A86-1033-0000-BA7E-000000000002}\DisplayVersion")
      if sngVersion="7.1.2" then
      objShell.run "msiexec /p AcrobatUpd713_all_incr.msp /quiet /qn /norestart", 0, True
      end if

      ''' Adobe 7.1.2
      sngVersion = objShell.RegRead ("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{AC76B A86-1033-0000-7760-000000000002}\DisplayVersion")
      if sngVersion="7.1.2" then
      objShell.run "msiexec /p AcrobatUpd713_all_incr.msp /quiet /qn /norestart", 0, True
      end if

      ''' Adobe 7.1.3
      sngVersion = objShell.RegRead ("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{AC76B A86-1033-0000-BA7E-000000000002}\DisplayVersion")
      if sngVersion="7.1.3" then
      objShell.run "msiexec /p AcrobatUpd714_all_incr.msp /quiet /qn /norestart", 0, True
      end if

      ''' Adobe 7.1.3
      sngVersion = objShell.RegRead ("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{AC76B A86-1033-0000-7760-000000000002}\DisplayVersion")
      if sngVersion="7.1.3" then
      objShell.run "msiexec /p AcrobatUpd714_all_incr.msp /quiet /qn /norestart", 0, True
      end if

      WScript.Quit

       

       

      As you can see, I am locating all different versions and then installing the correct patch.  When I run it manually it works just fine, but via SCCM it updates some but not with all patches, just some patches.  Any idea what is wrong?  Thanks