'get-AppxPackage' could not be loaded error
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.
Same issue, fresh install.
Also W10 and .Net 8.0.11 runtime
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 you legend thanks for taking the time to respond. My block head didn't even consider that! :)
2.14.2 also works for me, so it's just latest .net8 version that has issues, it seems.
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.
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.
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
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
thanks both