UWP App support in Cameyo

Raja Shanmugam 80 Reputation points
2026-12-01T05:10:02.95+00:00

Hi,

We have our UWP app in microsoft store. And using preinstall kit, we have created exe installer for it.

The exe installer will install the app using Add-appxprovisionedpackage -online with license.xml.

The app used ApplicationData.Current(localsettings) to store data.

Will the UWP app work in cameyo environment?

Session execution failure: App+ launches on the host server via its protocol handler (appprotocol://), but fails to execute inside Cameyo's virtualized user session. This may relate to per-user package registration or session user context;?? not sure

Developer technologies | Universal Windows Platform (UWP)
0 comments No comments

2 answers

Sort by: Most helpful
  1. Gatlin Le (WICLOUD CORPORATION) 1,680 Reputation points Microsoft External Staff Moderator
    2026-12-01T07:49:55.88+00:00

    Hi @Raja Shanmugam ,

    Whether your UWP app is supported inside a Cameyo session is something Cameyo would need to confirm, as Microsoft documentation does not cover how Cameyo launches packaged apps. The Windows side of the failure, however, can be narrowed down.

    Your suspicion about per-user registration is a reasonable first check. Preinstalling packaged apps explains that staging stores the package on the device once, while registration happens per user at sign-in, and only users with the package registered can access the app. A successful Add-AppxProvisionedPackage -Online therefore does not confirm that the app is registered for the Cameyo session user.

    To check it, run this Get-AppxPackage query in a non-elevated PowerShell window inside the failing Cameyo session, entering the Name value from the Identity element in your AppxManifest.xml:

    $name = Read-Host 'Package Identity Name from AppxManifest.xml'
    Get-AppxPackage -Name $name -ErrorAction Stop |
        Select-Object Name, PackageFamilyName, Status
    

    In my test, a mistyped name, the display name, or the PackageFamilyName also returned an empty result without any error, so please verify the name first. If nothing is returned for the correct name, the package is not registered for that user. The app troubleshooting guidance describes registering it with Add-AppxPackage -RegisterByFamilyName -MainPackage <PackageFamilyName> from a non-elevated prompt in that user's session. If the app then launches, this points to registration as the missing piece, and the remaining question for Cameyo is how their sessions handle registration for each user.

    If the package is returned with Status Ok, activation or the appprotocol:// association can still fail, as the same guidance notes. In that case, please share whether a normal launch also fails in that session and the error or HRESULT recorded in Microsoft-Windows-TWinUI/Operational at the failure time.

    On LocalSettings, Store and retrieve settings and other app data states that each app gets its own per-user data store, so the values belong to the session user rather than the host user. Whether they persist between sessions depends on whether Cameyo keeps that user's data, which is worth confirming with them.

    I hope this helps clarify the Windows side. If it turns out to be useful, you may consider following this guidance so others with a similar question can find it more easily. Either way, feel free to post your results here and I will continue from there.

    Thank you.

    Was this answer helpful?

    0 comments No comments

  2. AI answer

    2026-12-01T05:11:40.46+00:00

    Cameyo does not publicly document guaranteed UWP/AppX or custom-protocol support, so first register the already-provisioned package for the Cameyo session user and then determine whether the remaining failure is specific to Cameyo’s session virtualization.

    Add-AppxProvisionedPackage -Online stages the package on the host, but registration—including protocol associations and app-data initialization—still occurs separately for each user at sign-in. Only users for whom the package is registered can run it.^1^

    1. Check registration inside the affected Cameyo session

    Open a non-elevated PowerShell window inside the same Cameyo user session that fails to launch the app:

    $pkg = Get-AppxPackage -Name "Your.Package.Name"
    
    if ($pkg) {
        $pkg | Select-Object Name, PackageFamilyName, InstallLocation, Status
    } else {
        Write-Host "Package is not registered for this session user."
    }
    

    Get-AppxPackage reports packages installed in the current user profile.^2^

    Then, from an elevated host-administration session, check whether it is staged or registered for another user:

    Get-AppxPackage -Name "Your.Package.Name" -AllUsers |
        Select-Object Name, PackageFamilyName, InstallLocation, PackageUserInformation
    

    Interpret the result:

    • Current-user query is empty, but -AllUsers returns the package: the Cameyo user lacks registration.
    • Both return the package: registration exists; continue with protocol testing.
    • Both are empty: provisioning did not leave the package available on this Cameyo host or image.

    2. If registration is missing, register it for that Cameyo user

    Run this from a non-elevated PowerShell prompt inside the affected user’s Cameyo session:

    Add-AppxPackage `
        -RegisterByFamilyName `
        -MainPackage "Your.PackageFamilyName"
    

    Alternatively, if the package family method is unavailable but the staged manifest path is known:

    Add-AppxPackage `
        -Path "C:\Program Files\WindowsApps\<package>\AppxManifest.xml" `
        -DisableDevelopmentMode `
        -Register
    

    Do not run this corrective command under the administrator account: registration would apply to the administrator rather than the affected session user. Microsoft documents per-user re-registration as the supported correction when a package exists on the machine but is missing or incorrectly registered for a user.^3^

    After registration:

    1. Launch the app normally from the session.
    2. Test its protocol from that same session:
    Start-Process "appprotocol://test"
    

    3. Distinguish app startup from protocol activation

    A packaged app receives protocol activation only when its package manifest declares that URI scheme. Verify Package.appxmanifest contains the matching lowercase protocol name:^4^

    <Applications>
      <Application ...>
        <Extensions>
          <uap:Extension Category="windows.protocol">
            <uap:Protocol Name="appprotocol">
              <uap:DisplayName>App+</uap:DisplayName>
            </uap:Protocol>
          </uap:Extension>
        </Extensions>
      </Application>
    </Applications>
    

    Test these separately:

    • Normal launch fails: investigate package registration or UWP activation.
    • Normal launch succeeds but appprotocol:// fails: investigate the per-user protocol association or Cameyo’s handling of shell protocol activation.
    • Both work outside Cameyo but fail inside it after successful registration: this points to a Cameyo interoperability limitation rather than the EXE provisioning step. Cameyo’s public architecture material describes Windows application sessions but does not state that UWP/AppContainer packages and their protocol handlers are supported.^5^

    UWP applications run as AppContainer apps, so a result from a traditional Win32 application in the same session does not prove UWP compatibility.^6^

    4. Check activation and registration errors

    Immediately after reproducing the failure, inspect:

    • Event Viewer → Applications and Services Logs → Microsoft → Windows → AppXDeployment-Server → Microsoft-Windows-AppXDeploymentServer/Operational
    • AppxPackagingOM → Microsoft-Windows-AppxPackaging/Operational
    • Microsoft-Windows-TWinUI/Operational, for activation failures

    Also run:

    Get-AppxLog | Select-Object -First 30
    

    These logs distinguish package-registration failures from dependency, architecture, or activation errors.^7^

    ApplicationData.Current.LocalSettings

    LocalSettings remains valid for a correctly registered packaged app, but the store is isolated per app and per user.^8^ Therefore:

    • Different Cameyo users will not share the values.
    • Settings survive only if Cameyo preserves the user profile/app-data container between sessions.
    • In a non-persistent or newly generated session profile, the app can start with empty settings each time.
    • Uninstalling the app removes its app-data store.

    If registration succeeds but activation still fails only inside Cameyo, provide Cameyo Support with the Cameyo deployment mode, host Windows/Windows Server build, profile-persistence configuration, package family name, and relevant TWinUI/AppX event entries. Those details are required to confirm whether that Cameyo configuration supports UWP AppContainer activation.


    References

    1. Preinstalling packaged apps
    2. Get-AppxPackage-Description
    3. Modern, Inbox, and Microsoft Store Apps troubleshooting guidance
    4. Handle URI activation
    5. Cameyo architecture : Help Center
    6. MSIX AppContainer apps - MSIX | Microsoft Learn
    7. Troubleshooting packaging, deployment, and query of Windows apps
    8. Store and retrieve settings and other app data
    AI-generated content may be incorrect. Read our transparency notes for more information.

    Was this answer helpful?

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.