SOLVED

MsixPackageTool.exe Access Denied

%3CLINGO-SUB%20id%3D%22lingo-sub-276264%22%20slang%3D%22en-US%22%3EMsixPackageTool.exe%20Access%20Denied%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-276264%22%20slang%3D%22en-US%22%3E%3CP%3EHi%2C%3C%2FP%3E%3CP%3EI%20am%20trying%20to%20run%26nbsp%3BMsixPackageTool.exe%20in%20administrative%20command%20line%20to%20create%20MSIX%20package.%20But%20I%20am%20getting%20Access%20Denied.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAnyone%20know%20why%20getting%20Access%20Denied%20when%20trying%20to%20use%26nbsp%3B%26nbsp%3B%3CSPAN%3EMsixPackageTool.exe%20in%20command%20line%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-277278%22%20slang%3D%22en-US%22%3ERe%3A%20RE%3A%20MsixPackageTool.exe%20Access%20Denied%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-277278%22%20slang%3D%22en-US%22%3E%3CP%3EHere%20you%20go%2C%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fwindows%2Fmsix%2Fpackaging-tool%2Fpackage-conversion-cli%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fwindows%2Fmsix%2Fpackaging-tool%2Fpackage-conversion-cli%3C%2FA%3E.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20am%20attaching%20the%20screenshot%20which%20show%20how%20it%20works%2C%20however%20it%20gives%20error%20because%20I%20did%20not%20provide%20a%20valid%20xml%20file.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-277234%22%20slang%3D%22en-US%22%3ERe%3A%20RE%3A%20MsixPackageTool.exe%20Access%20Denied%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-277234%22%20slang%3D%22en-US%22%3E%3CP%3EHere%20you%20go%2C%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fwindows%2Fmsix%2Fpackaging-tool%2Fpackage-conversion-cli%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fwindows%2Fmsix%2Fpackaging-tool%2Fpackage-conversion-cli%3C%2FA%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-276730%22%20slang%3D%22en-US%22%3ERE%3A%20MsixPackageTool.exe%20Access%20Denied%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-276730%22%20slang%3D%22en-US%22%3EThank%20you%20Manish%2C%20Do%20you%20know%20how%20can%20I%20use%20it%20in%20command%20line%3F%20Need%20to%20install%20to%20other%20location%20or%20something%3F%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-276267%22%20slang%3D%22en-US%22%3ERe%3A%20MsixPackageTool.exe%20Access%20Denied%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-276267%22%20slang%3D%22en-US%22%3E%3CP%3EThis%20is%20protected%20windowsapps%20directory%20and%20users%2Fadmins%20does%20not%20have%20access%20to%20this%2C%26nbsp%3Byou%20need%20to%20launch%20the%20shortcut%20from%20startmenu%20to%20run%20the%20application.%3C%2FP%3E%3C%2FLINGO-BODY%3E
Highlighted
Occasional Contributor

Hi,

I am trying to run MsixPackageTool.exe in administrative command line to create MSIX package. But I am getting Access Denied. 

 

Anyone know why getting Access Denied when trying to use  MsixPackageTool.exe in command line

4 Replies
Highlighted

This is protected windowsapps directory and users/admins does not have access to this, you need to launch the shortcut from startmenu to run the application.

Highlighted
Thank you Manish, Do you know how can I use it in command line? Need to install to other location or something?
Highlighted
Highlighted
Best Response confirmed by John Vintzel (Microsoft)
Solution

Here you go, https://docs.microsoft.com/en-us/windows/msix/packaging-tool/package-conversion-cli.

 

I am attaching the screenshot which show how it works, however it gives error because I did not provide a valid xml file.