KB3177467 Offline Integration Problem and Solution

Discussion in 'Windows 7' started by steverw, Mar 18, 2018.

  1. steverw

    steverw MDL Novice

    Sep 2, 2013
    2
    4
    0
    Windows 7 KB3177467 offline integration problem

    KB3177467 has a problem thats prevents further integrations (error 0x800f082f) once it has been integrated

    I noticed that NTLite does not have this problem with kb3177467 and so Nuhi must have found a way round it

    I decided to do some research and the problem is that kb3177467 leaves a registry key set with value that prevents further integrations

    The key is HKLM\Software\Microsoft\Windows\CurrentVersion\Component Based Servicing\SessionsPending

    This key has a value called "Exclusive" that is set to 3 and my research suggests it should be 0

    No problem I thought! Just load the regisry hive after KB3177467 and change the value to 0. Not so easy though as access was denied probably because the key was owned by our old friend TrustedInstaller

    After a few hours I found a solution with the SetACL tool

    Here is my code that integrates kb3177467 first and then does the registry mod:-


    dism /image:mount1 %DISM_GLOBAL% /ADD-PACKAGE /PACKAGEPATH:VariousUpdates\Windows6.1-kb3177467-x64.cab
    reg load HKLM\TempSoftware mount1\windows\system32\config\Software
    setacl -on "HKLM\TempSoftware\Microsoft\Windows\CurrentVersion\Component Based Servicing\SessionsPending" -ot reg -actn setowner -ownr n:Administrators
    setacl -on "HKLM\TempSoftware\Microsoft\Windows\CurrentVersion\Component Based Servicing\SessionsPending" -ot reg -actn ace -ace n:Administrators;p:full
    reg add "HKLM\TempSoftware\Microsoft\Windows\CurrentVersion\Component Based Servicing\SessionsPending" /v Exclusive /t REG_DWORD /d 0 /f
    reg unload HKLM\TempSoftware


    Great! any other updates can now be integrated with no problem

    There are easier solutions than this such as integrating kb3177467 last so that no futher integraions are needed or using SetupComplete.cmd but these have already been discussed elsewhere

    However if you prefer to use the usual offline integration method the above works fine

    There are probably alternatives to SetACL such as RegIni but I am not familiar with them

    Could probably be incorporated into MSMGToolkit

    Do not forget to put SetACL in your PATH and modify the script to set "mount1" to your own mount directory name and change the SetACL "setownr" and "ace" if you need to but "Administators" seems to work fine
     
  2. steverw

    steverw MDL Novice

    Sep 2, 2013
    2
    4
    0
    Thanks for these links. I did have a look around the forums for a solution but didnt come across them

    Although a lifelong and experienced programmer I am not that knowlegeable about windows registry or permssions but the problem was nagging me so much that I was determined to find a solution and that was the first solution I worked out and your suggestions are probably much cleaner

    Thanks for your great contributions to the forum, they are very useful
     
  3. mehdibleu

    mehdibleu MDL Expert

    Jun 14, 2017
    1,009
    214
    60
    @steverw
    how did you proceed to try to integrate KB3177467 ? which tool did you use ?
     
  4. diy371

    diy371 MDL Member

    Jan 28, 2013
    128
    182
    10
  5. urie

    urie Moderator
    Staff Member

    May 21, 2007
    8,753
    3,113
    300
  6. mehdibleu

    mehdibleu MDL Expert

    Jun 14, 2017
    1,009
    214
    60
  7. mehdibleu

    mehdibleu MDL Expert

    Jun 14, 2017
    1,009
    214
    60
    Are you saying that if you use NTlite to integrate kb3177467 update offline, you won't have that problem with integrating further updates or i misunderstood what you said ?
     
  8. xinso

    xinso MDL Guru

    Mar 5, 2009
    4,242
    5,511
    150
  9. urie

    urie Moderator
    Staff Member

    May 21, 2007
    8,753
    3,113
    300
    Yes that is what he said, but that does not matter as NTlite is not developed or supported on this forum.
     
  10. mehdibleu

    mehdibleu MDL Expert

    Jun 14, 2017
    1,009
    214
    60
    #11 mehdibleu, Mar 21, 2018
    Last edited: Mar 21, 2018
    if i go by what @abbodi1406 said in link 2, the workaround he mentionned allows to hide KB2533552 and KB3177467 and not integrating them as from what he said in the same post, these updates cannot be integrated offline normally or maybe what he meant is that the trick he mentionned allows to get both of these updates integrated "secretely" and not the usual way.
     
  11. abbodi1406

    abbodi1406 MDL KB0000001

    Feb 19, 2011
    8,205
    27,835
    270
    KB2533552 will be always asked becuase it's companion with SP1
    MS is lazy to update metadata to exclude it