Way to package a shortcut with MSIX

%3CLINGO-SUB%20id%3D%22lingo-sub-1043575%22%20slang%3D%22en-US%22%3EWay%20to%20package%20a%20shortcut%20with%20MSIX%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1043575%22%20slang%3D%22en-US%22%3E%3CP%3EHi%2C%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EIs%20there%20any%20way%20to%20package%20a%20shortcut%3F%26nbsp%3B%20I%20come%20from%20App-V%205%20and%20to%20package%20Java%20as%20an%20example%2C%20I%20would%20install%20java%20and%20then%20pop%20an%20IE%20shortcut%20on%20the%20desktop%20which%20would%20reference%20the%20java%20in%20the%20%E2%80%9Cbubble%E2%80%9D.%26nbsp%3B%20This%20doesn%E2%80%99t%20seem%20to%20be%20possible%20with%20MSIX.%20I%20believe%20we%20can%20do%20this%20by%20adding%20the%20shortcuts%20after%20the%20package%20has%20been%20captured%20and%20we%20can%20get%20add%20some%20shortcut%20links!%3CBR%20%2F%3E%3CBR%20%2F%3ECan%20anyone%20please%20confirm%20on%20the%20same.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThanks%3CBR%20%2F%3EPriyanka%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1043944%22%20slang%3D%22en-US%22%3ERe%3A%20Way%20to%20package%20a%20shortcut%20with%20MSIX%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1043944%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F258183%22%20target%3D%22_blank%22%3E%40Priyanka_Aggarwal%3C%2FA%3EHi%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThe%20shortcut%20trick%20from%20APP-V%20to%20link%20Java%20with%20IE%20doesn't%20currently%20work%20with%20MSIX.%20Maybe%20in%20the%20future%20it%20will%20be%20possible%20when%20linking%20for%20MSIX%20packages%20becomes%20available.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EFor%20the%20moment%2C%20as%20far%20as%20i%20know%2C%20msix%20linking%20is%20in%20the%20backlog.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1227127%22%20slang%3D%22en-US%22%3ERe%3A%20Way%20to%20package%20a%20shortcut%20with%20MSIX%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1227127%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F287679%22%20target%3D%22_blank%22%3E%40alexmarin89%3C%2FA%3E%20There%20are%20two%20distinct%20issues.%3C%2FP%3E%0A%3CP%3E1)%20Shortcut%20to%20a%20file%20(other%20than%20an%20exe).%26nbsp%3B%20This%20issue%20may%20be%20overcome%20using%20PsfLauncher%20of%20the%20Package%20Support%20Framework.%3C%2FP%3E%0A%3CP%3E2)%20Running%20an%20exe%20that%20is%20not%20part%20of%20the%20package%20inside%20the%20package.%20These%20executables%20generally%20launch%20outside%20of%20the%20container.%26nbsp%3B%20I%20will%20be%20looking%20into%20this%20via%20the%20PSF%20soon%20as%20it%20looks%20like%20we%20might%20be%20control%20this%20using%20a%20technique%20seen%20with%20recent%20changes%20for%20scripting.%26nbsp%3B%20We%20don't%20really%20want%20to%20use%20scripting%20so%20additional%20PSF%20changes%20might%20be%20needed.%26nbsp%3B%20Even%20with%20this%2C%20it%20might%20not%20work%20for%20iexplorer%20because%20I'm%20guessing%20the%20processes%20for%20the%20tabs%20will%20also%20pop%20out%20of%20the%20bubble.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EFor%20now%20I'd%20consider%20plugins%20to%20IE%20a%20bad%20choice%20for%20MSIX%2C%20but%20stay%20tuned!%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1421586%22%20slang%3D%22en-US%22%3ERe%3A%20Way%20to%20package%20a%20shortcut%20with%20MSIX%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1421586%22%20slang%3D%22en-US%22%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F149589%22%20target%3D%22_blank%22%3E%40Tim%20Mangan%3C%2FA%3E%20%2C%20on%20point%202%20of%20calling%20an%20exe%20especially%20iexplore.exe%20for%20custom%20shortcut%20do%20we%20have%20any%20solution%20available%20now%20using%20PSF%20%3F%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1424394%22%20slang%3D%22en-US%22%3ERe%3A%20Way%20to%20package%20a%20shortcut%20with%20MSIX%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1424394%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F144842%22%20target%3D%22_blank%22%3E%40Amit%20Kumar%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EOn%20older%20OSs%2C%20having%20PsfLauncher%20start%20iexplore.exe%20outside%20of%20the%20package%20would%20run%20outside%20of%20the%20container%20and%20I%20assume%20that%20isn't%20what%20you%20want.%26nbsp%3B%20I'm%20not%20sure%20yet%20with%20the%20new%20changes%20in%2020.04%20if%20the%20behavior%20changes%20but%20guess%20that%20it%20now%20runs%20inside%20the%20container.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EIt%20might%20be%20possible%20to%20force%20it%20inside%20the%20container%20by%20copying%20the%20iexplore.exe%20file%20into%20the%20package%20and%20having%20PsfLauncher%20run%20that%20copy%26nbsp%3B%20(most%20of%20IE%20is%20in%20the%20dlls%20so%20the%20exe%20is%20quite%20small).%20I%20mention%20this%20as%20an%20interesting%20thing%20to%20test%20only.%20It%20might%20be%20considered%20a%20license%20violation%20if%20you%20were%20to%20use%20the%20resulting%20package%20on%20a%20different%20OS%20version%20--%20Microsoft%20used%20to%20be%20quite%20unhappy%20with%20folks%20doing%20things%20like%20this%20to%20get%20older%20versions%20of%20IE%20to%20run%20on%20newer%20OSs%20--%20but%20as%20long%20as%20it%20is%20the%20same%20iexplore.exe%20version%20it%20is%20possible%20that%20licensing%20might%20not%20be%20an%20issue.%26nbsp%3B%20In%20any%20case%2C%20I%20can't%20tell%20you%20what%20is%20legal%20since%20I'm%20not%20Microsoft.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1424436%22%20slang%3D%22en-US%22%3ERe%3A%20Way%20to%20package%20a%20shortcut%20with%20MSIX%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1424436%22%20slang%3D%22en-US%22%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F146612%22%20target%3D%22_blank%22%3E%40TIMOTHY%20MANGAN%3C%2FA%3E%3CBR%20%2F%3EWe%20actually%20tried%20copying%20iexplore.exe%20and%20cmd.exe%20inside%20VFS%20folder%20and%20used%20psflauncher%20.%3CBR%20%2F%3EIt%20did%20the%20trick%20for%20custom%20shortcut%20as%20well%20as%20calling%20.bat%20file%20.%20However%20we%20do%20not%20know%20if%20this%20is%20best%20practise%20.%3C%2FLINGO-BODY%3E
Microsoft

Hi,

 

Is there any way to package a shortcut?  I come from App-V 5 and to package Java as an example, I would install java and then pop an IE shortcut on the desktop which would reference the java in the “bubble”.  This doesn’t seem to be possible with MSIX. I believe we can do this by adding the shortcuts after the package has been captured and we can get add some shortcut links!

Can anyone please confirm on the same.

 

Thanks
Priyanka

5 Replies

@Priyanka_AggarwalHi,

 

The shortcut trick from APP-V to link Java with IE doesn't currently work with MSIX. Maybe in the future it will be possible when linking for MSIX packages becomes available.

 

For the moment, as far as i know, msix linking is in the backlog.

@alexmarin89 There are two distinct issues.

1) Shortcut to a file (other than an exe).  This issue may be overcome using PsfLauncher of the Package Support Framework.

2) Running an exe that is not part of the package inside the package. These executables generally launch outside of the container.  I will be looking into this via the PSF soon as it looks like we might be control this using a technique seen with recent changes for scripting.  We don't really want to use scripting so additional PSF changes might be needed.  Even with this, it might not work for iexplorer because I'm guessing the processes for the tabs will also pop out of the bubble.

 

For now I'd consider plugins to IE a bad choice for MSIX, but stay tuned!

@Tim Mangan , on point 2 of calling an exe especially iexplore.exe for custom shortcut do we have any solution available now using PSF ?

@Amit Kumar 

On older OSs, having PsfLauncher start iexplore.exe outside of the package would run outside of the container and I assume that isn't what you want.  I'm not sure yet with the new changes in 20.04 if the behavior changes but guess that it now runs inside the container.

 

It might be possible to force it inside the container by copying the iexplore.exe file into the package and having PsfLauncher run that copy  (most of IE is in the dlls so the exe is quite small). I mention this as an interesting thing to test only. It might be considered a license violation if you were to use the resulting package on a different OS version -- Microsoft used to be quite unhappy with folks doing things like this to get older versions of IE to run on newer OSs -- but as long as it is the same iexplore.exe version it is possible that licensing might not be an issue.  In any case, I can't tell you what is legal since I'm not Microsoft.

@TIMOTHY MANGAN
We actually tried copying iexplore.exe and cmd.exe inside VFS folder and used psflauncher .
It did the trick for custom shortcut as well as calling .bat file . However we do not know if this is best practise .