Multiple shortcut using command line

%3CLINGO-SUB%20id%3D%22lingo-sub-283980%22%20slang%3D%22en-US%22%3EMultiple%20shortcut%20using%20command%20line%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-283980%22%20slang%3D%22en-US%22%3E%3CP%3EHi%2C%3C%2FP%3E%3CP%3EI%20am%20trying%20to%20create%20MSIX%20package%20for%207zip%20using%20command%20line.%20Created%20MSIX%20package%20is%20having%20only%20one%20application%20(shortcut)%20but%20in%20the%20template%20I%20have%20added%203%20application%20(shortcut).%20Can%20anyone%20guide%20me%20how%20to%20add%20multiple%20application%20(shortcut)%20in%20MSIX%20package%20using%20command%20line.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHere%20is%20the%20Section%20for%20Package%20and%20Applications%20information%20in%20the%20template%20file.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CPACKAGEINFORMATION%3E%3CBR%20%2F%3E%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3BPackageName%3D%227zip%22%3CBR%20%2F%3E%3CSPAN%3E%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%3C%2FSPAN%3EPackageDisplayName%3D%227zip%22%3CBR%20%2F%3E%3CSPAN%3E%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%3C%2FSPAN%3EPublisherName%3D%22CN%3DMSIXPackaging%22%3CBR%20%2F%3E%3CSPAN%3E%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%3C%2FSPAN%3EPublisherDisplayName%3D%227zip%22%3CBR%20%2F%3E%3CSPAN%3E%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%3C%2FSPAN%3EVersion%3D%221.0.0.0%22%20%26gt%3B%3C%2FPACKAGEINFORMATION%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%20%26nbsp%3B%20%3CAPPLICATIONS%3E%3CBR%20%2F%3E%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%3CAPPLICATION%3E%3CBR%20%2F%3E%3CSPAN%3E%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%3C%2FSPAN%3EId%3D%22SevenFileManager%22%3CBR%20%2F%3E%3CSPAN%3E%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%3C%2FSPAN%3EDescription%3D%227%20zip%20file%20manager%22%3CBR%20%2F%3E%3CSPAN%3E%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%3C%2FSPAN%3EDisplayName%3D%227zFM%22%3CBR%20%2F%3E%3CSPAN%3E%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%3C%2FSPAN%3EExecutableName%3D%227zDM.exe%22%2F%26gt%3B%3CBR%20%2F%3E%3CSPAN%3E%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%3C%2FSPAN%3E%3C%2FAPPLICATION%3E%3C%2FAPPLICATIONS%3E%3C%2FP%3E%3CP%3E%3CSPAN%3E%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%3C%2FSPAN%3E%3CAPPLICATION%3E%3CBR%20%2F%3E%3CSPAN%3E%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%3C%2FSPAN%3EId%3D%22ServenG%22%3CBR%20%2F%3E%3CSPAN%3E%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%3C%2FSPAN%3EDescription%3D%227%20G%22%3CBR%20%2F%3E%3CSPAN%3E%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%3C%2FSPAN%3EDisplayName%3D%227zG%22%3CBR%20%2F%3E%3CSPAN%3E%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%3C%2FSPAN%3EExecutableName%3D%227zG.exe%22%2F%26gt%3B%3C%2FAPPLICATION%3E%3C%2FP%3E%3CP%3E%3CBR%20%2F%3E%3CSPAN%3E%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%3C%2FSPAN%3E%3CAPPLICATION%3E%3CBR%20%2F%3E%3CSPAN%3E%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%3C%2FSPAN%3EId%3D%22SevenZ%22%3CBR%20%2F%3E%3CSPAN%3E%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%3C%2FSPAN%3EDescription%3D%227z%22%3CBR%20%2F%3E%3CSPAN%3E%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%3C%2FSPAN%3EDisplayName%3D%227z%22%3CBR%20%2F%3E%3CSPAN%3E%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%3C%2FSPAN%3EExecutableName%3D%227z.exe%22%2F%26gt%3B%3CBR%20%2F%3E%3CSPAN%3E%26nbsp%3B%20%26nbsp%3B%3C%2FSPAN%3E%3C%2FAPPLICATION%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%20%26nbsp%3B%3CCAPABILITIES%3E%3CBR%20%2F%3E%26nbsp%3B%20%26nbsp%3B%3CCAPABILITY%20name%3D%22%26quot%3BrunFullTrust%26quot%3B%22%3E%3C%2FCAPABILITY%3E%3CBR%20%2F%3E%26nbsp%3B%20%26nbsp%3B%3C%2FCAPABILITIES%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CP%3E%3C%2FP%3E%3CLINGO-SUB%20id%3D%22lingo-sub-284879%22%20slang%3D%22en-US%22%3ERe%3A%20Multiple%20shortcut%20using%20command%20line%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-284879%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20Bineesh%2C%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThere%20is%20currently%20no%20GUI%20based%20option%20to%20edit%20entry%20points%20in%20package%20editor.%26nbsp%3B%20You%20could%20accomplish%20this%20by%20manually%20editing%20the%20manifest%20via%20the%20%22Open%20file%22%20option%20at%20the%20bottom%20of%20the%20Package%20Information%20page%20in%20Package%20editor.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EI%20realize%20that%20this%20may%20not%20be%20particularly%20easy%20task%20especially%20if%20you%20have%20many%20of%20these%20packages%20to%20edit.%26nbsp%3B%20How%20often%20would%20you%20estimate%20this%20scenario%20would%20be%20important%20to%20you%3F%26nbsp%3B%3C%2FP%3E%0A%3CP%3EI'll%20bring%20a%20GUI%20based%20entry%20point%20editing%20scenario%20up%20for%20consideration%20with%20our%20team.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThanks!%3CBR%20%2F%3EJames%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-284519%22%20slang%3D%22en-US%22%3ERe%3A%20Multiple%20shortcut%20using%20command%20line%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-284519%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20James%2C%3C%2FP%3E%3CP%3EThank%20you%20for%20your%20response.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EOption%202%20may%20add%20so%20many%20entries%20in%20case%20applications%20having%20lot%20of%20exes.%20If%20there%20is%20an%20option%20to%20add%2Fremove%2Fmodify%20entry%20points%20(shortcut%20for%20desktop%2C%20start%20menu%2C%20start%20menu%20folder)%20in%20Package%20editor%20that%20will%20be%20good.%20I%20am%20not%20sure%20that%20is%20currently%20available%20(I%20don't%20find%20such%20option).%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%2C%3C%2FP%3E%3CP%3EBineesh%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-284336%22%20slang%3D%22en-US%22%3ERe%3A%20Multiple%20shortcut%20using%20command%20line%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-284336%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20Bineesh%2C%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EApplication%20nodes%20in%20the%20CLI%20template%20act%20as%20hints%20for%20the%20metadata%20fields%20you%20would%20like%20to%20specify%20if%20those%20executables%20are%20detected%20as%20entry%20points%20to%20the%20installer%20you%20installed.%26nbsp%3B%20The%20easiest%20way%20for%20us%20to%20make%20this%20distinction%20is%20by%20spotting%20a%20shortcut%20file%20getting%20created%20by%20the%20installer.%20It%20sounds%20like%20your%20installer%20probably%20only%20created%20a%20single%20shortcut%2C%20which%20is%20why%20your%20packaged%20MSIX%20ended%20up%20with%20a%20single%20application%20node.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ETwo%20thoughts%3A%3C%2FP%3E%0A%3CP%3E1.%20To%20unblock%20you%20today%2C%20you%20can%20wrap%20your%20installer%20in%20a%20simple%20Powershell%20script%20that%20creates%20the%20additional%20shortcut%20files%20after%207zip%20finishes%20installing.%26nbsp%3B%20That%20should%20allow%20the%20monitoring%20step%20to%20pick%20up%20your%20desired%20entry%20points%20and%20package%20correctly.%3C%2FP%3E%0A%3CP%3E2.%20Your%20scenario%20sounds%20reasonable%2C%20I'm%20filing%20an%20item%20to%20look%20into%20using%20the%20application%20nodes%20to%20cross%20reference%20all%20detected%20exes%20we%20see%20during%20monitoring%2C%20not%20just%20the%20ones%20we%20pre-identified%20as%20entry%20points.%26nbsp%3B%20This%20would%20put%20the%20behavior%20in%20line%20with%20the%20UI%20experience%20of%20selecting%20entrypoints%20during%20the%20first%20launch%20wizard%20page.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EIf%20the%20improved%20behavior%20proposed%20in%20%232%20sounds%20good%20to%20you%2C%20please%20reply%20or%20file%20a%20feedback%20item%20with%20the%20same%20suggestion.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ELet%20me%20know%20how%20your%20conversion%20efforts%20go!%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThanks!%3CBR%20%2F%3EJames%3C%2FP%3E%3C%2FLINGO-BODY%3E
Occasional Contributor

Hi,

I am trying to create MSIX package for 7zip using command line. Created MSIX package is having only one application (shortcut) but in the template I have added 3 application (shortcut). Can anyone guide me how to add multiple application (shortcut) in MSIX package using command line.

 

Here is the Section for Package and Applications information in the template file.

 

<PackageInformation
     PackageName="7zip"
     PackageDisplayName="7zip"
     PublisherName="CN=MSIXPackaging"
     PublisherDisplayName="7zip"
     Version="1.0.0.0" >

 

    <Applications>
         <Application
         Id="SevenFileManager"
         Description="7 zip file manager"
         DisplayName="7zFM"
         ExecutableName="7zDM.exe"/>
         

         <Application
         Id="ServenG"
         Description="7 G"
         DisplayName="7zG"
         ExecutableName="7zG.exe"/>


         <Application
         Id="SevenZ"
         Description="7z"
         DisplayName="7z"
         ExecutableName="7z.exe"/>
   </Applications>

 

   <Capabilities>
   <Capability Name="runFullTrust" />
   </Capabilities>

 

</PackageInformation>

3 Replies

Hi Bineesh,

 

Application nodes in the CLI template act as hints for the metadata fields you would like to specify if those executables are detected as entry points to the installer you installed.  The easiest way for us to make this distinction is by spotting a shortcut file getting created by the installer. It sounds like your installer probably only created a single shortcut, which is why your packaged MSIX ended up with a single application node.

 

Two thoughts:

1. To unblock you today, you can wrap your installer in a simple Powershell script that creates the additional shortcut files after 7zip finishes installing.  That should allow the monitoring step to pick up your desired entry points and package correctly.

2. Your scenario sounds reasonable, I'm filing an item to look into using the application nodes to cross reference all detected exes we see during monitoring, not just the ones we pre-identified as entry points.  This would put the behavior in line with the UI experience of selecting entrypoints during the first launch wizard page.

 

If the improved behavior proposed in #2 sounds good to you, please reply or file a feedback item with the same suggestion.

 

Let me know how your conversion efforts go!

 

Thanks!
James

Hi James,

Thank you for your response.

 

Option 2 may add so many entries in case applications having lot of exes. If there is an option to add/remove/modify entry points (shortcut for desktop, start menu, start menu folder) in Package editor that will be good. I am not sure that is currently available (I don't find such option).

 

Thanks,

Bineesh

Hi Bineesh,

 

There is currently no GUI based option to edit entry points in package editor.  You could accomplish this by manually editing the manifest via the "Open file" option at the bottom of the Package Information page in Package editor.

 

I realize that this may not be particularly easy task especially if you have many of these packages to edit.  How often would you estimate this scenario would be important to you? 

I'll bring a GUI based entry point editing scenario up for consideration with our team.

 

Thanks!
James