SOLVED
Home

Unable to launch Microsoft MSIX Package Tool if disconnected from the internet

%3CLINGO-SUB%20id%3D%22lingo-sub-696744%22%20slang%3D%22en-US%22%3EUnable%20to%20launch%20Microsoft%20MSIX%20Package%20Tool%20if%20disconnected%20from%20the%20internet%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-696744%22%20slang%3D%22en-US%22%3E%3CP%3EThere%20are%20scenarios%20where%20the%20packager%20VM%20does%20not%20have%20access%20to%20the%20internet.%26nbsp%3B%20Last%20week%20we%20discovered%20that%20this%20interferes%20with%20the%20ability%20to%20launch%20the%20Msix%20Packaging%20Tool%20app.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EOne%20of%20our%20clever%20students%20found%20a%20work-around%2C%20but%20it%20is%20a%20work-around%20that%20one%20should%20NEVER%20do.%26nbsp%3B%20The%20workaround%20was%20to%20have%20the%20logged%20in%20user%20take%20ownership%20of%20the%20WindowsPackages%20folder.%26nbsp%3B%20I%20am%20a%20bit%20baffled%20why%20that%20worked%2C%20but%20it%20is%20not%20something%20we%20should%20be%20doing.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-698195%22%20slang%3D%22en-US%22%3ERe%3A%20Unable%20to%20launch%20Microsoft%20MSIX%20Package%20Tool%20if%20disconnected%20from%20the%20internet%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-698195%22%20slang%3D%22en-US%22%3E%3CP%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%26nbsp%3BHow%20are%20you%20installing%20the%20app%3F%26nbsp%3B%20The%20symptom%20mentioned%20is%20generally%20caused%20by%20not%20installing%20a%20license%20with%20the%20app.%26nbsp%3B%20If%20you%20download%20the%20offline%20copy%20from%20the%20Microsoft%20Store%20for%20Business%20the%20free%20license%20can%20be%20acquired%20there%20as%20well.%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-698569%22%20slang%3D%22en-US%22%3ERe%3A%20Unable%20to%20launch%20Microsoft%20MSIX%20Package%20Tool%20if%20disconnected%20from%20the%20internet%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-698569%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F73899%22%20target%3D%22_blank%22%3E%40John%20Vintzel%3C%2FA%3E%26nbsp%3B%20I%20think%20this%20outlines%20the%20process%20used%3B%20you%20might%20be%20right.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E1)%20The%20MPT%20app%20was%20added%20to%20the%20WIndows%20Store%20for%20Business%2C%20and%20the%20bundle%20file%20downloaded%20with%20the%20license.%26nbsp%3B%3C%2FP%3E%0A%3CP%3E2)%20I%20had%20wanted%20to%20use%20Add-AppXProvisionedPackage%20on%20the%20image%2C%20but%20had%20problems%20getting%20that%20to%20work.%26nbsp%3B%20So%20instead%20dism%20was%20used%3A%20%26nbsp%3B%26nbsp%3B%20%3CFONT%20style%3D%22background-color%3A%20%23ffffff%3B%22%3Edism%20%2FOnline%20%2FAdd-ProvisionedAppxPackage%20%2FPackagePath%3A%22Microsoft.MsixPackagingTool_2019.402.1632.0_neutral_~_8wekyb3d8bbwe.AppxBundle%22%20%2FSkipLicense%3C%2FFONT%3E%22%20.%3C%2FP%3E%0A%3CP%3E3)%20dism%20is%20run%20again%20to%20install%20the%20MPT%20driver.%3C%2FP%3E%0A%3CP%3E4)%20The%20image%20was%20sysprepped.%3C%2FP%3E%0A%3CP%3E5)%20A%20clone%20copy%20of%20the%20image%20was%20started%20and%20the%20user%20logged%20in.%20While%20connected%20to%20the%20internet%2C%20the%20user%20launched%20the%20MPT%20to%20the%20GUI%20and%20closed%20it.%3C%2FP%3E%0A%3CP%3E6)%20The%20system%20was%20shutdown%20and%20shapshot%20taken.%3C%2FP%3E%0A%3CP%3E7)%20The%20system%20was%20booted%20from%20the%20snapshot%20without%20connection%20to%20the%20internet.%3C%2FP%3E%0A%3CP%3E8)%3C%2Fimg%3E%20The%20same%20userid%20logs%20in%20and%20attempts%20to%20launch%20the%20tool.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThe%20same%20system%20with%20internet%20attached%20works%20fine%2C%20which%20doesn't%20make%20a%20ton%20of%20sense%20since%20the%20MFA%20account%20is%20not%20used%20after%20Step%20%231%20above.%20But%20if%20the%20license%20is%20needed%20it%20is%20needed.%26nbsp%3B%20You%20can%20always%20help%20everyone%20out%20on%20the%20correct%20syntax%20for%20either%20the%20PS%20or%20DSIM%20commands!%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ETim%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-698626%22%20slang%3D%22en-US%22%3ERe%3A%20Unable%20to%20launch%20Microsoft%20MSIX%20Package%20Tool%20if%20disconnected%20from%20the%20internet%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-698626%22%20slang%3D%22en-US%22%3E%3CP%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%26nbsp%3BSounds%20like%20it%20is%20a%20license%20issue.%26nbsp%3B%20Since%20it%20is%20a%20free%20app%20we%20get%20a%20license%20without%20any%20Microsoft%20account%20required%2C%20which%20is%20why%20it%20worked%20with%20internet%20connectivity.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EWe%20can%20add%20some%20more%20text%20to%20the%20docs%20to%20help%20mitigate%20and%20clarify%20this%20issue.%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-700288%22%20slang%3D%22en-US%22%3ERe%3A%20Unable%20to%20launch%20Microsoft%20MSIX%20Package%20Tool%20if%20disconnected%20from%20the%20internet%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-700288%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F73899%22%20target%3D%22_blank%22%3E%40John%20Vintzel%3C%2FA%3E%20Yeah%2C%20we%20could%20use%20that.%20I'm%20finding%20I%20need%20to%20piece%20together%20bits%20and%20pieces%20that%20don't%20quite%20line%20up.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThis%20article%3A%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fwww.scconfigmgr.com%2F2016%2F04%2F05%2Fdeploy-offline-licensed-universal-apps-offline-from-windows-store-for-business-with-configmgr%2F%22%20target%3D%22_self%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%22%3E%3CFONT%20style%3D%22background-color%3A%20%23ffffff%3B%22%3Ehttps%3A%2F%2Fwww.scconfigmgr.com%2F2016%2F04%2F05%2Fdeploy-offline-licensed-universal-apps-offline-from-windows-store-for-business-with-configmgr%2F%3C%2FFONT%3E%3C%2FA%3E%20shows%20how%20to%20get%20the%20license%20file%2C%20but%20the%20filetype%20it%20shows%20for%20ConfigMan%20use%20is%20%22.bin%22.%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EMeanwhile%2C%20this%20article%3A%26nbsp%3B%3CA%20title%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fpowershell%2Fmodule%2Fdism%2Fadd-appxprovisionedpackage%3Fview%3Dwin10-ps%22%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fpowershell%2Fmodule%2Fdism%2Fadd-appxprovisionedpackage%3Fview%3Dwin10-ps%22%20target%3D%22_self%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%22%3E%3CFONT%20style%3D%22background-color%3A%20%23ffffff%3B%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fpowershell%2Fmodule%2Fdism%2Fadd-appxprovisionedpackage%3Fview%3Dwin10-ps%3C%2FFONT%3E%3C%2FA%3E%20shows%20that%20the%20value%20for%20LicensePath%20is%20an%20XML%20file.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EIt%20looks%20to%20me%20the%20the%20unencoded%20form%20of%20the%20license%20file%20is%20xml.%26nbsp%3B%20And%20attempts%20to%20use%20the%20bin%20file%20on%20the%20dism%20command%20with%20%2FLicensePath%20fails%20with%20error%3A%3C%2FP%3E%0A%3CDIV%3E%3CSTRONG%3E%3CFONT%20style%3D%22background-color%3A%20%23ffffff%3B%22%3EError%3A%200x803d0000%3C%2FFONT%3E%3C%2FSTRONG%3E%3C%2FDIV%3E%0A%3CDIV%3E%3CSTRONG%3E%3CFONT%20style%3D%22background-color%3A%20%23ffffff%3B%22%3EThe%20input%20data%20was%20not%20in%20the%20expected%20format%20or%20did%20not%20have%20the%20expected%20value.%3C%2FFONT%3E%3C%2FSTRONG%3E%3C%2FDIV%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EUsing%20the%20xml%20file%20instead%20does%20succeed.%20I'm%20ok%20using%20the%20xml%20file%20as%20this%20is%20part%20of%20image%20processing%20so%20I'm%20not%20woried%20about%20possible%20snooping%20eyes.%26nbsp%3B%20But%20a%20single%20document%20covering%20how%20to%20deploy%20the%20tool%2C%20including%20the%20offline%20license%20scenario%2C%26nbsp%3B%20would%20be%20great%20for%20customers..%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E
Highlighted
TIMOTHY MANGAN
MVP

There are scenarios where the packager VM does not have access to the internet.  Last week we discovered that this interferes with the ability to launch the Msix Packaging Tool app.

 

One of our clever students found a work-around, but it is a work-around that one should NEVER do.  The workaround was to have the logged in user take ownership of the WindowsPackages folder.  I am a bit baffled why that worked, but it is not something we should be doing.

4 Replies
Solution

@TIMOTHY MANGAN How are you installing the app?  The symptom mentioned is generally caused by not installing a license with the app.  If you download the offline copy from the Microsoft Store for Business the free license can be acquired there as well.

 

John.

@John Vintzel  I think this outlines the process used; you might be right.

 

1) The MPT app was added to the WIndows Store for Business, and the bundle file downloaded with the license. 

2) I had wanted to use Add-AppXProvisionedPackage on the image, but had problems getting that to work.  So instead dism was used:    dism /Online /Add-ProvisionedAppxPackage /PackagePath:"Microsoft.MsixPackagingTool_2019.402.1632.0_neutral_~_8wekyb3d8bbwe.AppxBundle" /SkipLicense" .

3) dism is run again to install the MPT driver.

4) The image was sysprepped.

5) A clone copy of the image was started and the user logged in. While connected to the internet, the user launched the MPT to the GUI and closed it.

6) The system was shutdown and shapshot taken.

7) The system was booted from the snapshot without connection to the internet.

8) The same userid logs in and attempts to launch the tool.

 

The same system with internet attached works fine, which doesn't make a ton of sense since the MFA account is not used after Step #1 above. But if the license is needed it is needed.  You can always help everyone out on the correct syntax for either the PS or DSIM commands!

 

 

Tim

@TIMOTHY MANGAN Sounds like it is a license issue.  Since it is a free app we get a license without any Microsoft account required, which is why it worked with internet connectivity.

 

We can add some more text to the docs to help mitigate and clarify this issue.

 

John.

@John Vintzel Yeah, we could use that. I'm finding I need to piece together bits and pieces that don't quite line up.

 

This article: https://www.scconfigmgr.com/2016/04/05/deploy-offline-licensed-universal-apps-offline-from-windows-s... shows how to get the license file, but the filetype it shows for ConfigMan use is ".bin". 

 

Meanwhile, this article: https://docs.microsoft.com/en-us/powershell/module/dism/add-appxprovisionedpackage?view=win10-ps shows that the value for LicensePath is an XML file.

 

It looks to me the the unencoded form of the license file is xml.  And attempts to use the bin file on the dism command with /LicensePath fails with error:

Error: 0x803d0000
The input data was not in the expected format or did not have the expected value.

 

Using the xml file instead does succeed. I'm ok using the xml file as this is part of image processing so I'm not woried about possible snooping eyes.  But a single document covering how to deploy the tool, including the offline license scenario,  would be great for customers..

 

Related Conversations
Tabs and Dark Mode
cjc2112 in Discussions on
38 Replies
Extentions Synchronization
Deleted in Discussions on
3 Replies
Stable version of Edge insider browser
HotCakeX in Discussions on
35 Replies
flashing a white screen while open new tab
Deleted in Discussions on
14 Replies
How to Prevent Teams from Auto-Launch
chenrylee in Microsoft Teams on
29 Replies
Security Community Webinars
Valon_Kolica in Security, Privacy & Compliance on
12 Replies