Winget-AutoUpdate icon indicating copy to clipboard operation
Winget-AutoUpdate copied to clipboard

Doesn't work on my Win 11

Open Relax5180 opened this issue 3 years ago • 9 comments

Applications update does not work on Win 11. Win 10 ok. If I change the user in the task from SYSTEM to my account, then it works well, but then I see a powershell window. When running task with SYSTEM, an empty version of winget is in the log file. SYSTEM doesn't have access to winget?

10:18:29 - Notification Level: Full. Notification Language: English 10:18:29 - Checking internet connection... 10:18:31 - Connected ! 10:18:31 - Winget Version: 10:18:31 - WAU current version: 1.11.5 10:18:31 - WAU AutoUpdate is Enabled. 10:18:32 - WAU is up to date. 10:18:32 - WAU uses Black List config 10:18:32 - Checking application updates on Winget Repository... 10:18:33 - No new update. 10:18:33 - End of process!

But there are some updates.

Relax5180 avatar Jul 03 '22 00:07 Relax5180

If I change the user in the task from SYSTEM to my account, then it works well, but then I see a powershell window.

Temporary solution - parameter "-windowStyle hidden" for powershell in the task.

Relax5180 avatar Jul 03 '22 05:07 Relax5180

Hi. probably linked issue: https://github.com/Romanitho/Winget-AutoUpdate/issues/113

Romanitho avatar Jul 04 '22 12:07 Romanitho

Temporary solution - parameter "-windowStyle hidden" for powershell in the task.

This doesn't seem to have helped in my case.

image

image

image

Gumbyohson avatar Jul 08 '22 01:07 Gumbyohson

Temporary solution - parameter "-windowStyle hidden" for powershell in the task.

This doesn't seem to have helped in my case.

This doesn't make winget work, it makes the script window invisible if the task is running with non-System privileges. I have it run with the my account, and so update works.

Relax5180 avatar Jul 08 '22 01:07 Relax5180

Temporary solution - parameter "-windowStyle hidden" for powershell in the task.

This doesn't seem to have helped in my case.

This doesn't make winget work, it makes the script window invisible if the task is running with non-System privileges. I have it run with the my account, and so update works.

That makes way more sense now :
Yeah so Windows 11 running as NT\system not working.

Gumbyohson avatar Jul 08 '22 04:07 Gumbyohson

Hi. WindowStyle hidden make sense when it is run with an user account. For system, it is not necessary. On my several windows 11 it works great. You might have something wrong on your side. Have you had a look here https://github.com/Romanitho/Winget-AutoUpdate/issues/113 ?

Romanitho avatar Jul 08 '22 05:07 Romanitho

On my several windows 11 it works great. You might have something wrong on your side. Have you had a look here #113 ?

Yes. But I've not installed powershell from msstore.

I'm fine with running the task as admin with "-windowStyle hidden" parameter. But then on WAU self-update I see the script window with "Running Post Update actions"

By the way, some installers show dialog boxes (e.g. CrystalDiskInfo, if the program is already running) . They will not be visible when the task is started as System, right?

Relax5180 avatar Jul 08 '22 06:07 Relax5180

If MsStore PS is not installed, it might be an interesting case 😅

If you run under system, you don't have any dialog box displayed, exactly.

Romanitho avatar Jul 08 '22 08:07 Romanitho

This issue is stale because it has been open for 30 days with no activity.

github-actions[bot] avatar Aug 08 '22 03:08 github-actions[bot]

This issue was closed because it has been inactive for 14 days since being marked as stale.

github-actions[bot] avatar Aug 22 '22 03:08 github-actions[bot]