Closed AcpPasc closed 1 year ago
WAU can't possibly know the process name to kill for individual apps. But, you know the process name. Make a mod for KeePass Password Safe (DominikReichl.KeePass-preinstall.ps1 under mods folder) with for example the code from following post (using KeePass process name/excluding the last line): https://github.com/Romanitho/Winget-AutoUpdate/issues/239#issue-1465009147
https://github.com/Romanitho/Winget-AutoUpdate#custom-scripts-mods-feature
My Issue was also a way to deploy it with intune but I think your idea/solution Helped:
This Preinstaller Script gets Deployed by my Intune Installer and placed to the Mod Folder. Only Issues to note:
This issue is stale because it has been open for 30 days with no activity.
This issue was closed because it has been inactive for 14 days since being marked as stale.
https://github.com/Romanitho/Winget-AutoUpdate#custom-scripts-mods-feature
My Issue was also a way to deploy it with intune but I think your idea/solution Helped:
- I Used the _APPID-Template.ps1 as Baseline für a preinstall
- Utilized the Wait function but that alone would mean it probalby would never Update
- Added a Few Lines that use the Start-NotifTask Function to Inform the use to Close the App
This Preinstaller Script gets Deployed by my Intune Installer and placed to the Mod Folder. Only Issues to note:
- Yes you could Kill the Process (not Recommended if Stuff is not Saved).
- if the user Ignores the Request/does not close the App/is on DND and does not see the Notification: all fllowing Updates won't be installed (maybe installed on the next run)
Could you share your few lines with us 😇
It is basically the "C:\ProgramData\Winget-AutoUpdate\mods_AppID-template.ps1" i have edited the following:
$Wait = @("KeePass")
Write-Log "Notify User to Close $($app.Name)" "Cyan"
$Title = "{0} wartet auf Update" -f "$($app.Name)"
$Message = "Bitte speichern und beenden Sie die KeePass Applikation, damit diese Updates installieren kann."
$MessageType = "warning"
$Balise = $($app.Name)
Start-NotifTask -Title $Title -Message $Message -MessageType $MessageType -Balise $Balise -Button1Action $ReleaseNoteURL -Button1Text $Button1Text
And saved it as 'DominikReichl.KeePass-preinstall.ps1'
The problem
I noticed on some Applications that either the Update Freezes or "Updates" and if i check in the App it is still the Old Vserion. In my Case it was on the AppIDs:
'DominikReichl.KeePass' Does not Update and freezes the WUA entirely / can not Install (The App asks to be closed in the background to Save Changes but the User does not see this > Timeout)
Found KeePass [DominikReichl.KeePass] Version 2.53.1 This application is licensed to you by its owner. Microsoft is not responsible for, nor does it grant any licenses to, third-party packages. Downloading https://sourceforge.net/projects/keepass/files/KeePass%202.x/2.53.1/KeePass-2.53.1-Setup.exe/download -\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/
███████▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒ 1024 KB / 4.20 MB ██████████████▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒ 2.00 MB / 4.20 MB ███████████████▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒ 2.20 MB / 4.20 MB ██████████████████████▒▒▒▒▒▒▒▒ 3.20 MB / 4.20 MB ██████████████████████████████ 4.20 MB / 4.20 MB ██████████████████████████████ 4.20 MB / 4.20 MB Successfully verified installer hash Starting package install...