electron-userland / electron-windows-store

:package: Turn Electron Apps into Windows AppX Packages
MIT License
678 stars 86 forks source link

error 0x80096019 #92

Open utiq opened 6 years ago

utiq commented 6 years ago

I could create the appx file and everything went well. But when I try to install the app, this is the error I get:

error 0x80096019: Opening the package from location myapp.appx failed.

This is how I created the certificates in case the problem is related to that:

makecert -r -pe -n "CN=mycompany.com" -ss CA -sr CurrentUser -a sha1 -sky signature -cy authority -sv CA.pvk CA.cer
pvk2pfx -pvk "CA.pvk" -spc "CA.cer" -pfx "mycompany.com.pfx" -pi mypassword
learchamba commented 5 years ago

Hello, did you manage to resolve your problem since then ? If yes, how ?

purocean commented 5 years ago

@learchamba You can use create-self-signed-cert command to generate pfx file. I solved it.

AlexandreSi commented 5 years ago

Hi @purocean, I can't find any resources on create-self-signed-cert, could you be more accurate?

purocean commented 5 years ago

@AlexandreSi Try install windows SDK.

https://github.com/microsoft/node-pty#windows

npm install --global --production windows-build-tools

You could find it in some path. Use everything search it.

tim4724 commented 2 years ago

I run into the same error 0x80096019.

But I was able to fix it by following this Tutorial from Microsoft: https://docs.microsoft.com/de-de/windows/win32/appxpkg/how-to-create-a-package-signing-certificate

MakeCert /n CN=YOUR_NAME /r /h 0 /eku "1.3.6.1.5.5.7.3.3,1.3.6.1.4.1.311.10.3.13" /e "01/01/2040" /sv MyKey.pvk MyKey.cer
Pvk2Pfx /pvk MyKey.pvk /spc MyKey.cer /pfx MyKey.pfx

Creates a certificate with Publisher "CN=YOUR_NAME" valid until "01/01/2040" with no password.

I then installed the certificate in the "Trusted People" Cert-Store using the accepted answer from this stackoverflow question. https://stackoverflow.com/questions/23812471/installing-appx-without-trusted-certificate