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

Installing powertoys from the store results in an error #13271

Closed
1 task
chanan opened this issue Sep 17, 2021 · 27 comments
Closed
1 task

Installing powertoys from the store results in an error #13271

chanan opened this issue Sep 17, 2021 · 27 comments
Assignees
Labels
Area-Setup/Install Refers to installation mechanism Issue-Bug Something isn't working Priority-1 Bug that is high priority Resolution-External External issue, unrelated to PowerToys

Comments

@chanan
Copy link

chanan commented Sep 17, 2021

Microsoft PowerToys version

N/A - not installed yet

Running as admin

  • Yes

Area(s) with issue?

Installer

Steps to reproduce

Followed the link on twitter: https://t.co/N6B6UIBv8Y?amp=1
Clicked the install button in the windows store. The installer downloaded and started installing. The store ui said a problem happened under the button and link for more details. The popup for more details showed this: Code: 0x8A150003

image

✔️ Expected Behavior

Powertoys should be installed

❌ Actual Behavior

Powertoys install fails

Other Software

Windows 11 Pro insider Build: 22458.rs_prerelease.210910-1430

@chanan chanan added Issue-Bug Something isn't working Needs-Triage For issues raised to be triaged and prioritized by internal Microsoft teams labels Sep 17, 2021
@Aaron-Junker Aaron-Junker added the Area-Setup/Install Refers to installation mechanism label Sep 17, 2021
@Aaron-Junker
Copy link
Collaborator

Seems related to microsoft/vscode#10759 (comment). Could you please check if Windows Defender blocked any files related to the store?

@Aaron-Junker Aaron-Junker added the Needs-Author-Feedback The original author of the issue/PR needs to come back and respond to something label Sep 17, 2021
@chanan
Copy link
Author

chanan commented Sep 17, 2021

It does seem to look the same, but when I got to protection history it says: "No recent actions".

I tried a fresh install just to be sure that recent meant what I think it meant :) no dice, nothing in the Protection History

@ghost ghost added Needs-Team-Response An issue author responded so the team needs to follow up and removed Needs-Author-Feedback The original author of the issue/PR needs to come back and respond to something labels Sep 17, 2021
@TinyTitanPro
Copy link

TinyTitanPro commented Sep 18, 2021

Same problem here, waiting for solutions.

@nancheung
Copy link

nancheung commented Sep 21, 2021

Seems related to microsoft/vscode#10759 (comment). Could you please check if Windows Defender blocked any files related to the store?

I have the same problem. I didn't install windows Defender,im win11

@franky920920
Copy link
Contributor

Seems related to microsoft/vscode#10759 (comment). Could you please check if Windows Defender blocked any files related to the store?

I have the same problem. I didn't install windows Defender,im win11

Windows defender is installed with system and default enabled.

@kyw504100
Copy link

Same problem here, waiting for solutions.

Me too.

@dedavis6797 dedavis6797 removed Needs-Triage For issues raised to be triaged and prioritized by internal Microsoft teams Needs-Team-Response An issue author responded so the team needs to follow up labels Sep 22, 2021
@dedavis6797 dedavis6797 added this to the Stability Release milestone Sep 22, 2021
@dedavis6797 dedavis6797 added the Priority-1 Bug that is high priority label Sep 22, 2021
@crutkas crutkas self-assigned this Sep 22, 2021
@crutkas
Copy link
Member

crutkas commented Sep 22, 2021

we're investigating this right now. Store team has been looped in

@crutkas crutkas added the Status-In progress This issue or work-item is under development label Sep 22, 2021
@crutkas
Copy link
Member

crutkas commented Sep 22, 2021

@chanan / everyone are you able to under the same user with the installer on github? What about Winget?

WinGet and the store in theory should be same user flow model. Wondering maybe if it is the need for the UAC dialog

@chanan
Copy link
Author

chanan commented Sep 22, 2021

@crutkas I tried winget and it also failed:

WinGet install powertoys
Found PowerToys (Preview) [Microsoft.PowerToys] Version 0.45.0
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://github.com/microsoft/PowerToys/releases/download/v0.45.0/PowerToysSetup-0.45.0-x64.exe
  ██████████████████████████████  51.6 MB / 51.6 MB
Successfully verified installer hash
An unexpected error occurred while executing the command:
rename: The system cannot find the file specified.: "C:\Users\CBRAUN~1\AppData\Local\Temp\WinGet\Microsoft.PowerToys.0.45.0", "C:\Users\CBRAUN~1\AppData\Local\Temp\WinGet\Microsoft.PowerToys.0.45.0.exe"

I am pretty sure the EXE will work, so I didnt try it so my system stays "clean" in case you have more things for me to try. Would you like me to try the EXE?

@kyw504100
Copy link

@chanan / everyone are you able to under the same user with the installer on github? What about Winget?

WinGet and the store in theory should be same user flow model. Wondering maybe if it is the need for the UAC dialog

image
Maybe because the file name is not end with .exe?

@crutkas
Copy link
Member

crutkas commented Sep 22, 2021

interesting .... why doesn't it have a file exe?!?

@kyw504100
Copy link

interesting .... why doesn't it have a file exe?!?

image
image
If I rename the file and run the command again. It worked.

@crutkas
Copy link
Member

crutkas commented Sep 22, 2021

@kyw504100 can you do me a favor and run winget with the additional flag --verbose-logs.

You email me the logs, [email protected] if you want or GH works too

@Aaron-Junker
Copy link
Collaborator

First I thought it's because the name is too long, but if you can rename it, this isn't the case.

Even though Windows sometimes uses some tricks to increase this limit. Maybe it's an issue with that.

@modalhoki
Copy link

@chanan / everyone are you able to under the same user with the installer on github? What about Winget?
WinGet and the store in theory should be same user flow model. Wondering maybe if it is the need for the UAC dialog

image
Maybe because the file name is not end with .exe?

@kyw504100 can you do me a favor and run winget with the additional flag --verbose-logs.

You email me the logs, [email protected] if you want or GH works too

i found the issue. for some reason the rename command is trying to find "Microsoft.PowerToys.0.45.0" file instead of "Microsoft.PowerToys.0.45.0-x64" (the "-x64" bit is missing).
image

@crutkas
Copy link
Member

crutkas commented Sep 23, 2021

We are working on a fix with the store / winget team here.

@Grisu70
Copy link

Grisu70 commented Sep 23, 2021

Hi,
the problem is that when the file is downloaded the extension is lost :
image

but if i open the temp folder i have :
image

Fabrizio

@crutkas
Copy link
Member

crutkas commented Sep 23, 2021

xref winget fix: microsoft/winget-cli#1497

@KevinLaMS
Copy link

If you have a Windows Insider build, you can update the App Installer, and the latest winget will fix this.
If you install from github, you can download the latest client here: https://github.com/microsoft/winget-cli/releases.

@kyw504100
Copy link

If you have a Windows Insider build, you can update the App Installer, and the latest winget will fix this.
If you install from github, you can download the latest client here: https://github.com/microsoft/winget-cli/releases.

It worked! Thanks

@chanan
Copy link
Author

chanan commented Sep 28, 2021

I still have not been able to install PowerToys via winget. There are a few problems.

  1. I was not able to update winget from the store, it was still only offering 1.0.x - So I updated from the git hub release page.
  2. I tried winget install powertoys as I have previously done. Below is output:
WinGet install powertoys
The `msstore` source requires that you view the following agreements before using.
Terms of Transaction: https://aka.ms/microsoft-store-terms-of-transaction
The source requires current machine's geographic region to be sent to function properly.

Do you agree to all the source agreements terms?
[Y] Yes  [N] No: y
Multiple packages found matching input criteria. Please refine the input.
Name                Id                  Source
-----------------------------------------------
Microsoft PowerToys XP89DCGQ3K6VLD      msstore
PowerToys (Preview) Microsoft.PowerToys winget

So I tried a few variations of that without success:

WinGet install PowerToys (Preview)
Preview: The term 'Preview' is not recognized as a name of a cmdlet, function, script file, or executable program.
Check the spelling of the name, or if a path was included, verify that the path is correct and try again.

Clearly not correct so I tried:

WinGet install Microsoft.PowerToys
Multiple packages found matching input criteria. Please refine the input.
Name                Id                  Source
-----------------------------------------------
Microsoft Photos    9WZDNCRFJBH4        msstore
PowerToys (Preview) Microsoft.PowerToys winget

Note that now it is clashing with Microsoft Photos. Not sure where that came from.

@kyw504100
Copy link

I still have not been able to install PowerToys via winget. There are a few problems.

  1. I was not able to update winget from the store, it was still only offering 1.0.x - So I updated from the git hub release page.
  2. I tried winget install powertoys as I have previously done. Below is output:
WinGet install powertoys
The `msstore` source requires that you view the following agreements before using.
Terms of Transaction: https://aka.ms/microsoft-store-terms-of-transaction
The source requires current machine's geographic region to be sent to function properly.

Do you agree to all the source agreements terms?
[Y] Yes  [N] No: y
Multiple packages found matching input criteria. Please refine the input.
Name                Id                  Source
-----------------------------------------------
Microsoft PowerToys XP89DCGQ3K6VLD      msstore
PowerToys (Preview) Microsoft.PowerToys winget

So I tried a few variations of that without success:

WinGet install PowerToys (Preview)
Preview: The term 'Preview' is not recognized as a name of a cmdlet, function, script file, or executable program.
Check the spelling of the name, or if a path was included, verify that the path is correct and try again.

Clearly not correct so I tried:

WinGet install Microsoft.PowerToys
Multiple packages found matching input criteria. Please refine the input.
Name                Id                  Source
-----------------------------------------------
Microsoft Photos    9WZDNCRFJBH4        msstore
PowerToys (Preview) Microsoft.PowerToys winget

Note that now it is clashing with Microsoft Photos. Not sure where that came from.

image
Using the MS store ID worked.

@crutkas
Copy link
Member

crutkas commented Sep 28, 2021

you'd do winget install microsoft.powertoys

@chanan
Copy link
Author

chanan commented Sep 28, 2021

winget install microsoft.powertoys

No dice:

winget install microsoft.powertoys
Multiple packages found matching input criteria. Please refine the input.
Name                Id                  Source
-----------------------------------------------
Microsoft Photos    9WZDNCRFJBH4        msstore
PowerToys (Preview) Microsoft.PowerToys winget

@kyw504100
Copy link

you'd do winget install microsoft.powertoys

C:\Users\kyw504100>winget install microsoft.powertoys -s winget
Found PowerToys (Preview) [Microsoft.PowerToys] Version 0.45.0
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://github.com/microsoft/PowerToys/releases/download/v0.45.0/PowerToysSetup-0.45.0-x64.exe
  ██████████████████████████████  51.6 MB / 51.6 MB
Successfully verified installer hash
Starting package install...
Successfully installed

Will work if source is specified.

@chanan
Copy link
Author

chanan commented Sep 29, 2021

Yep @kyw504100 that worked and powertoys installed correctly from winget

@crutkas
Copy link
Member

crutkas commented Nov 19, 2021

This should be fixed with WinGet v1.1.12663. We think we got this fixed back 9/27

@crutkas crutkas closed this as completed Nov 19, 2021
@crutkas crutkas added Resolution-External External issue, unrelated to PowerToys and removed Status-In progress This issue or work-item is under development labels Nov 19, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-Setup/Install Refers to installation mechanism Issue-Bug Something isn't working Priority-1 Bug that is high priority Resolution-External External issue, unrelated to PowerToys
Projects
None yet
Development

No branches or pull requests