Modification package and new shortcuts

%3CLINGO-SUB%20id%3D%22lingo-sub-289408%22%20slang%3D%22en-US%22%3EModification%20package%20and%20new%20shortcuts%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-289408%22%20slang%3D%22en-US%22%3E%3CP%3EI%20would%20like%20to%20be%20able%20to%20have%20a%20package%2C%20and%20then%20create%20a%20modification%20package%20that%20adds%20in%20the%20ability%20to%20add%20a%20trace.%26nbsp%3B%20To%20do%20this%20involves%20adding%20the%20PsfLauncher%2C%20required%20dlls%20including%20the%20tracefixup%2C%20config.json%20file%2C%20and%20a%20new%20shortcut%20to%20point%20to%20PsfLauncher.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EWhen%20I%20attempt%20this%2C%20the%20modification%20package%20has%20the%20new%20lnk%20file%20in%20the%20assets%2C%20but%20the%20shortcut%20does%20not%20appear%20in%20the%20manifest%20and%20therefore%20isn't%20deployed.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EWe'll%20need%20shortcuts%20for%20modification%20packages.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-292186%22%20slang%3D%22en-US%22%3ERe%3A%20Modification%20package%20and%20new%20shortcuts%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-292186%22%20slang%3D%22en-US%22%3E%3CP%3ENo%2C%20I%20didn't%20find%20that%20one%20as%20the%20naming%20is%20rather%20inconsistent%20with%20other%20existing%20cmdlets%20that%20use%20the%20start%20verb.%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThanks%20-%20I'll%20put%20it%20on%20my%20list%20of%20things%20to%20look%20into.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CBLOCKQUOTE%3E%3CHR%20%2F%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F147865%22%20target%3D%22_blank%22%3E%40Bogdan%20Mitrache%3C%2FA%3E%26nbsp%3Bwrote%3A%3CBR%20%2F%3E%3CP%3EHi%20Tim%2C%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EHave%20you%20tried%26nbsp%3B%3CSTRONG%3EInvoke-CommandInDesktopPackage%20%3C%2FSTRONG%3Ecmdlet%3F%20It%20worked%20for%20me%20some%20months%20ago%20on%20a%20few%20appx%20packages%2C%20but%20haven't%20tried%20on%20the%201809%20update%20(%3CEM%3Eit%20crashed%20on%20my%20insider%20builds%20back%20in%20August%20%3A(%3C%2Fimg%3E%3C%2FEM%3E).%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fpowershell%2Fmodule%2Fappx%2Finvoke-commandindesktoppackage%3Fview%3Dwin10-ps%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fpowershell%2Fmodule%2Fappx%2Finvoke-commandindesktoppackage%3Fview%3Dwin10-ps%3C%2FA%3E%3C%2FP%3E%0A%3CHR%20%2F%3E%3C%2FBLOCKQUOTE%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-292109%22%20slang%3D%22en-US%22%3ERe%3A%20Modification%20package%20and%20new%20shortcuts%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-292109%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20Tim%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHave%20you%20tried%26nbsp%3B%3CSTRONG%3EInvoke-CommandInDesktopPackage%20%3C%2FSTRONG%3Ecmdlet%3F%20It%20works%20for%20me%20with%20appx%20and%20msix%20packages%20(%3CEM%3Eit%20crashed%20on%20my%20insider%20builds%20back%20in%20August%2C%20but%20now%20(December%202018)%20all%20seems%20good%3C%2FEM%3E).%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fpowershell%2Fmodule%2Fappx%2Finvoke-commandindesktoppackage%3Fview%3Dwin10-ps%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fpowershell%2Fmodule%2Fappx%2Finvoke-commandindesktoppackage%3Fview%3Dwin10-ps%3C%2FA%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CEM%3EP.S.%26nbsp%3BWe%20have%20an%20update%20in%20progress%20for%20this%20%3CA%20href%3D%22https%3A%2F%2Fwww.advancedinstaller.com%2Fappv-context-launcher.html%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Efree%20tool%3C%2FA%3E%2C%20to%20also%20support%20msix%2Fappx%20packages%20on%20top%20of%20its%20current%20support%20for%20app-v.%20It%20should%20help%20out%20a%20little%20bit%20more%20with%20debugging.%20(If%20you%20have%20any%20tips%2Fimprovements%20to%20recommend%20leave%20me%20a%20PM)%3C%2FEM%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-289484%22%20slang%3D%22en-US%22%3ERe%3A%20Modification%20package%20and%20new%20shortcuts%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-289484%22%20slang%3D%22en-US%22%3E%3CP%3ESounds%20like%20a%20couple%20things%20for%20the%20Ideas%20section.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EJohn.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-289411%22%20slang%3D%22en-US%22%3ERe%3A%20Modification%20package%20and%20new%20shortcuts%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-289411%22%20slang%3D%22en-US%22%3E%3CP%3EBy%20the%20way%2C%20while%20we%20probably%20need%20shortcuts%20in%20the%20modification%20packages%20for%20other%20reasons%2C%20my%20goal%20for%20debugging%20in%20this%20case%20could%20be%20solved%20via%20a%20different%20new%20feature...%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThe%20equivalent%20of%20a%20Start-AppVVirtualProcess%20powershell%20cmdlet%20for%20MSIX%20would%20be%20awesome.%3C%2FP%3E%3C%2FLINGO-BODY%3E
MVP

I would like to be able to have a package, and then create a modification package that adds in the ability to add a trace.  To do this involves adding the PsfLauncher, required dlls including the tracefixup, config.json file, and a new shortcut to point to PsfLauncher.

 

When I attempt this, the modification package has the new lnk file in the assets, but the shortcut does not appear in the manifest and therefore isn't deployed.

 

We'll need shortcuts for modification packages.

4 Replies

By the way, while we probably need shortcuts in the modification packages for other reasons, my goal for debugging in this case could be solved via a different new feature...

 

The equivalent of a Start-AppVVirtualProcess powershell cmdlet for MSIX would be awesome.

Sounds like a couple things for the Ideas section.

 

John.

Hi Tim,

 

Have you tried Invoke-CommandInDesktopPackage cmdlet? It works for me with appx and msix packages (it crashed on my insider builds back in August, but now (December 2018) all seems good).

 

https://docs.microsoft.com/en-us/powershell/module/appx/invoke-commandindesktoppackage?view=win10-ps

 

P.S. We have an update in progress for this free tool, to also support msix/appx packages on top of its current support for app-v. It should help out a little bit more with debugging. (If you have any tips/improvements to recommend leave me a PM)

No, I didn't find that one as the naming is rather inconsistent with other existing cmdlets that use the start verb. 

Thanks - I'll put it on my list of things to look into.

 


@Bogdan Mitrache wrote:

Hi Tim,

 

Have you tried Invoke-CommandInDesktopPackage cmdlet? It worked for me some months ago on a few appx packages, but haven't tried on the 1809 update (it crashed on my insider builds back in August :().

 

https://docs.microsoft.com/en-us/powershell/module/appx/invoke-commandindesktoppackage?view=win10-ps