microsoft / win32-app-isolation

Tools and documentation for Win32 app isolation
MIT License
1.27k stars 33 forks source link

[Bug]: Cannot open app package: Error in parsing the app package #15

Closed JasonWei512 closed 1 year ago

JasonWei512 commented 1 year ago

Version

Windows 11 22623.1245 Win32 app isolation v0.1.0

Repro Steps

I tried to create an isolated package for the code editor Lapce v0.2.7. I downloaded Lapce-windows.msi, and followed the guide to create a package. I used a self signed PFX certificate to sign the package.

App manifest:

The default app manifest Lapce Lapce Lapce Assets\StoreLogo.png
The app manifest I used Lapce Lapce Lapce Assets\StoreLogo.png

And I succeed to generate an MSIX package. But...

Unexpected Results

When I double clicked the generated MSIX package, I got an error: Cannot open app package: Error in parsing the app package.

Screenshot

If I don't replace entrypoint with uap10:TrustLevel="appContainer" previewsecurity2:RuntimeBehavior="appSilo" in app manifest when packaging as the guide does, I can install the package, but it's no longer isolated.

lilybarkley-msft commented 1 year ago

Hey JasonWei512,

The min build provided in the documentation is incorrect. I'm currently working on finding a more exact min build and will update the documentation once I do. I was able to successfully package and install on 25375, though I suspect the actual min build is a little lower than that.

Thanks, Lily

lilybarkley-msft commented 1 year ago

I've opened a PR to update the documentations, 10.0.25229.0 is the actual min build you should be targeting.

lilybarkley-msft commented 1 year ago

Closing the issue as https://github.com/microsoft/win32-app-isolation/pull/18 has been checked in.