Application Update Manager

Ask questions about creating Graphical User Interfaces (GUI) in PowerShell and using WinForms controls.
Forum rules
Do not post any licensing information in this forum.

Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
This topic is 1 year and 11 months old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.
Locked
gitpowershelluser
Posts: 24
Last visit: Mon Feb 06, 2023 11:30 am
Has voted: 1 time

Application Update Manager

Post by gitpowershelluser »

Hello scripting geniuses, I have several applications I create, and my users install via .MSI. The problem is when I have a latest version, I need to touch each machine. Booooo!

I want to build an application update manager I package along with my MSIs. This is the script I'm using inside the appupdatemanager.exe
or , is there some other method to create a standalone Application Update Manager that I can share with my co workers
  1. $AppsToUpdate = Get-childitem "\server\Share\Applications" *.exe -Recurse | Select-Object -Property * | ForEach-Object {
  2.     [pscustomobject]@{
  3.         Name = $_.BaseName
  4.         Exe  = $_.Name
  5.         Version = $_.VersionInfo.ProductVersion
  6.        
  7.     }
  8. }
  9.  
  10. $InstalledApps = Get-ChildItem C:\Utilities *.exe -Recurse | Where-Object { $_.Name -match $AppsToUpdate.Name } | Select-Object -Property * | ForEach-Object {
  11.     [pscustomobject]@{
  12.         Name = $_.BaseName
  13.         Exe  = $_.Name
  14.         Version = $_.VersionInfo.ProductVersion
  15.        
  16.     }
  17. }
  18.  
  19.  
  20. if (Compare-Object $AppsToUpdate.Version $InstalledApps.Version)
  21. {
  22.    
  23.     $InstalledApps | Where-Object { $_.version -lt $AppsToUpdate.Version } | ForEach-Object {
  24.        
  25.         Robocopy "\\server\Share\Applications" "C:\Utilities\$($_.Name)" "$($_.exe)" /NFL /NDL /NJH /NJS /nc /ns /np /r:0 /w:0
  26.        
  27.     }
  28. }
gitpowershelluser
Posts: 24
Last visit: Mon Feb 06, 2023 11:30 am
Has voted: 1 time

Re: Application Update Manager

Post by gitpowershelluser »

This can be closed. I've figured out a great way to manage and install my applications without interacting with the users.
This topic is 1 year and 11 months old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.
Locked