SOLVED

MSIX -> Local Activation permission for COM

%3CLINGO-SUB%20id%3D%22lingo-sub-1522056%22%20slang%3D%22en-US%22%3EMSIX%20-%26gt%3B%20Local%20Activation%20permission%20for%20COM%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1522056%22%20slang%3D%22en-US%22%3E%3CDIV%3E%3CP%3EHi%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EMy%20package%20is%20installed%20in%20sideloaded%20way%20and%20keeps%20encountering%20the%20app-specific%20permission%20error.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EYes%20many%20suggest%20to%20alter%20permissions%20and%20owners%20manully%20in%20regedit%20and%20Component%20Services.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSTRONG%3EMy%20app%20is%20actually%20missing%20in%20the%26nbsp%3BDCOM%20Config%20under%20the%20Component%20Services%20(DCOMCNFG%2C%26nbsp%3BDCOMCNFG%20-32).%26nbsp%3B%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%20class%3D%22%22%3EI%20see%20neither%20errors%20in%20the%20proc%20monitor%20nor%20warnings.%20How%20can%20I%20grant%20permissions%20in%20this%20case%20and%20why%20isn't%20this%20specific%20task%20accomplished%20by%20the%20MSIX%20installer%20%3F%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FDIV%3E%3CPRE%20class%3D%22lia-code-sample%20language-applescript%22%3E%3CCODE%3EThe%20application-specific%20permission%20settings%20do%20not%20grant%20Local%20Activation%20permission%20for%20the%20COM%20Server%20application%20with%20CLSID%26nbsp%3B%0A%0A%7B2593F8B9-4EAF-457C-B68A-50F6B8EA6B54%7D%0A%0A%26nbsp%3Band%20APPID%26nbsp%3B%0A%0A%7B15C20B67-12E7-4BB6-92BB-7AFF07997402%7D%0A%0A%26nbsp%3Bto%20the%20user%20PRECISION%5CTommy%20SID%20(S-1-5-21-3771326467-2290839719-591499861-1001)%20from%20address%20LocalHost%20(Using%20LRPC)%20running%20in%20the%20application%20container%20Unavailable%20SID%20(Unavailable).%20This%20security%20permission%20can%20be%20modified%20using%20the%20Component%20Services%20administrative%20tool.%3C%2FCODE%3E%3C%2FPRE%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1523715%22%20slang%3D%22en-US%22%3ERe%3A%20MSIX%20-%26gt%3B%20Local%20Activation%20permission%20for%20COM%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1523715%22%20slang%3D%22en-US%22%3E%3CP%3EHas%20any1%20succeeded%20granting%20permission%20with%20this%20PS%20module%20%3F%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fgallery.technet.microsoft.com%2FGrant-Revoke-Get-DCOM-22da5b96%3Fredir%3D0%22%20target%3D%22_self%22%20rel%3D%22noopener%20noreferrer%22%3EGrant%2C%20Revoke%2C%20Get%20DCOM%20permissions%20using%20PowerShell%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CPRE%20class%3D%22lia-code-sample%20language-applescript%22%3E%3CCODE%3EImport-Module%20.%5CDCOMPermissions%0A%0AGrant-DCOMPermission%20-ApplicationID%20%22%7B9CA88EE3-ACB7-47C8-AFC4-AB702511C276%7D%22%20-Account%20%22SYSTEM%22%20-Type%20Launch%20-Permissions%20LocalLaunch%2CLocalActivation%20-OverrideConfigurationPermissions%3C%2FCODE%3E%3C%2FPRE%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWhy%20does%20a%20WPF%20application%20requires%20DCOM%20in%202020%20%3F%3F%20That%20is%20insane%20!%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1524526%22%20slang%3D%22en-US%22%3ERe%3A%20MSIX%20-%26gt%3B%20Local%20Activation%20permission%20for%20COM%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1524526%22%20slang%3D%22en-US%22%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Sigmarsson_0-1594839714435.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F205542iBD73F92618109A1E%2Fimage-size%2Fmedium%3Fv%3D1.0%26amp%3Bpx%3D400%22%20title%3D%22Sigmarsson_0-1594839714435.png%22%20alt%3D%22Sigmarsson_0-1594839714435.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1527559%22%20slang%3D%22en-US%22%3ERe%3A%20MSIX%20-%26gt%3B%20Local%20Activation%20permission%20for%20COM%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1527559%22%20slang%3D%22en-US%22%3E%3CP%3EThough%20a%20direct%20exe%20launch%20from%20the%20directory%20is%20flawless.%20It%20must%20relate%20to%20how%20a%20store%20app%20is%20launched.%20Is%20any1%20here%20exceling%20MSIX%2FAPPX%20deployment%20duties%20%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1528974%22%20slang%3D%22en-US%22%3ERe%3A%20MSIX%20-%26gt%3B%20Local%20Activation%20permission%20for%20COM%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1528974%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F682219%22%20target%3D%22_blank%22%3E%40Sigmarsson%3C%2FA%3E%26nbsp%3BYou%20might%20need%20to%20go%20back%20to%20square%20one%20and%20describe%20how%20the%20package%20was%20created.%26nbsp%3B%20Most%20likely%2C%20the%20issue%20starts%20there.%26nbsp%3B%20Although%20it%20is%20entirely%20possible%20that%20you%20need%20the%20tooling%20to%20add%20support%20for%20your%20scenario%2C%20I%20don't%20think%20we'll%20figure%20it%20out%20from%20the%20deployment%20side.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1529183%22%20slang%3D%22en-US%22%3ERe%3A%20MSIX%20-%26gt%3B%20Local%20Activation%20permission%20for%20COM%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1529183%22%20slang%3D%22en-US%22%3EThanks%20Timothy%20for%20engaging.%3CBR%20%2F%3E%3CBR%20%2F%3EI%20strived%20to%20compose%20a%20minimalist%20AppxManifest.xml%20before%20package%20compilation%2C%20which%20I%20wish%20to%20share%20with%20you%20for%20a%20quick%20review.%3CBR%20%2F%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3CPACKAGE%20xsi%3D%22%26quot%3B%26lt%3BA%22%20href%3D%22http%3A%2F%2Fwww.w3.org%2F2001%2FXMLSchema-instance%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3E%3CA%20href%3D%22http%3A%2F%2Fwww.w3.org%2F2001%2FXMLSchema-instance%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Ehttp%3A%2F%2Fwww.w3.org%2F2001%2FXMLSchema-instance%3C%2FA%3E%22%20xmlns%3Axsd%3D%22%3CA%20href%3D%22http%3A%2F%2Fwww.w3.org%2F2001%2FXMLSchema%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Ehttp%3A%2F%2Fwww.w3.org%2F2001%2FXMLSchema%3C%2FA%3E%22%20xmlns%3D%22%3CA%20href%3D%22http%3A%2F%2Fschemas.microsoft.com%2Fappx%2Fmanifest%2Ffoundation%2Fwindows10%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttp%3A%2F%2Fschemas.microsoft.com%2Fappx%2Fmanifest%2Ffoundation%2Fwindows10%3C%2FA%3E%22%26gt%3B%3CBR%20%2F%3E%3CIDENTITY%20name%3D%22%26quot%3BWeatherHistory%26quot%3B%22%20version%3D%22%26quot%3B0.7.0.1%26quot%3B%22%20publisher%3D%22%26quot%3BCN%3DContoso%22%20software%3D%22%22%3E%3C%2FIDENTITY%3E%3CBR%20%2F%3E%3CPROPERTIES%3E%3CBR%20%2F%3E%3CDISPLAYNAME%3EWeather%20History%3C%2FDISPLAYNAME%3E%3CBR%20%2F%3E%3CPUBLISHERDISPLAYNAME%3ETommy%3C%2FPUBLISHERDISPLAYNAME%3E%3CBR%20%2F%3E%3CLOGO%3EImages%2Fsatelite.png%3C%2FLOGO%3E%3CBR%20%2F%3E%3C%2FPROPERTIES%3E%3CBR%20%2F%3E%3CDEPENDENCIES%3E%3CBR%20%2F%3E%3CTARGETDEVICEFAMILY%20name%3D%22%26quot%3BWindows.Universal%26quot%3B%22%20minversion%3D%22%26quot%3B10.0.17763.0%26quot%3B%22%20maxversiontested%3D%22%26quot%3B10.0.18363.0%26quot%3B%2F%22%3E%3CBR%20%2F%3E%3CTARGETDEVICEFAMILY%20name%3D%22%26quot%3BWindows.Desktop%26quot%3B%22%20minversion%3D%22%26quot%3B10.0.17763.0%26quot%3B%22%20maxversiontested%3D%22%26quot%3B10.0.18363.0%26quot%3B%2F%22%3E%3CBR%20%2F%3E%3C%2FTARGETDEVICEFAMILY%3E%3CBR%20%2F%3E%3CRESOURCES%3E%3CBR%20%2F%3E%3CRESOURCE%20language%3D%22%26quot%3Ben-us%26quot%3B%2F%22%3E%3CBR%20%2F%3E%3C%2FRESOURCE%3E%3CBR%20%2F%3E%3CAPPLICATIONS%3E%3CBR%20%2F%3E%3CAPPLICATION%20id%3D%22%26quot%3BWeather.History%26quot%3B%22%20executable%3D%22%26quot%3BWeather.History.Splash.exe%26quot%3B%22%20entrypoint%3D%22%26quot%3BWeather.History.Splash.Bootstrapper%26quot%3B%22%3E%3CBR%20%2F%3E%3CVISUALELEMENTS%20xmlns%3D%22%26quot%3B%26lt%3BA%22%20href%3D%22http%3A%2F%2Fschemas.microsoft.com%2Fappx%2Fmanifest%2Fuap%2Fwindows10%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3E%3CA%20href%3D%22http%3A%2F%2Fschemas.microsoft.com%2Fappx%2Fmanifest%2Fuap%2Fwindows10%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttp%3A%2F%2Fschemas.microsoft.com%2Fappx%2Fmanifest%2Fuap%2Fwindows10%3C%2FA%3E%22%20DisplayName%3D%22Weather%20History%22%20Description%3D%22Frontend%22%20Square150x150Logo%3D%22Images%2Fsatelite.png%22%20Square44x44Logo%3D%22Images%2Fsatelite.png%22%20BackgroundColor%3D%22yellow%22%2F%26gt%3B%3CBR%20%2F%3E%3C%2FVISUALELEMENTS%3E%3CBR%20%2F%3E%3C%2FAPPLICATION%3E%3CBR%20%2F%3E%3C%2FAPPLICATIONS%3E%3C%2FRESOURCES%3E%3C%2FTARGETDEVICEFAMILY%3E%3C%2FDEPENDENCIES%3E%3C%2FPACKAGE%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1529205%22%20slang%3D%22en-US%22%3ERe%3A%20MSIX%20-%26gt%3B%20Local%20Activation%20permission%20for%20COM%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1529205%22%20slang%3D%22en-US%22%3EAs%20the%20next%20step%20I%20fabricate%20a%20mapping%20file%20so%20that%20the%20dir%20layout%20exhibits%20some%20order.%20The%20last%20invocations%20are%20%3A%3CBR%20%2F%3E%3CBR%20%2F%3Emakeappx.exe%20pack%20%2Fv%20%2Fo%20%2Ff%20mapping.map%20%2Fm%20Appxmanifest.xml%20%2Fp%20.%2FWeather.History.msix%3CBR%20%2F%3ESignTool.exe%20sign%20%2Ffd%20SHA256%20%2Fa%20%2Ff%20devcert.pfx%20%2Fp%20certpwd%20.%2FWeather.History.msix%3CBR%20%2F%3E%3CBR%20%2F%3E%3CBR%20%2F%3EMaybe%20the%20devcert%20puts%20a%20crimp%20on%20the%20exe%20launch...%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1529213%22%20slang%3D%22en-US%22%3ERe%3A%20MSIX%20-%26gt%3B%20Local%20Activation%20permission%20for%20COM%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1529213%22%20slang%3D%22en-US%22%3EBtw%20what%20yet%20strange%20is%20that%20upon%20app%20start%20it%20shows%20an%20empty%20window%20for%20a%20while%20until%20it%20gives%20up%20that%20daft%20DCOM%20action.%20But%20thats%20window%20is%20not%20supposed%20to%20be%20the%20entry%20point%20exe%20just%20judging%20by%20the%20window%20dimensions.%20Im%20launching%20a%20240x240%20window%20and%20that%20is%20much%20bigger.%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1529218%22%20slang%3D%22en-US%22%3ERe%3A%20MSIX%20-%26gt%3B%20Local%20Activation%20permission%20for%20COM%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1529218%22%20slang%3D%22en-US%22%3EBtw%20what%20yet%20strange%20is%20that%20upon%20app%20start%20it%20shows%20an%20empty%20window%20for%20a%20while%20until%20it%20gives%20up%20that%20daft%20DCOM%20action.%20But%20thats%20window%20is%20not%20supposed%20to%20be%20the%20entry%20point%20exe%20just%20judging%20by%20the%20window%20dimensions.%20Im%20launching%20a%20240x240%20window%20and%20what%20appearing%20is%20much%20bigger.%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1529344%22%20slang%3D%22en-US%22%3ERe%3A%20MSIX%20-%26gt%3B%20Local%20Activation%20permission%20for%20COM%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1529344%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F682219%22%20target%3D%22_blank%22%3E%40Sigmarsson%3C%2FA%3E%26nbsp%3BMSIX%20apps%20including%20desktop%20components%20need%20the%20following%20included%20in%20the%20manifest%3A%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3Exmlns%3Arescap%3D%22-ERR%3AREF-NOT-FOUND-%3CA%20href%3D%22http%3A%2F%2Fschemas.microsoft.com%2Fappx%2Fmanifest%2Ffoundation%2Fwindows10%2Frestrictedcapabilities%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttp%3A%2F%2Fschemas.microsoft.com%2Fappx%2Fmanifest%2Ffoundation%2Fwindows10%2Frestrictedcapabilities%3C%2FA%3E%22%3C%2FP%3E%0A%3CP%3E...%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CCAPABILITIES%3E%3CBR%20%2F%3E%3CCAPABILITY%20name%3D%22%26quot%3BrunFullTrust%26quot%3B%22%3E%3C%2FCAPABILITY%3E%3CBR%20%2F%3E%3C%2FCAPABILITIES%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1531690%22%20slang%3D%22en-US%22%3ERe%3A%20MSIX%20-%26gt%3B%20Local%20Activation%20permission%20for%20COM%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1531690%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%2F146612%22%20target%3D%22_blank%22%3E%40TIMOTHY%20MANGAN%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20followed%20through%20what%20you%20advised%20but%20to%20no%20avail.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E1.%20I%20altered%20the%20AppxManifest.xml%20(format%20and%20namespace%20its%20a%20bit%20different%2C%20it%20has%20been%20serialized%20by%20a%20CI%20tool)%20as%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CPRE%20class%3D%22lia-code-sample%20language-applescript%22%3E%3CCODE%3E%0A%3CPACKAGE%20xsi%3D%22http%3A%2F%2Fwww.w3.org%2F2001%2FXMLSchema-instance%22%20xsd%3D%22http%3A%2F%2Fwww.w3.org%2F2001%2FXMLSchema%22%20xmlns%3D%22http%3A%2F%2Fschemas.microsoft.com%2Fappx%2Fmanifest%2Ffoundation%2Fwindows10%22%3E%0A%20%20%3CIDENTITY%20name%3D%22WeatherHistory%22%20version%3D%220.7.0.2%22%20publisher%3D%22CN%3DContoso%20Software%2C%20O%3DContoso%20Corporation%2C%20C%3DUS%22%3E%3C%2FIDENTITY%3E%0A%20%20%3CPROPERTIES%3E%0A%20%20%20%20%3CDISPLAYNAME%3EWeather%20History%3C%2FDISPLAYNAME%3E%0A%20%20%20%20%3CPUBLISHERDISPLAYNAME%3ECosmic%20ray%3C%2FPUBLISHERDISPLAYNAME%3E%0A%20%20%20%20%3CLOGO%3EImages%2Fsatelite.png%3C%2FLOGO%3E%0A%20%20%3C%2FPROPERTIES%3E%0A%20%20%3CDEPENDENCIES%3E%0A%20%20%20%20%3CTARGETDEVICEFAMILY%20name%3D%22Windows.Universal%22%20minversion%3D%2210.0.17763.0%22%20maxversiontested%3D%2210.0.18363.0%22%3E%3C%2FTARGETDEVICEFAMILY%3E%0A%20%20%20%20%3CTARGETDEVICEFAMILY%20name%3D%22Windows.Desktop%22%20minversion%3D%2210.0.17763.0%22%20maxversiontested%3D%2210.0.18363.0%22%3E%3C%2FTARGETDEVICEFAMILY%3E%0A%20%20%3C%2FDEPENDENCIES%3E%0A%20%20%3CRESOURCES%3E%0A%20%20%20%20%3CRESOURCE%20language%3D%22en-us%22%3E%3C%2FRESOURCE%3E%0A%20%20%3C%2FRESOURCES%3E%0A%20%20%3CAPPLICATIONS%3E%0A%20%20%20%20%3CAPPLICATION%20id%3D%22Weather.History%22%20executable%3D%22Weather.History.Splash.exe%22%20entrypoint%3D%22Weather.History.Splash%22%3E%0A%20%20%20%20%20%20%3CVISUALELEMENTS%20displayname%3D%22Weather%20History%22%20description%3D%22Frontend%22%20square150x150logo%3D%22Images%2Fsatelite.png%22%20square44x44logo%3D%22Images%2Fsatelite.png%22%20backgroundcolor%3D%22yellow%22%20xmlns%3D%22http%3A%2F%2Fschemas.microsoft.com%2Fappx%2Fmanifest%2Fuap%2Fwindows10%22%3E%3C%2FVISUALELEMENTS%3E%0A%20%20%20%20%20%20%3CEXTENSIONS%3E%0A%20%20%20%20%20%20%20%20%3CEXTENSION%20category%3D%22windows.fullTrustProcess%22%20executable%3D%22Weather.History.Stylet.exe%22%20xmlns%3D%22http%3A%2F%2Fschemas.microsoft.com%2Fappx%2Fmanifest%2Fdesktop%2Fwindows10%22%3E%3C%2FEXTENSION%3E%0A%20%20%20%20%20%20%3C%2FEXTENSIONS%3E%0A%20%20%20%20%3C%2FAPPLICATION%3E%0A%20%20%3C%2FAPPLICATIONS%3E%0A%20%20%3CCAPABILITIES%3E%0A%20%20%20%20%3CCAPABILITY%20name%3D%22runFullTrust%22%20xmlns%3D%22http%3A%2F%2Fschemas.microsoft.com%2Fappx%2Fmanifest%2Ffoundation%2Fwindows10%2Frestrictedcapabilities%22%3E%3C%2FCAPABILITY%3E%0A%20%20%20%20%3CCAPABILITY%20name%3D%22internetClient%22%3E%3C%2FCAPABILITY%3E%0A%20%20%3C%2FCAPABILITIES%3E%0A%3C%2FPACKAGE%3E%3C%2FCODE%3E%3C%2FPRE%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E2.%20Added%20code%20to%20the%20bootstrapper%20ap%20as%20*Splash.exe%20as%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CPRE%20class%3D%22lia-code-sample%20language-applescript%22%3E%3CCODE%3E%20%20%20%20%20%20%20%20private%20async%20void%20LaunchProduct()%0A%20%20%20%20%20%20%20%20%7B%0A%20%20%20%20%20%20%20%20%20%20%20%20try%0A%20%20%20%20%20%20%20%20%20%20%20%20%7B%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20if%20(ApiInformation.IsApiContractPresent(%22Windows.ApplicationModel.FullTrustAppContract%22%2C%201%2C%200))%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7B%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20await%20FullTrustProcessLauncher.LaunchFullTrustProcessForCurrentAppAsync()%3B%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7D%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20else%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7B%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Exit(%24%22Your%20Windows%20version%20is%20not%20supported.%22)%3B%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7D%0A%20%20%20%20%20%20%20%20%20%20%20%20%7D%0A%20%20%20%20%20%20%20%20%20%20%20%20catch%20(Exception%20e)%0A%20%20%20%20%20%20%20%20%20%20%20%20%7B%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Exit(%22Failed%20to%20launch%20Weather%20History%22%2C%20e)%3B%0A%20%20%20%20%20%20%20%20%20%20%20%20%7D%0A%20%20%20%20%20%20%20%20%7D%3C%2FCODE%3E%3C%2FPRE%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20witness%20the%20same%20errors%20in%20the%20Event%20Viewer%20as%20earler.%20For%20some%20reason%20the%20Splash.exe%20is%20not%20even%20starting%2C%20hence%20it%20has%20no%20chance%20to%20launch%20the%20proc%20I%20specified%20as%26nbsp%3B%3CSTRONG%3EfullTrustProcess%3C%2FSTRONG%3E.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Sigmarsson_1-1595158029231.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F206273i6E7DD5A9933C558E%2Fimage-size%2Fmedium%3Fv%3D1.0%26amp%3Bpx%3D400%22%20title%3D%22Sigmarsson_1-1595158029231.png%22%20alt%3D%22Sigmarsson_1-1595158029231.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ENone%20of%20these%20are%20UWP.%20WPF.%20I%20referenced%20further%20assemblies%20as%3A%3C%2FP%3E%3CUL%3E%3CLI%3EC%3A%5CProgram%20Files%20(x86)%5CWindows%20Kits%5C10%5CUnionMetadata%5C10.0.18362.0%5CWindows.winmd%3C%2FLI%3E%3CLI%3EC%3A%5CProgram%20Files%20(x86)%5CReference%20Assemblies%5CMicrosoft%5CFramework%5C.NETCore%5Cv4.5%5CSystem.Runtime.WindowsRuntime.dll%26nbsp%3B%3C%2FLI%3E%3C%2FUL%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3BThe%20package%20itself%20has%20already%20the%20capabilities%20you%20advised%20to%20include%3A%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Sigmarsson_0-1595157299299.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F206271i09078D4DA6FD05DF%2Fimage-size%2Fmedium%3Fv%3D1.0%26amp%3Bpx%3D400%22%20title%3D%22Sigmarsson_0-1595157299299.png%22%20alt%3D%22Sigmarsson_0-1595157299299.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1531820%22%20slang%3D%22en-US%22%3ERe%3A%20MSIX%20-%26gt%3B%20Local%20Activation%20permission%20for%20COM%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1531820%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F682219%22%20target%3D%22_blank%22%3E%40Sigmarsson%3C%2FA%3E%26nbsp%3BI%20am%20unable%20to%20help%20you%20further%3B%20you%20probably%20need%20to%20take%20this%20to%20a%20forum%20with%20more%20developers%20with%20similar%20experience.%26nbsp%3B%20It%20sounds%20like%20you%20are%20pushing%20the%20edge%20to%20integrate%20old%20and%20new%20code%20into%20an%20MSIX%20package%2C%20and%20whether%20there%20is%20a%20procedural%20issue%20or%20(current)%20incompatibility%20I%20don't%20know.%26nbsp%3B%3C%2FP%3E%0A%3CP%3EI'm%20not%20sure%20that%20DCOM%20has%20anything%20to%20do%20with%20the%20issue%3B%20I'm%20guessing%20that%20it%20is%20a%20secondary%20issue.%20So%20going%20back%20to%20the%20beginning%20with%20code%20samples%20like%20this%20is%20more%20likely%20to%20help%20with%20someone%20more%20familiar%20with%20what%20you%20are%20attempting.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1532043%22%20slang%3D%22en-US%22%3ERe%3A%20MSIX%20-%26gt%3B%20Local%20Activation%20permission%20for%20COM%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1532043%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%3B%3C%2FP%3E%3CP%3EHello%20Sir%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWhat%20exactly%20do%20you%20mean%20by%20old%20and%20new%20code%2C%20which%20I%20intend%20to%20push%20to%20the%20limits%20inside%20the%20MSIX%20box%20%3F%3C%2FP%3E%3CP%3EThis%20must%20be%20feasible%20somehow.%20There%20is%20a%20WPF%20splash%20attempts%20to%20launch%20another%20WPF%20both%20are%20based%20on%20the%20common%20TFM%20.NET%204.7.%20The%20first%20WPF%20ought%20to%20launch%20the%20second%20as%20a%20trusted%20process%20harnessing%20this%20MSIX%20package%20extension%20infrastructure.%20Pro%20boostrapper%20mechanism.%20If%20my%20take%20on%20is%20right.%3C%2FP%3E%3CP%3EI%20believe%20it%20is%20the%20right%20way%20to%20keep%20going%20what%20you%20prompted%20but%20either%20it%20is%20even%20now%20yet%20missing%20a%20puzzle%20or%20...%20I%20do%20not%20know.%26nbsp%3B%3C%2FP%3E%3CP%3EWhat%20discussion%20board%20do%20I%20ought%20to%20swing%20over%20%3F%3C%2FP%3E%3CP%3EThis%20ain't%20a%20pacage%20bundle%2C%20so%20what%20architecture%20is%20my%20package%20actually%20targeting%20%3F%20I%20always%20compile%26nbsp%3B%3CSTRONG%3EAny%20CPU.%26nbsp%3B%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3EIs%20there%20a%20checklist%20I%20could%20go%20through%20to%20ensure%20compatibility%20%3F%20Actually%20what%20you%20are%20suspecting.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1532698%22%20slang%3D%22en-US%22%3ERe%3A%20MSIX%20-%26gt%3B%20Local%20Activation%20permission%20for%20COM%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1532698%22%20slang%3D%22en-US%22%3EShould%20I%20send%20you%20log%20details%20about%20the%20process%20starting%20up%20made%20by%20procmon.exe%2C%20would%20you%20be%20able%20to%20narrow%20it%20down%20%3F%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1533412%22%20slang%3D%22en-US%22%3ERe%3A%20MSIX%20-%26gt%3B%20Local%20Activation%20permission%20for%20COM%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1533412%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F682219%22%20target%3D%22_blank%22%3E%40Sigmarsson%3C%2FA%3E%26nbsp%3BI%20really%20don't%20think%20that%20will%20help.%26nbsp%3B%20I%20believe%20the%20package%20structure%20is%20at%20issue.%26nbsp%3B%20Perhaps%20StackOverflow%20might%20get%20you%20someone%20that%20can%20help.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1533470%22%20slang%3D%22en-US%22%3ERe%3A%20MSIX%20-%26gt%3B%20Local%20Activation%20permission%20for%20COM%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1533470%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%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EOkay%2C%20Thank%20you%20Tim.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSTRONG%3EMerci.%3C%2FSTRONG%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1543795%22%20slang%3D%22en-US%22%3ERe%3A%20MSIX%20-%26gt%3B%20Local%20Activation%20permission%20for%20COM%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1543795%22%20slang%3D%22en-US%22%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Sigmarsson_0-1595599509962.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F207658iD1F6B8937705636D%2Fimage-size%2Fmedium%3Fv%3D1.0%26amp%3Bpx%3D400%22%20title%3D%22Sigmarsson_0-1595599509962.png%22%20alt%3D%22Sigmarsson_0-1595599509962.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fwindows%2Fmsix%2Fdesktop%2Fdesktop-to-uwp-manual-conversion%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fwindows%2Fmsix%2Fdesktop%2Fdesktop-to-uwp-manual-conversion%3C%2FA%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E
Occasional Contributor

Hi,

 

My package is installed in sideloaded way and keeps encountering the app-specific permission error. 

 

Yes many suggest to alter permissions and owners manully in regedit and Component Services. 

 

My app is actually missing in the DCOM Config under the Component Services (DCOMCNFG, DCOMCNFG -32). 

 

 

I see neither errors in the proc monitor nor warnings. How can I grant permissions in this case and why isn't this specific task accomplished by the MSIX installer ? 

 

 

 

The application-specific permission settings do not grant Local Activation permission for the COM Server application with CLSID 

{2593F8B9-4EAF-457C-B68A-50F6B8EA6B54}

 and APPID 

{15C20B67-12E7-4BB6-92BB-7AFF07997402}

 to the user PRECISION\Tommy SID (S-1-5-21-3771326467-2290839719-591499861-1001) from address LocalHost (Using LRPC) running in the application container Unavailable SID (Unavailable). This security permission can be modified using the Component Services administrative tool.
15 Replies

Has any1 succeeded granting permission with this PS module ? 

 

Grant, Revoke, Get DCOM permissions using PowerShell 

 

Import-Module .\DCOMPermissions

Grant-DCOMPermission -ApplicationID "{9CA88EE3-ACB7-47C8-AFC4-AB702511C276}" -Account "SYSTEM" -Type Launch -Permissions LocalLaunch,LocalActivation -OverrideConfigurationPermissions

 

Why does a WPF application requires DCOM in 2020 ?? That is insane !

 

 

Though a direct exe launch from the directory is flawless. It must relate to how a store app is launched. Is any1 here exceling MSIX/APPX deployment duties ?

@Sigmarsson You might need to go back to square one and describe how the package was created.  Most likely, the issue starts there.  Although it is entirely possible that you need the tooling to add support for your scenario, I don't think we'll figure it out from the deployment side.

Thanks Timothy for engaging.

I strived to compose a minimalist AppxManifest.xml before package compilation, which I wish to share with you for a quick review.


<Package xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/appx/manifest/foundation/windows10">
<Identity Name="WeatherHistory" Version="0.7.0.1" Publisher="CN=Contoso Software, O=Contoso Corporation, C=US"/>
<Properties>
<DisplayName>Weather History</DisplayName>
<PublisherDisplayName>Tommy</PublisherDisplayName>
<Logo>Images/satelite.png</Logo>
</Properties>
<Dependencies>
<TargetDeviceFamily Name="Windows.Universal" MinVersion="10.0.17763.0" MaxVersionTested="10.0.18363.0"/>
<TargetDeviceFamily Name="Windows.Desktop" MinVersion="10.0.17763.0" MaxVersionTested="10.0.18363.0"/>
</Dependencies>
<Resources>
<Resource Language="en-us"/>
</Resources>
<Applications>
<Application Id="Weather.History" Executable="Weather.History.Splash.exe" EntryPoint="Weather.History.Splash.Bootstrapper">
<VisualElements xmlns="http://schemas.microsoft.com/appx/manifest/uap/windows10" DisplayName="Weather History" Description="Frontend" Square150x150Logo="Images/satelite.png" Square44x44Logo="Images/satelite.png" BackgroundColor="yellow"/>
</Application>
</Applications>
</Package>
As the next step I fabricate a mapping file so that the dir layout exhibits some order. The last invocations are :

makeappx.exe pack /v /o /f mapping.map /m Appxmanifest.xml /p ./Weather.History.msix
SignTool.exe sign /fd SHA256 /a /f devcert.pfx /p certpwd ./Weather.History.msix


Maybe the devcert puts a crimp on the exe launch...

Btw what yet strange is that upon app start it shows an empty window for a while until it gives up that daft DCOM action. But thats window is not supposed to be the entry point exe just judging by the window dimensions. Im launching a 240x240 window and that is much bigger.

@Sigmarsson MSIX apps including desktop components need the following included in the manifest:

 

xmlns:rescap="http://schemas.microsoft.com/appx/manifest/foundation/windows10/restrictedcapabilities"

...

 

<Capabilities>
<rescap:Capability Name="runFullTrust" />
</Capabilities>

Hi @TIMOTHY MANGAN 

 

I followed through what you advised but to no avail. 

 

1. I altered the AppxManifest.xml (format and namespace its a bit different, it has been serialized by a CI tool) as 

 

<?xml version="1.0" encoding="utf-8"?>
<Package xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/appx/manifest/foundation/windows10">
  <Identity Name="WeatherHistory" Version="0.7.0.2" Publisher="CN=Contoso Software, O=Contoso Corporation, C=US" />
  <Properties>
    <DisplayName>Weather History</DisplayName>
    <PublisherDisplayName>Cosmic ray</PublisherDisplayName>
    <Logo>Images/satelite.png</Logo>
  </Properties>
  <Dependencies>
    <TargetDeviceFamily Name="Windows.Universal" MinVersion="10.0.17763.0" MaxVersionTested="10.0.18363.0" />
    <TargetDeviceFamily Name="Windows.Desktop" MinVersion="10.0.17763.0" MaxVersionTested="10.0.18363.0" />
  </Dependencies>
  <Resources>
    <Resource Language="en-us" />
  </Resources>
  <Applications>
    <Application Id="Weather.History" Executable="Weather.History.Splash.exe" EntryPoint="Weather.History.Splash">
      <VisualElements DisplayName="Weather History" Description="Frontend" Square150x150Logo="Images/satelite.png" Square44x44Logo="Images/satelite.png" BackgroundColor="yellow" xmlns="http://schemas.microsoft.com/appx/manifest/uap/windows10" />
      <Extensions>
        <Extension Category="windows.fullTrustProcess" Executable="Weather.History.Stylet.exe" xmlns="http://schemas.microsoft.com/appx/manifest/desktop/windows10" />
      </Extensions>
    </Application>
  </Applications>
  <Capabilities>
    <Capability Name="runFullTrust" xmlns="http://schemas.microsoft.com/appx/manifest/foundation/windows10/restrictedcapabilities" />
    <Capability Name="internetClient" />
  </Capabilities>
</Package>

 

2. Added code to the bootstrapper ap as *Splash.exe as 

 

        private async void LaunchProduct()
        {
            try
            {
                if (ApiInformation.IsApiContractPresent("Windows.ApplicationModel.FullTrustAppContract", 1, 0))
                {
                    await FullTrustProcessLauncher.LaunchFullTrustProcessForCurrentAppAsync();
                }
                else
                {
                    Exit($"Your Windows version is not supported.");
                }
            }
            catch (Exception e)
            {
                Exit("Failed to launch Weather History", e);
            }
        }

 

I witness the same errors in the Event Viewer as earler. For some reason the Splash.exe is not even starting, hence it has no chance to launch the proc I specified as fullTrustProcess.

 

Sigmarsson_1-1595158029231.png

 

 

None of these are UWP. WPF. I referenced further assemblies as:

  • C:\Program Files (x86)\Windows Kits\10\UnionMetadata\10.0.18362.0\Windows.winmd
  • C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETCore\v4.5\System.Runtime.WindowsRuntime.dll 

 

 The package itself has already the capabilities you advised to include:

 

Sigmarsson_0-1595157299299.png

 

 

 

 

@Sigmarsson I am unable to help you further; you probably need to take this to a forum with more developers with similar experience.  It sounds like you are pushing the edge to integrate old and new code into an MSIX package, and whether there is a procedural issue or (current) incompatibility I don't know. 

I'm not sure that DCOM has anything to do with the issue; I'm guessing that it is a secondary issue. So going back to the beginning with code samples like this is more likely to help with someone more familiar with what you are attempting.

@TIMOTHY MANGAN 

Hello Sir,

 

What exactly do you mean by old and new code, which I intend to push to the limits inside the MSIX box ?

This must be feasible somehow. There is a WPF splash attempts to launch another WPF both are based on the common TFM .NET 4.7. The first WPF ought to launch the second as a trusted process harnessing this MSIX package extension infrastructure. Pro boostrapper mechanism. If my take on is right.

I believe it is the right way to keep going what you prompted but either it is even now yet missing a puzzle or ... I do not know. 

What discussion board do I ought to swing over ?

This ain't a pacage bundle, so what architecture is my package actually targeting ? I always compile Any CPU. 

Is there a checklist I could go through to ensure compatibility ? Actually what you are suspecting.

 

Should I send you log details about the process starting up made by procmon.exe, would you be able to narrow it down ?

@Sigmarsson I really don't think that will help.  I believe the package structure is at issue.  Perhaps StackOverflow might get you someone that can help.

@TIMOTHY MANGAN 

 

Okay, Thank you Tim.

 

Merci.

best response confirmed by Sigmarsson (Occasional Contributor)