MSIX MRT Resource installation

%3CLINGO-SUB%20id%3D%22lingo-sub-2115433%22%20slang%3D%22en-US%22%3EMSIX%20MRT%20Resource%20installation%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2115433%22%20slang%3D%22en-US%22%3E%3CP%3EHi%2C%26nbsp%3B%3C%2FP%3E%3CP%3EMSIX%20uses%20MRT%20(Modern%20Resource%20Technology)%20to%20split%20up%20the%20application%20bundle%20into%20more%20device%20specific%20msix%20packages%2C%20all%20inside%20one%20msixbundle%2C%20if%20I%20understand%20it%20correctly.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ECan%20someone%20explain%20how%20this%20works%3F%20So%20this%20morning%20I%20set%20my%20dpi%20scaling%20from%20150%25%20to%20125%25%2C%20after%20that%20I%20notice%20that%20the%20Microsoft%20Store%20had%2040%2B%20updates%20for%20apps.%20Is%20MRT%20what%20is%20happening%3F%20Is%20the%20system%20loading%20new%20packages%20for%20the%20less%20dpi%20case%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ESo%20it%20seemed%20like%20even%20though%20the%20store%20is%20set%20to%20%22Update%20apps%20automatically%22%20it%20only%20installed%20after%20I%20had%20checked%20manually%20(and%20incidentally%20had%20switched%20my%20DPIs%20back%20to%20150%25).%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIs%20this%20system%20in%20place%20for%20MSIX%20sideloading%3F%20My%20understanding%20is%2Fwas%20that%20AppInstaller%20will%20do%20ranged-HTTP%20requests%20to%20only%20download%20and%20install%20packages%20from%20the%20bundle%20that%20are%20actually%20needed%3F%20Will%20AppInstaller%20update%20this%20selection%20dynamically%2C%20in%20case%20of%20dpi%20change%2C%20or%20language%20switch%3F%20Can%20the%20user%20or%20developer%20influence%20this%20system%3F%20(i.e.%20can%20I%20always%20install%20both%20German%20and%20English%20for%20my%20app%20when%20sideloaded%3F)%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EReally%20interested%20in%20this%20since%20I%20found%3A%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fwindows%2Fuwp%2Fapp-resources%2Fusing-mrt-for-converted-desktop-apps-and-games%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fwindows%2Fuwp%2Fapp-resources%2Fusing-mrt-for-converted-desktop-apps-and-games%3C%2FA%3E%3C%2FP%3E%3CP%3ESeems%20like%20such%20a%20good%20idea%20that%20I%20am%20pretty%20surprised%20that%20so%20little%20information%20is%20out%20there.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThe%20goal%20for%20me%20is%20definitely%20to%20put%20more%20of%20our%20WPF%20assets%20in%20these%20MRT%20resource%20packages.%20But%20if%20I%20understand%20it%20correctly%20I%20will%20have%20to%20wait%20until%20MRT-Core%20in%20Reunion%20is%20ready%20to%20really%20get%20this%20done.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%20for%20any%20pointers%20already%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EKind%20regards%2C%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EMarvin%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2122405%22%20slang%3D%22en-US%22%3ERe%3A%20MSIX%20MRT%20Resource%20installation%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2122405%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%2F548680%22%20target%3D%22_blank%22%3E%40marvin_r%3C%2FA%3E%2C%20MRT%20is%20an%20underlying%20technology%20that%20allows%20app%20developers%20to%20more%20easily%20localize%20their%20content%20and%20split%20out%20resources%20upon%20the%20supported%20dimensions%20(language%2C%20scale%20aka%20dpi%2C%20directx%20level).%20There%E2%80%99s%20more%20to%20it%20in%20the%20APIs%20the%20app%20can%20call%20to%20resolve%20various%20strings%20and%2For%20assets%20into%20the%20appropriate%20one%20for%20the%20user%E2%80%99s%20chosen%20language%2Fscale%2Fdxfl.%26nbsp%3BAll%20the%20resource%20packages%20are%20grouped%20together%20in%20the%20.appxbundle%2C%20but%20when%20we%20go%20to%20download%20the%20.appxbundle%2C%20we%20can%20determine%20which%20of%20the%20resource%20packages%20we%20need%20to%20download%20based%20on%20the%20user%20settings.%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EUser%20influences%20the%20settings%20by%20changing%20the%20applicability%20context%20(i.e.%20select%20language%2C%20or%20change%20DPI)%3C%2FP%3E%0A%3CP%3EDeveloper%20cannot%20influence%20the%20settings%20using%20appinstaller%20file%20(we%20don%E2%80%99t%20have%20that%20support%20to%20say%20always%20make%20x%20language%20applicable)%2C%20but%20the%20app%20itself%20when%20grouping%20the%20resource%20packages%20has%20the%20ability%20to%20say%20main%20package%20has%20x%2By%20language%20resources%20instead%20of%20splitting%20those%20resources%20into%20resource%20packs.%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EI%20recommend%20looking%20at%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fnam06.safelinks.protection.outlook.com%2F%3Furl%3Dhttps%253A%252F%252Fdocs.microsoft.com%252Fen-us%252Fwindows%252Fuwp%252Fapp-resources%252Fbuild-resources-into-app-package%26amp%3Bdata%3D04%257C01%257Cdiahar%2540microsoft.com%257C4d3c37b48b96481b78a008d8ce186354%257C72f988bf86f141af91ab2d7cd011db47%257C1%257C0%257C637485951440261916%257CUnknown%257CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%253D%257C1000%26amp%3Bsdata%3DEJVFxI3YuEk6u38MsL2ebrFrTS9JUlpiYn6CHhK49VE%253D%26amp%3Breserved%3D0%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fwindows%2Fuwp%2Fapp-resources%2Fbuild-resources-into-app-package%3C%2FA%3E%26nbsp%3Bto%20see%20how%20to%20re-arrange%20some%20resources%20into%20the%20app%20package.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E
Occasional Contributor

Hi, 

MSIX uses MRT (Modern Resource Technology) to split up the application bundle into more device specific msix packages, all inside one msixbundle, if I understand it correctly. 

 

Can someone explain how this works? So this morning I set my dpi scaling from 150% to 125%, after that I notice that the Microsoft Store had 40+ updates for apps. Is MRT what is happening? Is the system loading new packages for the less dpi case?

 

So it seemed like even though the store is set to "Update apps automatically" it only installed after I had checked manually (and incidentally had switched my DPIs back to 150%).

 

Is this system in place for MSIX sideloading? My understanding is/was that AppInstaller will do ranged-HTTP requests to only download and install packages from the bundle that are actually needed? Will AppInstaller update this selection dynamically, in case of dpi change, or language switch? Can the user or developer influence this system? (i.e. can I always install both German and English for my app when sideloaded?)

 

Really interested in this since I found: https://docs.microsoft.com/en-us/windows/uwp/app-resources/using-mrt-for-converted-desktop-apps-and-...

Seems like such a good idea that I am pretty surprised that so little information is out there. 

 

The goal for me is definitely to put more of our WPF assets in these MRT resource packages. But if I understand it correctly I will have to wait until MRT-Core in Reunion is ready to really get this done.

 

Thanks for any pointers already 

 

Kind regards, 

 

Marvin

 

1 Reply

Hi @marvin_r, MRT is an underlying technology that allows app developers to more easily localize their content and split out resources upon the supported dimensions (language, scale aka dpi, directx level). There’s more to it in the APIs the app can call to resolve various strings and/or assets into the appropriate one for the user’s chosen language/scale/dxfl. All the resource packages are grouped together in the .appxbundle, but when we go to download the .appxbundle, we can determine which of the resource packages we need to download based on the user settings. 

 

User influences the settings by changing the applicability context (i.e. select language, or change DPI)

Developer cannot influence the settings using appinstaller file (we don’t have that support to say always make x language applicable), but the app itself when grouping the resource packages has the ability to say main package has x+y language resources instead of splitting those resources into resource packs. 

 

I recommend looking at 

https://docs.microsoft.com/en-us/windows/uwp/app-resources/build-resources-into-app-package to see how to re-arrange some resources into the app package.