Romanitho / Winget-AutoUpdate

WAU daily updates apps as system and notify connected users. (Allowlist and Blocklist support)
MIT License
1.19k stars 142 forks source link

[Bug]: Invoke-PostUpdateActions The term is not recognized as cmdlet function script file or operable program #768

Open myrandor opened 1 week ago

myrandor commented 1 week ago

The problem

When running Winget-Upgrade.ps1 as system, I get an error calling Invoke-PostUpdateActions. From what I saw, it seems that this function is not used anymore, but it is called on the line 110 of Winget-Upgrade.ps1. It doesn't seems to break anything, but it's annoying to this error.

What version of WAU has the issue?

2.1.0

What version of Windows are you using (ex. Windows 11 22H2)?

Windows 10 22H2 - French canadian

What version of winget are you using?

1.9.25200

Log information

Winget info
-----------
Windows Package Manager v1.9.25200
Copyright (c) Microsoft Corporation. All rights reserved.

Windows: Windows.Desktop v10.0.19045.5131
System Architecture: X64

Winget Directories
------------------------------------------------------------------------------------------------------
Logs                               %TEMP%\WinGet\defaultState
User Settings                      %LOCALAPPDATA%\Microsoft\WinGet\Settings\defaultState\settings.json
Portable Links Directory (User)    %LOCALAPPDATA%\Microsoft\WinGet\Links
Portable Links Directory (Machine) C:\Program Files\WinGet\Links
Portable Package Root (User)       %LOCALAPPDATA%\Microsoft\WinGet\Packages
Portable Package Root              C:\Program Files\WinGet\Packages
Portable Package Root (x86)        C:\Program Files (x86)\WinGet\Packages
Installer Downloads                C:\Users\Default\Downloads

Links
---------------------------------------------------------------------------
Privacy Statement   https://aka.ms/winget-privacy
License Agreement   https://aka.ms/winget-license
Third Party Notices https://aka.ms/winget-3rdPartyNotice
Homepage            https://aka.ms/winget
Windows Store Terms https://www.microsoft.com/en-us/storedocs/terms-of-sale

Group Policy                                                                  State
-------------------------------------------------------------------------------------
Enable Windows Package Manager                                                Enabled
Enable Windows App Installer Default Source                                   Enabled
Enable Windows App Installer Microsoft Store Source                           Enabled
Enable Additional Windows App Installer Sources                               Enabled
Enable Windows App Installer Microsoft Store Source Pinned Certificate Bypass Enabled
Enable Windows Package Manager command line interfaces                        Enabled
Set Windows Package Manager Source Auto Update Interval In Minutes            720

Additional source Type           Argument
------------------------------------------------------------------
IMPSJ             Microsoft.Rest https://winget.intranet.impsj.com

Admin Setting                             State
--------------------------------------------------
LocalManifestFiles                        Disabled
BypassCertificatePinningForMicrosoftStore Enabled
InstallerHashOverride                     Disabled
LocalArchiveMalwareScanOverride           Disabled
ProxyCommandLineOptions                   Disabled
DefaultProxy                              Disabled

Winget-Autoupdate console (sorry for the french messages)
---------------------------------------------------------
Invoke-PostUpdateActions : Le terme «Invoke-PostUpdateActions» n'est pas reconnu comme nom d'applet de commande, 
fonction, fichier de script ou programme exécutable. Vérifiez l'orthographe du nom, ou si un chemin d'accès existe, 
vérifiez que le chemin d'accès est correct et réessayez.
Au caractère C:\Program Files\Winget-AutoUpdate\Winget-Upgrade.ps1:110 : 9
+         Invoke-PostUpdateActions
+         ~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (Invoke-PostUpdateActions:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException

Additional information

No response