KB3177467 Offline Integration Problem and Solution

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

  1. steverw

    steverw MDL Novice

    Joined:
    Sep 2, 2013
    Messages:
    5
    Likes Received:
    6
    Trophy Points:
    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. abbodi1406

    abbodi1406 MDL KB0000001

    Joined:
    Feb 19, 2011
    Messages:
    12,069
    Likes Received:
    55,429
    Trophy Points:
    340
  3. steverw

    steverw MDL Novice

    Joined:
    Sep 2, 2013
    Messages:
    5
    Likes Received:
    6
    Trophy Points:
    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
     
  4. mehdibleu

    mehdibleu MDL Expert

    Joined:
    Jun 14, 2017
    Messages:
    1,009
    Likes Received:
    248
    Trophy Points:
    60
    @steverw
    how did you proceed to try to integrate KB3177467 ? which tool did you use ?
     
  5. diy371

    diy371 MDL Member

    Joined:
    Jan 28, 2013
    Messages:
    144
    Likes Received:
    229
    Trophy Points:
    10
  6. urie

    urie Moderator Staff Member

    Joined:
    May 21, 2007
    Messages:
    9,035
    Likes Received:
    3,383
    Trophy Points:
    300
  7. mehdibleu

    mehdibleu MDL Expert

    Joined:
    Jun 14, 2017
    Messages:
    1,009
    Likes Received:
    248
    Trophy Points:
    60
  8. mehdibleu

    mehdibleu MDL Expert

    Joined:
    Jun 14, 2017
    Messages:
    1,009
    Likes Received:
    248
    Trophy Points:
    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 ?
     
  9. xinso

    xinso MDL Guru

    Joined:
    Mar 5, 2009
    Messages:
    6,268
    Likes Received:
    8,659
    Trophy Points:
    210
  10. urie

    urie Moderator Staff Member

    Joined:
    May 21, 2007
    Messages:
    9,035
    Likes Received:
    3,383
    Trophy Points:
    300
    Yes that is what he said, but that does not matter as NTlite is not developed or supported on this forum.
     
  11. mehdibleu

    mehdibleu MDL Expert

    Joined:
    Jun 14, 2017
    Messages:
    1,009
    Likes Received:
    248
    Trophy Points:
    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.
     
  12. abbodi1406

    abbodi1406 MDL KB0000001

    Joined:
    Feb 19, 2011
    Messages:
    12,069
    Likes Received:
    55,429
    Trophy Points:
    340
    KB2533552 will be always asked becuase it's companion with SP1
    MS is lazy to update metadata to exclude it
     
  13. steverw

    steverw MDL Novice

    Joined:
    Sep 2, 2013
    Messages:
    5
    Likes Received:
    6
    Trophy Points:
    0
    Hi. Sorry for the long delay in my reply. No special tools other than SetACL, everything else is just done with dism in the normal way

    On another issue I also had problems with offline installation of SP1 into the original RTM image

    Although I found workarounds for that in this forum and elsewhere I found that when I installed an actual system from my new SP1 image there were all sorts of problems with installing further updates and programs failing to install because of unsigned drivers so probably easier to just a standard SP1 dvd
     
  14. steverw

    steverw MDL Novice

    Joined:
    Sep 2, 2013
    Messages:
    5
    Likes Received:
    6
    Trophy Points:
    0
    Hi. Sorry for the long delay in reply.

    Yes, NTlite does not have this problem so Nuhi has solved it somehow. However, NTlite is not free and the code is not available and so that method is rather outside the spirit of this forum
     
  15. Enthousiast

    Enthousiast MDL Tester

    Joined:
    Oct 30, 2009
    Messages:
    35,567
    Likes Received:
    59,638
    Trophy Points:
    450
    He has been banned on many other account names since he was known as mehdibleu;)
     
  16. steverw

    steverw MDL Novice

    Joined:
    Sep 2, 2013
    Messages:
    5
    Likes Received:
    6
    Trophy Points:
    0
    ok thanks