UWPHook icon indicating copy to clipboard operation
UWPHook copied to clipboard

'get-AppxPackage' could not be loaded error

Open BSwitchblade88 opened this issue 1 year ago • 9 comments

Log:

2024-12-11 21:12:36.604 +10:00 [INF] Init log with ERROR level. 2024-12-11 21:12:37.371 +10:00 [ERR] Error trying to get installed apps on your PC The 'get-AppxPackage' command was found in the module 'Appx', but the module could not be loaded due to the following error: [Operation is not supported on this platform. (0x80131539)] For more information, run 'Import-Module Appx'. 2024-12-11 21:12:37.371 +10:00 [ERR] Error trying to get installed apps on your PC The 'get-AppxPackage' command was found in the module 'Appx', but the module could not be loaded due to the following error: [Operation is not supported on this platform. (0x80131539)] For more information, run 'Import-Module Appx'.

This is on release 2.14.3 (First install; I've not used this app before). This is on Windows 10 with the latest .Net 8.0.11 runtime installed.

BSwitchblade88 avatar Dec 11 '24 11:12 BSwitchblade88

Same issue, fresh install.

Also W10 and .Net 8.0.11 runtime

5quirrel avatar Dec 14 '24 05:12 5quirrel

I had success by rolling back to the 2.14.1 version prior to .Net8 and it seemed to function as expected.

This probably doesn't help clarify if it's specifically a .Net error introduced or possibly some other PowerShell issue...? (given the syntax). But at least I've been able to get games loaded in.

BSwitchblade88 avatar Dec 14 '24 05:12 BSwitchblade88

@BSwitchblade88 you legend thanks for taking the time to respond. My block head didn't even consider that! :)

5quirrel avatar Dec 14 '24 05:12 5quirrel

2.14.2 also works for me, so it's just latest .net8 version that has issues, it seems.

FlaminSarge avatar Dec 14 '24 12:12 FlaminSarge

same issue https://github.com/BrianLima/UWPHook/issues/157

maybe adding to the GetAUMIDScript.ps1 script could fix this.

Import-Module -Name Appx -UseWindowsPowerShell

When I get some time I try to test this.

dos-ise avatar Jan 08 '25 08:01 dos-ise

same issue #157

maybe adding to the GetAUMIDScript.ps1 script could fix this.

Import-Module -Name Appx -UseWindowsPowerShell

When I get some time I try to test this.

Currently on it.

GeorgeBroughton avatar Jan 23 '25 18:01 GeorgeBroughton

The fork i just did a commit on works now i've added this line to GetAUMIDScript.ps1

Link to a build i did here: https://github.com/GeorgeBroughton/UWPHook/releases/tag/BugFix

GeorgeBroughton avatar Jan 25 '25 00:01 GeorgeBroughton

I had success by rolling back to the 2.14.1 version prior to .Net8 and it seemed to function as expected.

This probably doesn't help clarify if it's specifically a .Net error introduced or possibly some other PowerShell issue...? (given the syntax). But at least I've been able to get games loaded in.

THX, you save me a lot of time

Oldjoy6 avatar Feb 01 '25 23:02 Oldjoy6

thanks both

doninss avatar Mar 10 '25 00:03 doninss