Tntman 14 Posted April 16, 2020 (edited) I was wondering is there any way to display list of updates in your delphi application ? Or to even upgrade or downgrade OS from it ? Edited April 16, 2020 by Tntman Share this post Link to post
timfrost 78 Posted April 16, 2020 There is a function to list the pending updates in Mitec tools: https://www.mitec.cz/msics.html. And there is a Windows API for Windows Updates which this uses. 1 Share this post Link to post
Markus Kinzler 174 Posted April 16, 2020 https://docs.microsoft.com/en-us/windows/win32/api/_wua/ 1 Share this post Link to post
Lars Fosdal 1792 Posted April 16, 2020 Not sure why one would want to do this in a Delphi app, when the tools are right there in PowerShell. https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.management/get-hotfix?view=powershell-7 1 1 Share this post Link to post
Tntman 14 Posted April 16, 2020 Ty for replies .. I have really hard time understanding and searching win api.. it is much more difficult compared to android Share this post Link to post
Tntman 14 Posted April 16, 2020 1 hour ago, Lars Fosdal said: Not sure why one would want to do this in a Delphi app, when the tools are right there in PowerShell. https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.management/get-hotfix?view=powershell-7 usually my projects are just for fun, learn and explore new things ( usually stupid ones and that does not have practical use in RL lol ) .. 1 Share this post Link to post
Lars Fosdal 1792 Posted April 16, 2020 That is never wrong. Please ignore me 🖖 1 Share this post Link to post
Markus Kinzler 174 Posted April 16, 2020 Sample for WUA Api in Delphi: https://theroadtodelphi.com/2011/03/02/search-for-installed-windows-updates-using-delphi-wmi-and-wua/ http://private-storm.de/2009/07/01/windows-update-agent-api/ 1 Share this post Link to post
Tntman 14 Posted April 16, 2020 (edited) 1 hour ago, Lars Fosdal said: That is never wrong. Please ignore me 🖖 Its ok , any new term that I read and google afterwards is appreciated 1 hour ago, Markus Kinzler said: Sample for WUA Api in Delphi: https://theroadtodelphi.com/2011/03/02/search-for-installed-windows-updates-using-delphi-wmi-and-wua/ http://private-storm.de/2009/07/01/windows-update-agent-api/ Ty i will probably try to make demo app just for fun Edited April 16, 2020 by Tntman 1 Share this post Link to post
aehimself 396 Posted April 16, 2020 1 hour ago, Markus Kinzler said: Sample for WUA Api in Delphi: https://theroadtodelphi.com/2011/03/02/search-for-installed-windows-updates-using-delphi-wmi-and-wua/ http://private-storm.de/2009/07/01/windows-update-agent-api/ I used the WMI method as it was easier and I already had wrappers for it. Just SELECT * FROM Win32_QuickFixEngineering in ROOT\CIMV2. Share this post Link to post