microsoft / PowerToys

Windows system utilities to maximize productivity
MIT License
109.89k stars 6.48k forks source link

v0.20 installer doesn't start #5397

Closed pratnala closed 4 years ago

pratnala commented 4 years ago

ℹ Computer information

📝 Provide detailed reproduction steps (if any)

  1. Download the setup file.
  2. Run it.

✔️ Expected result

Installer runs and PowerToys 0.20 is installed.

❌ Actual result

Installer doesn't start and the installer process is stuck at ~2MB memory usage.

📷 Screenshots

image

aggiehorns commented 4 years ago

First time Power Toys user attempting to install, same experience for me.

pratnala commented 4 years ago

Ok apparently there is a notification which I didn't see it because I have quiet mode enabled all the time. Will see if it finishes. I have been killing the process because there was no popup window saying it was installing.

image

aggiehorns commented 4 years ago

I am not familiar with this mode of installation. It's hidden in the notifications area of Win10?

On Fri, Jul 31, 2020 at 6:10 PM Pratyush Nalam notifications@github.com wrote:

Ok apparently there is a notification which I didn't see it because I have quiet mode enabled all the time. Will see if it finishes. I have been killing the process because there was no popup window saying it was installing.

[image: image] https://user-images.githubusercontent.com/1689565/89087169-321ba500-d348-11ea-91bd-022783a8d9d0.png

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/microsoft/PowerToys/issues/5397#issuecomment-667421550, or unsubscribe https://github.com/notifications/unsubscribe-auth/AKD2E2HDK5OEGIBBG7MRXGLR6NFMXANCNFSM4PQ7FZNQ .

pratnala commented 4 years ago

It is the first time that I am seeing it. Looks like it is installing dependencies (dotnet), and it is stuck at 99% from a while.

collenirwin commented 4 years ago

I am having this issue as well. It hangs on the "Installing dotnet" step. It looks like the progress percentage is artificial (see bootstrapper.cpp). I have Microsoft.WindowsDesktop.App 3.1.6 installed, which seems to be the dependency it looks for (see dotnet_installation.cpp).

pratnala commented 4 years ago

Were you able to unblock it then?

collenirwin commented 4 years ago

Were you able to unblock it then?

No, it's still "Installing dotnet..." at 99%.

pratnala commented 4 years ago

Same here

alaa13212 commented 4 years ago

Same here

enricogior commented 4 years ago

As a workaround, manually download and install .NET Core 3.1 from: (the download will start automatically when opening the link) https://dotnet.microsoft.com/download/dotnet-core/thank-you/runtime-desktop-3.1.6-windows-x64-installer

After .NET Core 3.1 is installed, try installing PowerToys again.

PapierenTijger commented 4 years ago

As a workaround, manually download and install .NET Core 3.1 from: (the download will start automatically when opening the link) https://dotnet.microsoft.com/download/dotnet-core/thank-you/runtime-desktop-3.1.6-windows-x64-installer

After .NET Core 3.1 is installed, try installing PowerToys again.

I tried this (Windows build number: 19041.388), but it still wants to install dotnet first (which takes a long time and in the end it hangs)

Tom-Dunstan commented 4 years ago

@enricogior This did not work for me. I have uninstalled and reinstalled the runtime as well as the SDK for 3.1.6. When I run the installer it goes back to "Installing dotnet" @ 50% and stops at 99%

Interestingly. If I reboot the dialog continues to appear in the notifications but the installer "PowerToys Bootstrapper" is no longer running when looking in task manager

mgnoonan commented 4 years ago

I am having this problem as well. I let it run for hours and it just hangs at 99% with the message "Installing dotnet..."

I have VS2019 Preview on my system, so .NET 3.1 is already there.

collenirwin commented 4 years ago

Is it possible that there is a problem with exec_and_read_output (src/common/common.cpp)? Microsoft.WindowsDesktop.App 3.1.6 is on the final line of output of dotnet --list-runtimes for me, so perhaps an off-by-one issue? Just throwing this out there - don't know much C++ so I apologize if this is totally unhelpful 😅

alaa13212 commented 4 years ago

I had .NET 5 sdk preview installed (was testing winui 3.0) and uninstalling it seemed to fix this for me

crasshacker commented 4 years ago

I have the .NET 5 preview SDK installed as well, and the same problem described in this issue, but I found that I could install the previous PowerToys release without a problem so I'm just going to live with it until the issue is resolved. I'll bet that alaa13212 is right about .NET 5 being the culprit, though.

PapierenTijger commented 4 years ago

I'll bet that alaa13212 is right about .NET 5 being the culprit, though.

I'm not sure. I have the same issue and don't have any .NET 5 sdks or runtimes installed.

MoaidHathot commented 4 years ago

Actually, it seems the issue is with any preview SDKs/runtimes installed. I uninstalled all of our preview .Net SDKs/runtimes and then it worked.

xt0rted commented 4 years ago

I'm having this problem too. I have the VS 2019 preview installed but I don't have the .net 5 sdk or runtime installed.

dotnet --info
.NET Core SDK (reflecting any global.json):
 Version:   3.1.400-preview-015203
 Commit:    b1dcd32553

Runtime Environment:
 OS Name:     Windows
 OS Version:  10.0.18363
 OS Platform: Windows
 RID:         win10-x64
 Base Path:   C:\Program Files\dotnet\sdk\3.1.400-preview-015203\

Host (useful for support):
  Version: 3.1.6
  Commit:  3acd9b0cd1

.NET Core SDKs installed:
  2.1.202 [C:\Program Files\dotnet\sdk]
  2.1.302 [C:\Program Files\dotnet\sdk]
  2.1.403 [C:\Program Files\dotnet\sdk]
  2.1.511 [C:\Program Files\dotnet\sdk]
  2.1.512 [C:\Program Files\dotnet\sdk]
  2.1.514 [C:\Program Files\dotnet\sdk]
  2.1.515 [C:\Program Files\dotnet\sdk]
  2.1.604 [C:\Program Files\dotnet\sdk]
  2.1.701 [C:\Program Files\dotnet\sdk]
  2.1.802 [C:\Program Files\dotnet\sdk]
  2.2.104 [C:\Program Files\dotnet\sdk]
  2.2.207 [C:\Program Files\dotnet\sdk]
  2.2.301 [C:\Program Files\dotnet\sdk]
  2.2.402 [C:\Program Files\dotnet\sdk]
  3.0.100-preview5-011568 [C:\Program Files\dotnet\sdk]
  3.0.100-preview7-012821 [C:\Program Files\dotnet\sdk]
  3.0.100-preview8-013656 [C:\Program Files\dotnet\sdk]
  3.0.100-preview9-014004 [C:\Program Files\dotnet\sdk]
  3.0.100 [C:\Program Files\dotnet\sdk]
  3.0.102 [C:\Program Files\dotnet\sdk]
  3.1.100 [C:\Program Files\dotnet\sdk]
  3.1.102 [C:\Program Files\dotnet\sdk]
  3.1.302 [C:\Program Files\dotnet\sdk]
  3.1.400-preview-015203 [C:\Program Files\dotnet\sdk]

.NET Core runtimes installed:
  Microsoft.AspNetCore.All 2.1.0 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.All]
  Microsoft.AspNetCore.All 2.1.1 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.All]
  Microsoft.AspNetCore.All 2.1.2 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.All]
  Microsoft.AspNetCore.All 2.1.4 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.All]
  Microsoft.AspNetCore.All 2.1.5 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.All]
  Microsoft.AspNetCore.All 2.1.11 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.All]
  Microsoft.AspNetCore.All 2.1.12 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.All]
  Microsoft.AspNetCore.All 2.1.13 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.All]
  Microsoft.AspNetCore.All 2.1.15 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.All]
  Microsoft.AspNetCore.All 2.1.16 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.All]
  Microsoft.AspNetCore.All 2.1.18 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.All]
  Microsoft.AspNetCore.All 2.1.19 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.All]
  Microsoft.AspNetCore.All 2.1.20 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.All]
  Microsoft.AspNetCore.All 2.2.2 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.All]
  Microsoft.AspNetCore.All 2.2.6 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.All]
  Microsoft.AspNetCore.All 2.2.7 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.All]
  Microsoft.AspNetCore.All 2.2.8 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.All]
  Microsoft.AspNetCore.App 2.1.0 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
  Microsoft.AspNetCore.App 2.1.1 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
  Microsoft.AspNetCore.App 2.1.2 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
  Microsoft.AspNetCore.App 2.1.4 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
  Microsoft.AspNetCore.App 2.1.5 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
  Microsoft.AspNetCore.App 2.1.11 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
  Microsoft.AspNetCore.App 2.1.12 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
  Microsoft.AspNetCore.App 2.1.13 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
  Microsoft.AspNetCore.App 2.1.15 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
  Microsoft.AspNetCore.App 2.1.16 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
  Microsoft.AspNetCore.App 2.1.18 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
  Microsoft.AspNetCore.App 2.1.19 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
  Microsoft.AspNetCore.App 2.1.20 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
  Microsoft.AspNetCore.App 2.2.2 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
  Microsoft.AspNetCore.App 2.2.6 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
  Microsoft.AspNetCore.App 2.2.7 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
  Microsoft.AspNetCore.App 2.2.8 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
  Microsoft.AspNetCore.App 3.0.0-preview7.19365.7 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
  Microsoft.AspNetCore.App 3.0.0-preview8.19405.7 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
  Microsoft.AspNetCore.App 3.0.0-preview9.19424.4 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
  Microsoft.AspNetCore.App 3.0.0 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
  Microsoft.AspNetCore.App 3.0.2 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
  Microsoft.AspNetCore.App 3.1.2 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
  Microsoft.AspNetCore.App 3.1.6 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
  Microsoft.NETCore.App 2.0.9 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
  Microsoft.NETCore.App 2.1.0 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
  Microsoft.NETCore.App 2.1.2 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
  Microsoft.NETCore.App 2.1.5 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
  Microsoft.NETCore.App 2.1.11 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
  Microsoft.NETCore.App 2.1.12 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
  Microsoft.NETCore.App 2.1.13 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
  Microsoft.NETCore.App 2.1.15 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
  Microsoft.NETCore.App 2.1.16 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
  Microsoft.NETCore.App 2.1.18 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
  Microsoft.NETCore.App 2.1.19 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
  Microsoft.NETCore.App 2.1.20 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
  Microsoft.NETCore.App 2.2.2 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
  Microsoft.NETCore.App 2.2.6 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
  Microsoft.NETCore.App 2.2.7 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
  Microsoft.NETCore.App 2.2.8 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
  Microsoft.NETCore.App 3.0.0-preview7-27912-14 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
  Microsoft.NETCore.App 3.0.0-preview8-28405-07 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
  Microsoft.NETCore.App 3.0.0-preview9-19423-09 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
  Microsoft.NETCore.App 3.0.0 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
  Microsoft.NETCore.App 3.0.2 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
  Microsoft.NETCore.App 3.1.2 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
  Microsoft.NETCore.App 3.1.6 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
  Microsoft.WindowsDesktop.App 3.0.0-preview7-27912-14 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
  Microsoft.WindowsDesktop.App 3.0.0-preview8-28405-07 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
  Microsoft.WindowsDesktop.App 3.0.0-preview9-19423-09 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
  Microsoft.WindowsDesktop.App 3.0.0 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
  Microsoft.WindowsDesktop.App 3.0.2 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
  Microsoft.WindowsDesktop.App 3.1.2 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
  Microsoft.WindowsDesktop.App 3.1.6 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
kojo12228 commented 4 years ago

I also experienced this issue, I don't have any previews installed and my installation of .NET (3.1.2) is via VS2019. I was able to re-install PowerToys 19.2

wimagee commented 4 years ago

Seeing same issue - 3.1.2 already installed and reinstalled. No Preview SDKs or Runtimes installed.

lawrencefej commented 4 years ago

I went back and cleaned out all my old dotnet core sdk's and visual studio tools. I'm not sure what exactly was the problem but it resolved the problem for me.

pratnala commented 4 years ago

I don't have any preview SDKs but I have VS 2019 Enterprise installed.

lawrencefej commented 4 years ago

I have visual studio 2019 community installed. Will try on my work computer tomorrow where the enterprise version is installed and see what happens. The reason I decided to clear out the old stuff is because I was able to install it on my surface pro with no problems. So I removed all the old SDK's and VS tools that the surface pro did not have and it did the trick.

pratnala commented 4 years ago

I have too many .NET runtimes installed to delete and try.

The-MAZZTer commented 4 years ago

Workaround for stuck on Installing dotnet at 50%: Find dotnet.exe in Task Manager and kill it.. but make sure it is the correct one since if you are running others you could kill something you don't want to. Best to use a third party Task Manager that shows parent/child process relationships such as Process Hacker or Process Monitor. But if there is only one and powertoys installer is running it's probably the right one.

For some reason the installer is trying to get the list of dotnet runtimes but dotnet.exe never finishes so the whole thing hangs. The installer is probably invoking it incorrectly or otherwise managing the child process incorrectly somehow, since when I invoked the same command in command prompt it finished immediately. If you kill it, the installer assumes dotnet is not installed and will try to install it, and the dotnet installer will just exit if it is already installed.

A fix for this may be to simply remove the runtime check and always attempt to install dotnet since the dotnet installer will automatically skip installation if it is already installed. But it is not the most elegant fix.

Stock on 99%? You have to manually interact with the PowerToys installer at this point. The window probably opened in the background covered by other applications, check your Alt+Tab.

(Side note: I experienced this issue and I have VS2019 Community installed, for anyone taking a survey. No .NET 5 preview runtime or SDK though.)

xt0rted commented 4 years ago

Killed the dotnet.exe process and installation succeeded. Thanks for the info @The-MAZZTer!

tevenson commented 4 years ago

Killing the dotnet.exe process also worked for me, thank you @The-MAZZTer!

pratnala commented 4 years ago

Wow, this helped. Just to note that in my case, the installer window opened after killing dotnet.exe. Thanks, @The-MAZZTer!

mgnoonan commented 4 years ago

Agreed, killing the dotnet.exe process worked for me as well. Thanks @The-MAZZTer!

carlosmatioli commented 4 years ago

Workaround for stuck on Installing dotnet at 50%: Find dotnet.exe in Task Manager and kill it.. but make sure it is the correct one since if you are running others you could kill something you don't want to. Best to use a third party Task Manager that shows parent/child process relationships such as Process Hacker or Process Monitor. But if there is only one and powertoys installer is running it's probably the right one. For some reason the installer is trying to get the list of dotnet runtimes but dotnet.exe never finishes so the whole thing hangs. The installer is probably invoking it incorrectly or otherwise managing the child process incorrectly somehow, since when I invoked the same command in command prompt it finished immediately. If you kill it, the installer assumes dotnet is not installed and will try to install it, and the dotnet installer will just exit if it is already installed. A fix for this may be to simply remove the runtime check and always attempt to install dotnet since the dotnet installer will automatically skip installation if it is already installed. But it is not the most elegant fix. Stock on 99%? You have to manually interact with the PowerToys installer at this point. The window probably opened in the background covered by other applications, check your Alt+Tab. (Side note: I experienced this issue and I have VS2019 Community installed, for anyone taking a survey. No .NET 5 preview runtime or SDK though.)

In my case, the installation stucks in 75%. No message of ".Net Installation" is shown. Searched in Resource Monitor and in Taks Manager for dotnet.exe and it is not running. Tried to install .Net 5.0, but also didn't work. Tried to re-install 0.19.2, and then update, and always starts already in 75%. Tried to unninstall 0.19.2, download 0.20.0 and install, but also failled. Tried to kill every process wich had dotnet in its name, but also didn't work. And in Task Manager, I couldn't find any process that leads me to the instalation process.

Ps.: This installation with error is occurring in my company's PC, with a lot of user and network controls. I installed in another PC (my personal) last saturday, and no error occured

Can anyone help me?

enricogior commented 4 years ago

@carlosmatioli can you please open a new issue, since the problem you are experiencing is different from the one reported here. Thank you.

NJITman commented 4 years ago

As a workaround, manually download and install .NET Core 3.1 from: (the download will start automatically when opening the link) https://dotnet.microsoft.com/download/dotnet-core/thank-you/runtime-desktop-3.1.6-windows-x64-installer After .NET Core 3.1 is installed, try installing PowerToys again.

I tried this (Windows build number: 19041.388), but it still wants to install dotnet first (which takes a long time and in the end it hangs)

I just rebooted first to clear all pending installs. Installed .NET Core 3.1 from the link provided and then installed PowerToys 0.20.0. Worked fine that time.

fooberichu150 commented 4 years ago

Interestingly I found that I had ".NET Core Host Process" running twice in my background processes (Windows 10 Pro). I killed both of them and suddenly a .NET Core installation prompt popped up. I had 3.1 already, but it was prompting to install 3.1.6 runtime instead of whatever I had (likely 3.1.0). After that I did have the window waiting for me to interact like @The-MAZZTer had mentioned. So... it was a combination of things for me but not quite the same as them.

ahawes-clarity commented 4 years ago

Interestingly I found that I had ".NET Core Host Process" running twice in my background processes (Windows 10 Pro). I killed both of them and suddenly a .NET Core installation prompt popped up. I had 3.1 already, but it was prompting to install 3.1.6 runtime instead of whatever I had (likely 3.1.0). After that I did have the window waiting for me to interact like @The-MAZZTer had mentioned. So... it was a combination of things for me but not quite the same as them.

That worked for me.

yuyoyuppe commented 4 years ago

This is likely to be caused by the same problem as #5484 for which we've just committed a fix and will do a patch release soon.

Anyone wishing to test right now if it fixes their installer problems posted here could try downloading this unsigned private build with the fix just to make sure that the installation issue is resolved. Please uninstall that build after you've verified that the issue is[n't] present, since it will have other issues, and report the results.

Thanks a lot in advance!

crasshacker commented 4 years ago

UPDATE: I realized after originally posting this that although the unsigned PT build raised an exception that led me to believe that it failed to run, it actually displayed another dialog that was hidden behind another application window. That dialog indicated that PT needed to restart Windows Explorer and was asking for permission to due so. After giving permission PT ran successfully. Anyway, here's my original description of the issue:

I tried installing the unsigned private build and it properly uninstalled the previous build and installed the new build without error. However, the new build fails to run, due to a ReflectionTypeLoadException being raised at startup:

System.Reflection.ReflectionTypeLoadException: Unable to load one or more of the requested types.

Could not load file or assembly 'Microsoft.PowerToys.Settings.UI.Lib, Version=0.20.1.0, Culture=neutral, PublicKeyToken=null'. 
The system cannot find the file specified.

So for me at least this build solved the installer issue - installation ran perfectly, as did the automatic uninstallation of the previous build. As for the exception being raised when I run PowerToys after installing, I've attached the log file. 2020-08-04.txt

enricogior commented 4 years ago

@crasshacker thank you for testing the private build. The error you experienced is known https://github.com/microsoft/PowerToys/issues/5534 and already fixed, the fix will be available in 0.20.1

pratnala commented 4 years ago

0.20.1 fixes these issues. Thank you, team! I will close this issue.

rcmaehl commented 3 years ago

@enricogior This issue has reoccured for me when running a repair on 0.31.2.0. It's looking for PowerToysBootstrappedinstaller-0.31.2.0-msi but it doesn't exist.

enricogior commented 3 years ago

@rcmaehl this issue was tracking a different problem. Anyway, don't use repair since is not working, uninstall and reinstall. If you have problems uninstalling, run the Microsoft uninstall troubleshooter https://download.microsoft.com/download/7/E/9/7E9188C0-2511-4B01-8B4E-0A641EC2F600/MicrosoftProgram_Install_and_Uninstall.meta.diagcab