microsoft / win32-app-isolation

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

[Bug]: Parsing Error : Appx package's manifest is invalid #59

Closed kartikdutt-msft closed 8 months ago

kartikdutt-msft commented 8 months ago

Version

Windows version: Latest Canary: 25987 win32-app-iso: version: 0.1.1 MSIX Packaging Tool v1.2023.517.0

Repro Steps

  1. Download node from node.js official site (https://nodejs.org/en/download)

  2. Create an MSIX package from msi installer.

  3. Try editting package with steps mentioned in the doc i.e.

  4. Add uap10:TrustLevel="appContainer" reviewsecurity2:RuntimeBehavior="appSilo" in Application.

  5. Add xmlns:previewsecurity2="http://schemas.microsoft.com/appx/manifest/preview/windows10/security/2" in Package and previewsecurity2 in ignoreNamespaces.

  6. Update minVersion (max Version higher than min to run on latest canary)

Manifest: <?xml version="1.0" encoding="utf-8"?> <Package xmlns="http://schemas.microsoft.com/appx/manifest/foundation/windows10" xmlns:previewsecurity2="http://schemas.microsoft.com/appx/manifest/preview/windows10/security/2" xmlns:uap="http://schemas.microsoft.com/appx/manifest/uap/windows10" xmlns:uap10="http://schemas.microsoft.com/appx/manifest/uap/windows10/10" xmlns:desktop7="http://schemas.microsoft.com/appx/manifest/desktop/windows10/7" xmlns:rescap="http://schemas.microsoft.com/appx/manifest/foundation/windows10/restrictedcapabilities" IgnorableNamespaces="previewsecurity2 uap uap10 desktop7 rescap">

Node.js Node.js Foundation Node.js Assets\StoreLogo.png

Unexpected Results

Results in Parsing Error:


The Appx package's manifest is invalid. (Exception from HRESULT: 0x80080204)```