Windows-iotcore-samples icon indicating copy to clipboard operation
Windows-iotcore-samples copied to clipboard

shell:AppFolder not updating / incomplete.

Open VoxCodice opened this issue 2 years ago • 0 comments

I configured a custom shell using the guide from the link below to launch a WPF app as shell and the shell launcher park works a treat, my WPF app being launched without a fault. https://github.com/Microsoft/Windows-iotcore-samples/blob/develop/Samples/ShellLauncherV2/SampleBridgeWmiScripts/README.md

The problem I am now facing is that the shell:AppsFolder does not list every installed app on the system as it would if I were not using a custom shell. If I undo my changes and revert to explorer, the shell:AppsFolder is populated correctly. If I configure my WPF back as a shell replacement, the shell:AppsFolder is again incomplete.

When installing or removing an app, the shell:AppsFolder would normaly update almost immediately. When using a custom shell, the AppsFolder doesn't change.

Must I configure Shell Launcher V2 differently to fix this issue?

Below is my current configuration:

<?xml version="1.0" encoding="utf-8"?>
<ShellLauncherConfiguration xmlns="http://schemas.microsoft.com/ShellLauncher/2018/Configuration" xmlns:v2="http://schemas.microsoft.com/ShellLauncher/2019/Configuration">
    <Profiles>
        <DefaultProfile>
            <Shell Shell="%systemroot%\explorer.exe">
                <DefaultAction Action="RestartShell"/>
            </Shell>
        </DefaultProfile>
        <Profile Id="{814B6409-8C51-4EE2-95F8-DB39B70F5F68}">
            <Shell Shell="C:\Path\To\My\Wpf\App" v2:AllAppsFullScreen="false">
                <DefaultAction Action="RestartShell"/>
            </Shell>
        </Profile>
    </Profiles>
    <Configs>
        <Config>
            <Account Sid="S-1-5-21-3162989350-641117631-3558602088-1002"/>
            <Profile Id="{814B6409-8C51-4EE2-95F8-DB39B70F5F68}"/>
        </Config>
    </Configs>
</ShellLauncherConfiguration>

VoxCodice avatar Feb 06 '23 15:02 VoxCodice