utmapp / UTM

Virtual machines for iOS and macOS
https://getutm.app
Apache License 2.0
26.44k stars 1.32k forks source link

Microsoft Store refuse to open even with the instructions listed we're made #3884

Open gradygambrell opened 2 years ago

gradygambrell commented 2 years ago

Describe the issue I don't know if it's a Microsoft issue or a UTM issue, but I plan to post on Microsoft too in case.

After following the instructions via the Paralles Website to get the Microsoft Store on Windows 11 (https://kb.parallels.com/en/128520#section2), the Microsoft Store refuse to open (it will open, then it will close). Adding to that, It won't open at all without any loading or updating notices anywhere (yes, I waited for nearly 30 minutes just in case).

Here's the steps I reproduce:

(NOTE: The OS I install haves Microsoft Store installed.

I should also note that I have a VLAN on, in case that's the problem.

Configuration

Crash log NA

Debug log NA

Upload VM NA

JaiganeshKumaran commented 2 years ago

It's an architecture issue. Some old Windows built-in apps are still compiled for ARM32, but that doesn't run on M1 as only 64-bit is supported. Maybe Parallels is emulating an x86 version of Windows that doesn't have the issue.

kanadgodse commented 2 years ago

I was able to install Microsoft Store on Windows 11 ARM 64 bit version running in UTM by following the steps mentioned below (courtesy of https://techcommunity.microsoft.com/t5/windows-insider-program/microsoft-store-missing-from-windows-11-insider-preview/m-p/3066298/highlight/true#M14002 and https://www.winhelponline.com/blog/restore-windows-store-windows-10-uninstall-with-powershell/):

  1. Going to Settings > Privacy & security > For developers : Enable Install apps for any source.
  2. Visit the following website:

https://store.rg-adguard.net/

The above third-party site can generate download links (to app installers) for the chosen app. These are direct download links pointing at the official Microsoft servers.

  1. On the above page, paste the following link in the URL text box. The following is the Microsoft Store app’s official link.

https://www.microsoft.com/en-us/p/microsoft-store/9wzdncrfjbmp

  1. Select Retail (or the appropriate branch accordingly), and click the generate button. I selected RP (Release Preview) as Windows 11 on ARM is in preview

  2. As the Microsoft Store app depends on .NET Framework, .NET Runtime, and VC Libs, download the latest packages of each item listed. Be sure to download the correct ones matching the bitness (x86 vs. x64 vs arm64) of your Windows 11.

  3. Now, you would have downloaded these four Appx packages — the version numbers will vary according to the build/version of the Microsoft Store app. Since I have Windows 11 ARM 64 bit, I downloaded the following: Microsoft.VCLibs.140.00_14.0.30704.0_arm64__8wekyb3d8bbwe.Appx Microsoft.NET.Native.Runtime.2.2_2.2.28604.0_arm64__8wekyb3d8bbwe.Appx Microsoft.NET.Native.Framework.2.2_2.2.29512.0_arm64__8wekyb3d8bbwe.Appx Microsoft.WindowsStore_12107.1001.15.0_neutral___8wekyb3d8bbwe.AppxBundle There are also some files with extension BlockMap and I don't really know if they are required, but I downloaded them anyway and kept them besides the Appx files.

  4. You first need to install the .NET Runtime and .NET Framework packages by double clicking them and clicking on Install.

  5. Next you need to install the VCLibs, however, it won't install if you have Widgets running. So first, you need to turn off Widgets from Taskbar settings (right click task bar > Taskbar settings) and also end the Widgets.exe task. Then you can install the VCLibs.

  6. Finally, you can install the Windows Store AppxBundle!

It would not have been possible without the references listed above and I merely followed the instructions listed with my only contribution being step 8!

JaiganeshKumaran commented 2 years ago

@kanadgodse For safety, I would recommend that you disable app updates from the Store after installing it as it might auto-update to the ARM32 version later.

kanadgodse commented 2 years ago

Well, after installing the AppxBundle, the store automatically updated itself to the latest version. Will need to check if it uodated to ARM32 version or not. I tried this on a MacBook Pro 14 inch M1 Pro SoC. I tried a game from the store (Modern Combat 5) and it worked, although like a PowerPoint presentation. I don't think it would be an issue if the store updated itself.

JohJakob commented 2 years ago

I tried following the steps @kanadgodse posted, but when running the Windows Store Appx Bundle, the App Installer said this:

Cannot open app package

Reason: Error in parsing the app package.

JohJakob commented 2 years ago

Apparently, the fastest way to install the Microsoft Store is to install the Xbox app from the internet. It will tell you that the Microsoft Store is missing and offers you to install it. Worked like a charm!

osy commented 2 years ago

@JohJakob Can you clarify the steps you took? I tried on a new Windows 11 installation to download and install from https://aka.ms/XboxInstaller and it didn't fix the MS Store issue.

JohJakob commented 2 years ago

@osy I downloaded it from here. In the Xbox app, there was a notice somewhere in the settings that the Windows Store is required for the best experience. There was a “Fix now” button or something like that.

osy commented 2 years ago

Did you first uninstall the built in app? I’m trying to do this myself and it seems like the Xbox app installs successfully and I can open it but Microsoft store still won’t open.

JohJakob commented 2 years ago

@osy There was no Xbox app installed on my virtual machine 🤔 Try uninstalling the built-in app and reinstall it via the link above.

DaBigBlob commented 1 year ago

@gradygambrell @osy solved I think here: https://dabigblob.github.io/ms-store-arm64/

second2falcon commented 1 year ago

Your script didn't work for me, but using the .reg supplied by the wayback machine did. MS Store works now, but I still cannot launch Netflix. The behaviour of it, is the same as with MS Store in the beginning (eg the app closing after starting). Any suggestions?

jackson-57 commented 1 year ago

I just ran wsreset -i in an admin Terminal and it installed the store after a few minutes. No need to install any packages manually. source

Note: I previously had issues with apps not installing or updating, back when I used a VHDX Insider build. It looked like the Microsoft Store Install Service was crashing. I ended up switching to a stable version created with uupdump.

pmsjt commented 1 year ago

Current builds of Windows come with Arm64 Microsoft Store. These steps are no longer required.

jorgeceballosgarcia commented 1 year ago

I was able to install Microsoft Store on Windows 11 ARM 64 bit version running in UTM by following the steps mentioned below (courtesy of https://techcommunity.microsoft.com/t5/windows-insider-program/microsoft-store-missing-from-windows-11-insider-preview/m-p/3066298/highlight/true#M14002 and https://www.winhelponline.com/blog/restore-windows-store-windows-10-uninstall-with-powershell/):

  1. Going to Settings > Privacy & security > For developers : Enable Install apps for any source.
  2. Visit the following website:

https://store.rg-adguard.net/

The above third-party site can generate download links (to app installers) for the chosen app. These are direct download links pointing at the official Microsoft servers.

  1. On the above page, paste the following link in the URL text box. The following is the Microsoft Store app’s official link.

https://www.microsoft.com/en-us/p/microsoft-store/9wzdncrfjbmp

  1. Select Retail (or the appropriate branch accordingly), and click the generate button. I selected RP (Release Preview) as Windows 11 on ARM is in preview
  2. As the Microsoft Store app depends on .NET Framework, .NET Runtime, and VC Libs, download the latest packages of each item listed. Be sure to download the correct ones matching the bitness (x86 vs. x64 vs arm64) of your Windows 11.
  3. Now, you would have downloaded these four Appx packages — the version numbers will vary according to the build/version of the Microsoft Store app. Since I have Windows 11 ARM 64 bit, I downloaded the following: Microsoft.VCLibs.140.00_14.0.30704.0_arm64__8wekyb3d8bbwe.Appx Microsoft.NET.Native.Runtime.2.2_2.2.28604.0_arm64__8wekyb3d8bbwe.Appx Microsoft.NET.Native.Framework.2.2_2.2.29512.0_arm64__8wekyb3d8bbwe.Appx Microsoft.WindowsStore_12107.1001.15.0_neutral___8wekyb3d8bbwe.AppxBundle There are also some files with extension BlockMap and I don't really know if they are required, but I downloaded them anyway and kept them besides the Appx files.
  4. You first need to install the .NET Runtime and .NET Framework packages by double clicking them and clicking on Install.
  5. Next you need to install the VCLibs, however, it won't install if you have Widgets running. So first, you need to turn off Widgets from Taskbar settings (right click task bar > Taskbar settings) and also end the Widgets.exe task. Then you can install the VCLibs.
  6. Finally, you can install the Windows Store AppxBundle!

It would not have been possible without the references listed above and I merely followed the instructions listed with my only contribution being step 8!

Works fine on 22H2

Thanks!

varoudis commented 1 year ago

Anyone else getting error when opening the windows security or defender thingy? "Get an app to open this 'windowsdefender' link"

MarcosP1976 commented 1 year ago

Dear @kanadgodse ,

I've just created an account on Github to thank you for this.

3thanjmac commented 1 year ago

I've also came to thank @kanadgodse for the references and relayed info.

I now have the Microsoft Store on my virtualized Windows 11 running on a Macbook Pro.

pmsjt commented 1 year ago

Current builds of Windows come with Arm64 Microsoft Store. These steps are no longer required.

Even though the Arm64 Store App has been made available, new Insider builds still have an old Arm32 Store App pre-staged in them.

If the device is capable of running Arm32, the Store App will eventually upgrade to Arm64 on its own. This is not the case on Apple Silicon, for example. Because the device can't run the Arm32 Store App, it never gets to upgrade itself to the Arm64 one.

Images should have the Arm64 Store App pre-staged by now. I'll take care of fixing this. Images with the Arm64 Store App pre-staged need none of this contorted work-around process.

pmsjt commented 1 year ago

Current builds of Windows come with Arm64 Microsoft Store. These steps are no longer required.

Even though the Arm64 Store App has been made available, new Insider builds still have an old Arm32 Store App pre-staged in them.

If the device is capable of running Arm32, the Store App will eventually upgrade to Arm64 on its own. This is not the case on Apple Silicon, for example. Because the device can't run the Arm32 Store App, it never gets to upgrade itself to the Arm64 one.

Images should have the Arm64 Store App pre-staged by now. I'll take care of fixing this. Images with the Arm64 Store App pre-staged need none of this contorted work-around process.

Done. Any build numbered >= 25319 will have the Arm64 Store app pre-staged and should require none of the hackery here described.

image

ilsaloving commented 9 months ago

Done. Any build numbered >= 25319 will have the Arm64 Store app pre-staged and should require none of the hackery here described.

Crystalfetch doesn't list that build so it's not entirely clear what we should be getting. But according to https://betawiki.net/wiki/Windows_11_build_25319, it's a preview build of 23H2 so we should be getting that.

pmsjt commented 9 months ago

https://www.microsoft.com/en-us/software-download/windowsinsiderpreviewarm64