Can I execute msixpackagingtool.exe remotely?

%3CLINGO-SUB%20id%3D%22lingo-sub-1287481%22%20slang%3D%22en-US%22%3ECan%20I%20execute%20msixpackagingtool.exe%20remotely%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1287481%22%20slang%3D%22en-US%22%3E%3CP%3E%3CSPAN%3EI%20am%20running%20below%20code%20in%20powershell%20as%20administrator%20to%20package%20msi%20to%20msix%20using%20msixpackagingtool.exe%20using%20powershell.%26nbsp%3B%26nbsp%3B%3C%2FSPAN%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%26nbsp%3B%20%26nbsp%3B%3CSPAN%3EInvoke-Command%20-ComputerName%20remotecomputerip%20-ScriptBlock%20%7B%20MsixPackagingTool.exe%20create-package%20--template%20C%3A%5Ctortoisesvn.xml%20%7D%3C%2FSPAN%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3CSPAN%3EBut%20I%20am%20getting%20this%20error%3A%3C%2FSPAN%3E%3CBR%20%2F%3E%3CSPAN%3EProgram%20'MsixPackagingTool.exe'%20failed%20to%20run%3A%20The%20file%20cannot%20be%20accessed%20by%20the%20system.%3C%2FSPAN%3E%3CBR%20%2F%3E%26nbsp%3B%20%26nbsp%3B%20%3CSPAN%3E%2B%20CategoryInfo%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%3A%20ResourceUnavailable%3A%20(%3A)%20%5B%5D%2C%20ApplicationFailedException%3C%2FSPAN%3E%3CBR%20%2F%3E%3CSPAN%3E%26nbsp%3B%20%26nbsp%3B%20%2B%20FullyQualifiedErrorId%20%3A%20NativeCommandFailed%3C%2FSPAN%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3CSPAN%3EPlease%20help.%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1322362%22%20slang%3D%22en-US%22%3ERe%3A%20Can%20I%20execute%20msixpackagingtool.exe%20remotely%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1322362%22%20slang%3D%22en-US%22%3E%3CP%3Ehi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F612148%22%20target%3D%22_blank%22%3E%40anujaggarwal67%3C%2FA%3E%26nbsp%3B%2C%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EWe%20generally%20recommend%20if%20you%20want%20to%20convert%20on%20a%20remote%20machine%2C%20you%20first%20start%20on%20your%20local%20machine%2C%20and%20then%20connect%20to%20your%20remote%20machine%20to%20perform%20the%20conversion.%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EHere%20is%20more%20information%20on%20performing%20a%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fwindows%2Fmsix%2Fpackaging-tool%2Fcreate-app-package%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Econversion%20through%20the%20tool%20UI%3C%2FA%3E%20on%20your%20local%20machine%20(you%20can%20select%20to%20perform%20the%20conversion%20on%20a%20remote%20machine)%20and%20here%20is%20how%20you%20can%20do%20it%20though%20our%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fwindows%2Fmsix%2Fpackaging-tool%2Fpackage-conversion-command-line%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3ECommand%20Line%3C%2FA%3E%20option.%20Just%20be%20sure%20to%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fwindows%2Fmsix%2Fpackaging-tool%2Fremote-conversion-setup%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Econfigure%20your%20remote%20machine%3C%2FA%3E%20before%20starting%20a%20conversion.%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EBest%2C%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ESharla%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E
Occasional Visitor

I am running below code in powershell as administrator to package msi to msix using msixpackagingtool.exe using powershell.  


   Invoke-Command -ComputerName remotecomputerip -ScriptBlock { MsixPackagingTool.exe create-package --template C:\tortoisesvn.xml }


But I am getting this error:
Program 'MsixPackagingTool.exe' failed to run: The file cannot be accessed by the system.
    + CategoryInfo          : ResourceUnavailable: (:) [], ApplicationFailedException
    + FullyQualifiedErrorId : NativeCommandFailed

Please help.

1 Reply

hi @anujaggarwal67 , 

 

We generally recommend if you want to convert on a remote machine, you first start on your local machine, and then connect to your remote machine to perform the conversion. 

 

Here is more information on performing a conversion through the tool UI on your local machine (you can select to perform the conversion on a remote machine) and here is how you can do it though our Command Line option. Just be sure to configure your remote machine before starting a conversion. 

 

Best,

 

Sharla