The session hosts in pooled host pool HP1 have Windows Calculator installed from the Microsoft Store, and Store updates install automatically. You plan to add Calculator to the existing RemoteApp application group RAG1 by using the Azure portal.
Requirements:
- Users must keep access to Calculator after each automatic update.
- Calculator must appear with the approved icon file calc.png.
The calc.png file is stored on the file share \fs01\icons and has also been copied to C:\Icons on every session host. No app attach packages are added to HP1.
Which configuration should you use when you add Calculator to RAG1?
Microsoft Store apps install into a directory whose name includes the version number, so a path to the .exe breaks when the app updates automatically. Using the File path source with shell:AppsFolder<PackageFamilyName>!<AppId> avoids the versioned directory. Because this method does not pick up the icon automatically, specify the icon file at its stable local path on each session host. App Attach requires a package already added and assigned to the host pool.
- Not correct: Source: File path; Application path: C:\Program Files\WindowsApps\Microsoft.WindowsCalculator_11.2405.2.0_x64__8wekyb3d8bbwe\CalculatorApp.exe; Icon path: C:\Icons\calc.png. The Store install directory includes the version number, which changes on each update, so the application becomes unavailable to users after an automatic update.
- Not correct: Source: App Attach; Package: Microsoft.WindowsCalculator; Icon path: \fs01\icons\calc.png. App Attach requires an MSIX package already added and assigned to the host pool. HP1 has no App Attach packages.
- Correct: Source: File path; Application path: shell:AppsFolder\Microsoft.WindowsCalculator_8wekyb3d8bbwe!App; Icon path: C:\Icons\calc.png. The shell:AppsFolder path does not include the version number, so it stays valid after updates. The approved icon is available at the same stable local path on every session host.
- Not correct: Source: File path; Application path: shell:AppsFolder\Microsoft.WindowsCalculator_8wekyb3d8bbwe!App; Icon path: \fs01\icons\calc.png. The application path survives updates. The Microsoft Store publishing procedure calls for an icon file at a stable local path on each session host, and this option specifies the file share.