Forum Discussion
Error using MSIX windows.shortcut extension
- Jan 06, 2023
I Just looked at examples from my tooling. Here is what seems to be wrong to get the package to install. The issue is the format of the file and icon references in the desktop7:Shortcut element, which appear very odd relative references.
Rules for these values as implemented from documentation (desktop7:Shortcut - Windows UWP applications | Microsoft Learn) look like any other package relative string, but MakeAppX (to create the package) seems to impose one set of rules, while the AppXInstaller is imposing a different set. And what actually works may be even different.
To satisfy what MakeAppX wants and get AppInstaller to accept it, I have been adding [{Package}] in front of VFS on those should always install (as in [{Package}]\VFS\Desktop\Sample.exe). Replacing VFS\xxx with a variable also possible, although Desktop might be [{ThisPCDesktopFolder}].
Microsoft could help here to clarify what is needed Dian Hartono
I Just looked at examples from my tooling. Here is what seems to be wrong to get the package to install. The issue is the format of the file and icon references in the desktop7:Shortcut element, which appear very odd relative references.
Rules for these values as implemented from documentation (desktop7:Shortcut - Windows UWP applications | Microsoft Learn) look like any other package relative string, but MakeAppX (to create the package) seems to impose one set of rules, while the AppXInstaller is imposing a different set. And what actually works may be even different.
To satisfy what MakeAppX wants and get AppInstaller to accept it, I have been adding [{Package}] in front of VFS on those should always install (as in [{Package}]\VFS\Desktop\Sample.exe). Replacing VFS\xxx with a variable also possible, although Desktop might be [{ThisPCDesktopFolder}].
Microsoft could help here to clarify what is needed Dian Hartono
- JerryJiang1265Feb 17, 2023
Microsoft
- harshada2019Mar 06, 2023
Microsoft
$(Package) or [{Package}] is the string of characters to type into your manifest, Windows Deployment will substitute in the right value during install time. Something like:
<desktop7:Shortcut File="$(Package)\VFS\Desktop\Sample.exe" />- Mar 06, 2023harshada2019 Is there documentation on this, or any other special cases the Windows Deployment uses?
- Jan 06, 2023
Also tagging Naveen_Nooka on this.