Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Doesn't work on my Win 11 #117

Closed
Relax5180 opened this issue Jul 3, 2022 · 10 comments
Closed

Doesn't work on my Win 11 #117

Relax5180 opened this issue Jul 3, 2022 · 10 comments
Labels

Comments

@Relax5180
Copy link

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
Copy link
Author

Relax5180 commented Jul 3, 2022

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.

@Romanitho
Copy link
Owner

Hi. probably linked issue: #113

@Gumbyohson
Copy link

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

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

image

image

image

@Relax5180
Copy link
Author

Relax5180 commented Jul 8, 2022

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.

@Gumbyohson
Copy link

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.

@Romanitho
Copy link
Owner

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 #113 ?

@Relax5180
Copy link
Author

Relax5180 commented Jul 8, 2022

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?

@Romanitho
Copy link
Owner

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.

@github-actions
Copy link
Contributor

github-actions bot commented Aug 8, 2022

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

@github-actions github-actions bot added the stale label Aug 8, 2022
@github-actions
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants