KB3177467 Offline Integration Problem and Solution

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

  1. steverw

    steverw MDL Novice

    Sep 2, 2013
    5
    6
    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
    5
    6
    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
    251
    60
    @steverw
    how did you proceed to try to integrate KB3177467 ? which tool did you use ?
     
  4. diy371

    diy371 MDL Member

    Jan 28, 2013
    155
    258
    10
  5. urie

    urie Moderator
    Staff Member

    May 21, 2007
    9,039
    3,388
    300
  6. mehdibleu

    mehdibleu MDL Expert

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

    mehdibleu MDL Expert

    Jun 14, 2017
    1,009
    251
    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
    12,486
    13,505
    340
  9. urie

    urie Moderator
    Staff Member

    May 21, 2007
    9,039
    3,388
    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
    251
    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
    16,110
    84,112
    340
    KB2533552 will be always asked becuase it's companion with SP1
    MS is lazy to update metadata to exclude it
     
  12. steverw

    steverw MDL Novice

    Sep 2, 2013
    5
    6
    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
     
  13. steverw

    steverw MDL Novice

    Sep 2, 2013
    5
    6
    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
     
  14. Enthousiast

    Enthousiast MDL Tester

    Oct 30, 2009
    46,902
    93,425
    450
    He has been banned on many other account names since he was known as mehdibleu;)
     
  15. steverw

    steverw MDL Novice

    Sep 2, 2013
    5
    6
    0
    ok thanks