Open Ihjop opened 2 years ago
Hi, Thanks for letting me know.
Unfortunately I don't really have a solution right now. I'm not gonna spend hundreds every year to distribute a free app.
Ultimately Microsoft needs to fix the situation. They can't just restrict WinUI development to developers that can afford a cert. There needs to be a way to distribute an unsigned WinUI app.
You have options for people to use install.ps1 as I see it:
So, perhaps consider option 2?
Hi @AJLeuer, Is it possible for you to remove the certificate requirement?
I just wanted to report that I was able to install the package from powershell with the -AllowUnsigned parameter set.
Add-AppXPackage '.\GHelper (Package)_1.2.1.0_x64.msixbundle' -AllowUnsigned
Just make sure you have the Windows App Runtime installed for your architecture first. The latest release .zip of GHelper has a package for each architecture in the Dependencies folder, e.g. Microsoft.WindowsAppRuntime.1.0.msix.
edit: I had a hard time understanding how the Windows App Runtimes were supposed to be installed manually, then it occurred to me that installing the WinUI 3 Gallery sample application from the Microsoft Store would take care of them with one click.
I just wanted to report that I was able to install the package from powershell with the -AllowUnsigned parameter set.
Add-AppXPackage '.\GHelper (Package)_1.2.1.0_x64.msixbundle' -AllowUnsigned
I'm not very powershell literate, but I have been struggling to get that command to work and keep getting the following error:
Add-AppxPackage : A parameter cannot be found that matches parameter name 'AllowUnsigned'
I tried on Powershell version 5.1 and 7.3.6 because I heard of some issues with Appx on certain versions. But neither has seemed to work.
Does anybody have any idea how to get it working?
Okay I figured out a different way that does not require the Security Certificate. It's very similar to what was mentioned before but a bit different and this was the only way I was able to get it working. You also need to install the Windows App Runtime/dependencies (as previously mentioned) beforehand. I might be inaccurate in some minor details so tell me if I got something wrong. Here's how I did it:
Add-AppxPackage -Path C:\Users\user\Desktop\GHelper\GHelper_Directory\AppxManifest.xml -Register
**This command will only work if GHelper is not installed, so uninstall beforehand if installed.Got part of the idea from: https://pureinfotech.com/install-unsigned-windows-10-apps-powershell/
Apparently -AllowUnsigned is only available on Windows 11, not Windows 10. I am guessing that is the issue. The method of unpacking the archive and registering the AppxManifest.xml of the loose files in-place should work. You might try -Register with -DisableDevelopmentMode. I don't know if it will let you skip turning on developer mode, but it should let you reinstall without having to uninstall first.
Hello!
The Security Certificate lapsed on 2022-04-14