Skip to content

Instantly share code, notes, and snippets.

@mjfusa
Created March 11, 2021 21:08
Show Gist options
  • Save mjfusa/ba71a2d28dac982ac0ccb7356f88d96b to your computer and use it in GitHub Desktop.
Save mjfusa/ba71a2d28dac982ac0ccb7356f88d96b to your computer and use it in GitHub Desktop.
MSIX Manifest Entries for Windows Service
<Extensions>
<desktop6:Extension Category="windows.service" EntryPoint="Windows.FullTrustApplication" Executable="WindowsServiceSample.exe">
<desktop6:Service Name="WindowsService Sample" StartAccount="localSystem" StartupType="auto" />
</desktop6:Extension>
</Extensions>
<Capabilities>
<rescap:Capability Name="runFullTrust"/>
<rescap:Capability Name="localSystemServices"/>
<rescap:CapabiIity Name="packagedServices"/>
</Capabilities>
@mjfusa
Copy link
Author

mjfusa commented Mar 11, 2021

You do not need an entry in <Applications> for this EXE. <Applications> is for applications that are launched from the Start menu.

You can edit the manifest using the MSIX Packaging Tool.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment