MSIX Package with service fails to immediately install the service.

MVP

A MSIX package created with the Microsoft MSIX Packaging Tool 1.2022.512 build for the ZoomClient includes a service that is set for the LocalSystem account and Automatic start.

 

When installing the MSIX package via AppInstaller (on either Win 10 21H2 or Windows 11) the package indicates the service and there is an elevation to be able to install the service.

 

But the service ends up not installed immediately, which is confusing and inconsistent with other packages.  The service is later installed and started by running the app and starting a meeting.

 

The application entry in the AppXManifest file is shown below.  There were no errors or warnings in the Event Logs for AppX* to indicate why.  I wonder if it is the variablized argument field for the service start command line that throws things off. 

 

<Application Id="ZOOMCPTSERVICE" Executable="VFS\ProgramFilesCommonX86\Zoom\Support\CptService.exe" EntryPoint="Windows.FullTrustApplication">
<uap:VisualElements BackgroundColor="transparent" DisplayName="Zoom Sharing Service" Square150x150Logo="Assets\Square150x150Logo.png" Square44x44Logo="Assets\Square44x44Logo.png" Description="Enable Zoom meeting participants to control your desktop. If this service is stopped or disabled, remote users won't control any applications running at a High Integrity level." AppListEntry="none"/>
<Extensions>
<desktop6:Extension Category="windows.service" Executable="VFS\ProgramFilesCommonX86\Zoom\Support\CptService.exe" EntryPoint="Windows.FullTrustApplication">
<desktop6:Service Name="ZoomCptService" StartupType="auto" StartAccount="localSystem" Arguments="-user_path "[{AppData}]\Zoom""/>
</desktop6:Extension>
</Extensions>
</Application>
1 Reply
Yes, the service doesn't get executed until the app runs.

You said "the service ends up not installed immediately, which is confusing and inconsistent with other packages.". Can you clarify what other packages you're comparing between? MSI and EXE don't have this experience.