I am having problems with my sideloaded metro app…… Doesn’t seem to work anymore on any of my machines.
For the first few months, I originally installed my Metro app by first installing the app’s signed certificate to the local machine root store (All OK), then running the following command logged on as the actual user I wanted the app run under.
Add-AppxPackage-Path"MyMetroApp.appx"-ForceApplicationShutdown
While this method sort of worked, it had two problems:
- I needed to manually renew the developer licence every 30 days running Show-WindowsDeveloperLicenseRegistration
- and I had to do this logged on as the user on the actual console, couldn’t to this using remote PowerShell.
I want to install the app properly for all users without needing to keep renewing the developer license. I have now run the following to install the app for all users:
#Allow Trusted Apps
New-Item-Path"HKLM:\Software\Policies\Microsoft\Windows\Appx"
New-ItemProperty-Path"HKLM:\Software\Policies\Microsoft\Windows\Appx"-NameAllowAllTrustedApps-PropertyTypeDWord-Value1
#Install the app for all users
Add-ProvisionedAppxPackage-Online-PackagePath"MyMetroApp.appx"
-SkipLicense
This method – even though it seemed to complete successfully, a couple of issues:
- there’s no shortcut added to the start screen on one of my machines, so I can’t open the app
- I am getting a message popup upon opening my app “The app can’t open: There's a problem with {app name}. Contact your system administrator about repairing or reinstalling it. [Close].” on another machine
Can someone please point me in right direction to get my app working again? I don’t think it’s anything major, I think I’m on the right track.