MSIX->;COM服务器的本地激活权限

MSIX->;COM服务器的本地激活权限,com,dcom,msix,Com,Dcom,Msix,我的软件包以侧装方式安装,并不断遇到特定于应用程序的权限错误 是的,许多人建议手动更改regedit和组件服务中的权限和所有者 组件服务(DCOMCNFG,DCOMCNFG-32)下的DCOM配置中实际上缺少我的应用程序。 我在进程监视器中既没有看到错误,也没有看到警告。在这种情况下,我如何授予权限?为什么MSIX安装程序不能完成此特定任务 The application-specific permission settings do not grant Local Activation per

我的软件包以侧装方式安装,并不断遇到特定于应用程序的权限错误

是的,许多人建议手动更改regedit和组件服务中的权限和所有者

组件服务(DCOMCNFG,DCOMCNFG-32)下的DCOM配置中实际上缺少我的应用程序。

我在进程监视器中既没有看到错误,也没有看到警告。在这种情况下,我如何授予权限?为什么MSIX安装程序不能完成此特定任务

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.
我试图使用此PS模块授予DCOM权限,但无效:

在事件查看器中不断看到错误,这将禁止我的应用程序启动:

我在这个AppxManifest.xml的帮助下构建了MSIX包

    <?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>
有一个WPF splash尝试启动另一个WPF,这两个WPF都基于通用的TFM.NET4.7。第一个WPF应该启动第二个WPF,作为一个利用此MSIX包扩展基础设施的可信进程。亲升压机制。如果我的看法是正确的

这不是一个打包包,那么我的包真正针对的是什么体系结构呢?我总是编译任何CPU。

我最终通过调用相应的工具来构建包,如下所示:

makeappx.exe pack /v /o /f mapping.map /m Appxmanifest.xml /p ./Weather.History.msix

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);
        }
    }
makeappx.exe pack /v /o /f mapping.map /m Appxmanifest.xml /p ./Weather.History.msix
EntryPoint="Windows.FullTrustApplication"