UWP应用程序安装程序文件中存在本地文件的URI



我想为我的UWP应用程序编写一个appinstaller文件,这样依赖项也会自动安装。出于某种原因,客户不希望应用程序出现在互联网上,并希望应用程序通过公司笔驱动器(远程工作位置:无网络(分发

如何提及uri作为本地文件的相对路径。我看到的例子是web URI我尝试使用Uri="file:///installer.appinstaller">

<?xml version="1.0" encoding="utf-8"?>
<AppInstaller
xmlns="http://schemas.microsoft.com/appx/appinstaller/2017/2"
Version="0.0.7.0"
Uri="file:///installer.appinstaller" >

<MainPackage
Name="...."
Publisher="CN=zzz, O=zzz Ltd., C=FL"
Version="1.0.7.0"
ProcessorArchitecture="x86"
Uri="file:///App_1.0.7.0_x86_Debug.appx"/>
<Dependencies>
<Package Name="Microsoft.NET.CoreFramework.Debug.2.2" Publisher="CN=Microsoft Corporation, O=Microsoft Corporation, L=Redmond, S=Washington, C=US" Version="2.2.27909.0" ProcessorArchitecture="x86" Uri="file:///Dependencies/x86/Microsoft.NET.CoreFramework.Debug.2.2.appx"/>    
</Dependencies>
</AppInstaller> 

根据我得到的响应,文件可以是机器上的本地文件,但指定的路径不能是相对路径,它需要是文件的完整路径。

appinstaller只是一个用于从web下载实际资源(包(的文件(https://learn.microsoft.com/en-us/windows/msix/app-installer/web-install-azure)。

我认为在您的场景中,只分发.msix包就足够了。msix文件包含安装和运行应用程序所需的所有内容。

证书也存在"问题"。也许运行installpowershell脚本可能是的一个选项