Windows Update Manager

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

  1. DavidXanatos

    DavidXanatos MDL Senior Member

    Joined:
    May 23, 2010
    Messages:
    387
    Likes Received:
    1,478
    Trophy Points:
    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

    Joined:
    Dec 23, 2014
    Messages:
    321
    Likes Received:
    506
    Trophy Points:
    10
    I don't understand how i install v4.6 if v1803 have all v4 included
     
  3. DavidXanatos

    DavidXanatos MDL Senior Member

    Joined:
    May 23, 2010
    Messages:
    387
    Likes Received:
    1,478
    Trophy Points:
    10
  4. BALTAGY

    BALTAGY MDL Guide Dog

    Joined:
    Dec 23, 2014
    Messages:
    321
    Likes Received:
    506
    Trophy Points:
    10
  5. DavidXanatos

    DavidXanatos MDL Senior Member

    Joined:
    May 23, 2010
    Messages:
    387
    Likes Received:
    1,478
    Trophy Points:
    10
    which ltsb are you using 2015 or 2016? is the update service enabled?
     
  6. DavidXanatos

    DavidXanatos MDL Senior Member

    Joined:
    May 23, 2010
    Messages:
    387
    Likes Received:
    1,478
    Trophy Points:
    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 MDL Expert

    Joined:
    Oct 22, 2010
    Messages:
    1,906
    Likes Received:
    3,055
    Trophy Points:
    60
    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

    Joined:
    May 23, 2010
    Messages:
    387
    Likes Received:
    1,478
    Trophy Points:
    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 MDL Expert

    Joined:
    Oct 22, 2010
    Messages:
    1,906
    Likes Received:
    3,055
    Trophy Points:
    60
    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

    Joined:
    Jul 14, 2013
    Messages:
    7,625
    Likes Received:
    14,952
    Trophy Points:
    240
    @DavidXanatos

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

    DavidXanatos MDL Senior Member

    Joined:
    May 23, 2010
    Messages:
    387
    Likes Received:
    1,478
    Trophy Points:
    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 MDL Expert

    Joined:
    Oct 22, 2010
    Messages:
    1,906
    Likes Received:
    3,055
    Trophy Points:
    60
    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

    Joined:
    May 23, 2010
    Messages:
    387
    Likes Received:
    1,478
    Trophy Points:
    10
    that is strange, why would the API report so many invalid updates in the History :/
     
  14. pf100

    pf100 MDL Expert

    Joined:
    Oct 22, 2010
    Messages:
    1,906
    Likes Received:
    3,055
    Trophy Points:
    60
    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 MDL Spinning Tortoise

    Joined:
    Dec 21, 2012
    Messages:
    4,514
    Likes Received:
    4,541
    Trophy Points:
    150
    Welcome to Windows, where strange things may always happen. Take a seat, strap on, and enjoy! :p
     
  16. DavidXanatos

    DavidXanatos MDL Senior Member

    Joined:
    May 23, 2010
    Messages:
    387
    Likes Received:
    1,478
    Trophy Points:
    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

    Joined:
    Aug 8, 2018
    Messages:
    1,121
    Likes Received:
    927
    Trophy Points:
    60
    :eek:
     
  18. abbodi1406

    abbodi1406 MDL KB0000001

    Joined:
    Feb 19, 2011
    Messages:
    12,067
    Likes Received:
    55,424
    Trophy Points:
    340