Forum Discussion
Duplication Shortcuts on Win11
- Sep 07, 2023PS: The issue will be resolved using TMEditX 6.5 or above, although Microsoft may have also addressed in in their latest MMPT release which arrived in parellel - I'm not sure.
kyelamarthi I have sent you the link to the package in a direct message.
- Edijs_Perkums_MasterPackagerJan 11, 2024Brass ContributorThank you, finally an explanation how to get it working. However as mentioned before, this is not "my" package. This is what the Microsoft MSIX packaging tool generates when repackaging VLC, the manifest has not been edited by me. So the MSIX packaging tool generates an incorrect manifest.
It would be nice if this was actually documented.
https://learn.microsoft.com/en-us/uwp/schemas/appxpackage/uapmanifestschema/element-desktop7-shortcut
Does not mention anywhere that you can only create shortcuts to user writable locations. Also the File attribute is documented absolutely incorrectly. "The path to the file that is the target of the shortcut." It is not the path of the target of the shortcut, it is the path of the shortcut itself.
Also the App Installer should throw an error that it can't create the shortcut instead of just installing without the shortcut. - ravishroshanJan 08, 2024
Microsoft
Edijs_Perkums_MasterPackager Your package is using "[{Common Programs}]" in the shortcut file section. "[{Common Programs}]" is used to create system wide shortcut. In MSIX you won't be able to create system wide shortcuts. You can convert this shortcut to user level shortcut by replacing the token to "[{Programs}]".
Another problem which I can see with your package is that it is creating multiple shortcuts for one application. As of now we support just one start menu shortcut per application.
If you need more than one shortcut you need to provide as many "Application" entries. You can hide the default tile for these by setting AppListEntry="none". Please have a look at the below manifest snippet for reference:<Application Id="VLC2" Executable="VFS\ProgramFilesX86\VideoLAN\VLC\vlc.exe" EntryPoint="Windows.FullTrustApplication"> <uap:VisualElements BackgroundColor="transparent" DisplayName="VLC media player" Square150x150Logo="Assets\VLC-Square150x150Logo.png" Square44x44Logo="Assets\VLC-Square44x44Logo.png" Description="VLC media player" AppListEntry="none"> <uap:DefaultTile Wide310x150Logo="Assets\VLC-Wide310x150Logo.png" Square310x310Logo="Assets\VLC-Square310x310Logo.png" Square71x71Logo="Assets\VLC-Square71x71Logo.png" /> </uap:VisualElements> <Extensions> <desktop7:Extension Category="windows.shortcut"> <desktop7:Shortcut File="[{Programs}]\VideoLAN\VLC media player skinned.lnk" Icon="[{Package}]\VFS\ProgramFilesX86\VideoLAN\VLC\vlc.exe" Arguments="-Iskins" /> </desktop7:Extension> </Extensions> </Application> <Application Id="VLC3" Executable="VFS\ProgramFilesX86\VideoLAN\VLC\vlc.exe" EntryPoint="Windows.FullTrustApplication"> <uap:VisualElements BackgroundColor="transparent" DisplayName="VLC media player" Square150x150Logo="Assets\VLC-Square150x150Logo.png" Square44x44Logo="Assets\VLC-Square44x44Logo.png" Description="VLC media player" AppListEntry="none"> <uap:DefaultTile Wide310x150Logo="Assets\VLC-Wide310x150Logo.png" Square310x310Logo="Assets\VLC-Square310x310Logo.png" Square71x71Logo="Assets\VLC-Square71x71Logo.png" /> </uap:VisualElements> <Extensions> <desktop7:Extension Category="windows.shortcut"> <desktop7:Shortcut File="[{Programs}]\VideoLAN\VLC media player.lnk" Icon="[{Package}]\VFS\ProgramFilesX86\VideoLAN\VLC\vlc.exe" /> </desktop7:Extension> </Extensions> </Application>