Windows Update Manager

Discussion in 'MDL Projects and Applications' started by DavidXanatos, Aug 16, 2018.

  1. DavidXanatos

    DavidXanatos MDL Senior Member

    May 23, 2010
    409
    1,507
    10
    I theory that should work, but something makes problems, seemingly related to the used .NET version.
    Testing if explicitly installing resolves the issue would be helpfull
     
  2. BALTAGY

    BALTAGY MDL Guide Dog

    Dec 23, 2014
    350
    620
    10
    I don't understand how i install v4.6 if v1803 have all v4 included
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. BALTAGY

    BALTAGY MDL Guide Dog

    Dec 23, 2014
    350
    620
    10
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. pf100

    pf100 Duct Tape Coder

    Oct 22, 2010
    2,067
    3,454
    90
  5. DavidXanatos

    DavidXanatos MDL Senior Member

    May 23, 2010
    409
    1,507
    10
    which ltsb are you using 2015 or 2016? is the update service enabled?
     
  6. DavidXanatos

    DavidXanatos MDL Senior Member

    May 23, 2010
    409
    1,507
    10
    Hmm, strange, can you try the build I attached,
    open it in a command prompt with admin privileges it will than log its startup progress to the console window. so we can find out where it gangs.

    should look somethign like this:
    Code:
    C:\Projects\wumgr\wumgr\bin\Debug>Starting...
    Alloc AppLog...
    Alloc WuAgent...
    Alloc WuMgr...
    AppLog Init...
    LOG: Windows Update Manager, Version v0.2 by David Xanatos
    LOG: This Tool is Open Source under the GNU General Public License, Version 3
    
    LOG: Windows Update Agent Version: 8.0 (10.0.17134.1)
    WuAgent Init...
    Ready
    

    When its started not in a console or the console it cant log anything, similarity if the console used to start it does not have admin rights, i use AttachConsole from "kernel32.dll" to attach to an existing console window, this fails when the parent console does not have the same level of privileges as the started process.

    Cheers
    David X.
     

    Attached Files:

  7. pf100

    pf100 Duct Tape Coder

    Oct 22, 2010
    2,067
    3,454
    90
    While I was searching for info, it opened about 5 minutes later, so:
    Code:
    C:\Users\GT\Desktop\wumgr-debug>Starting...
    Alloc AppLog...
    Alloc WuAgent...
    Alloc WuMgr...
    AppLog Init...
    LOG: Windows Update Manager, Version v0.2 by David Xanatos
    LOG: This Tool is Open Source under the GNU General Public License, Version 3
    LOG: Windows Update Agent Version: 8.0 (10.0.14393.2368)
    WuAgent Init...
    ***(5 minute wait)***
    Ready
    
     
  8. DavidXanatos

    DavidXanatos MDL Senior Member

    May 23, 2010
    409
    1,507
    10
    Interesting, wouldn't expect the issue to be there, i added some more log lines to find the cause, could you please test the next attached build
     

    Attached Files:

  9. pf100

    pf100 Duct Tape Coder

    Oct 22, 2010
    2,067
    3,454
    90
    Code:
    C:\Users\GT\Desktop\wumgr-debug>Starting...
    Alloc AppLog...
    Alloc WuAgent...
    Alloc WuMgr...
    AppLog Init...
    LOG: Windows Update Manager, Version v0.2 by David Xanatos
    LOG: This Tool is Open Source under the GNU General Public License, Version 3
    LOG: Windows Update Agent Version: 8.0 (10.0.14393.2368)
    WuAgent Init...
    Listing update sources
    Loading GPO
    Updating Lists
    *** (8 minute wait) ***
    Parsing commandline options
    Ready
     
  10. Mr.X

    Mr.X MDL Guru

    Jul 14, 2013
    8,556
    15,642
    270
    @DavidXanatos

    Could you put a nice icon on wumgr.exe?
    You know just a cosmetic upgrade /lol
     
  11. DavidXanatos

    DavidXanatos MDL Senior Member

    May 23, 2010
    409
    1,507
    10
    Ok now this one, I added more logging and improved list loading, can it be that you have a very long update history?

    PS: icon added
     

    Attached Files:

  12. pf100

    pf100 Duct Tape Coder

    Oct 22, 2010
    2,067
    3,454
    90
    Bingo! That one loaded instantly. Update history says 1,498 updates.About 1,200 are blank with a date of 12/30/1899, the rest are mostly defender updates, and then 90 actual real windows and office updates. So I don't really have a long update history. My hard drive died about 6 months ago and I did a clean install then.
     
  13. DavidXanatos

    DavidXanatos MDL Senior Member

    May 23, 2010
    409
    1,507
    10
    that is strange, why would the API report so many invalid updates in the History :/
     
  14. pf100

    pf100 Duct Tape Coder

    Oct 22, 2010
    2,067
    3,454
    90
    I don't know, but if I can help in any way by sending you files or other info, let me know.
     
  15. Carlos Detweiller

    Carlos Detweiller Emperor of Ice-Cream

    Dec 21, 2012
    6,756
    7,688
    210
    Welcome to Windows, where strange things may always happen. Take a seat, strap on, and enjoy! :p
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  16. DavidXanatos

    DavidXanatos MDL Senior Member

    May 23, 2010
    409
    1,507
    10
    I could reproduce the error on my LTSB vm after running a few updates, it seams that the API call which returns the count of history entries returns to many, and when querying those you get empty results, will be fixed in the next build.

    Cheers
    David X.
     
  17. rayleigh_otter

    rayleigh_otter MDL Expert

    Aug 8, 2018
    1,121
    933
    60
    :eek:
     
  18. abbodi1406

    abbodi1406 MDL KB0000001

    Feb 19, 2011
    17,186
    90,643
    340