Forum Discussion

Florin Vică's avatar
Florin Vică
Copper Contributor
Nov 09, 2022
Solved

Error using MSIX windows.shortcut extension

After using the MSIX windows.shortcut extension, I am getting the following error on installation: "App installation failed with error message: AppxManifest.xml(2,2): error 0x800700A1: Cannot regist...
  • TIMOTHY_MANGAN's avatar
    TIMOTHY_MANGAN
    Jan 06, 2023

    Florin Vică 

     

    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 

     

     

Resources