uwpwindows-installeruriappinstaller

URI in UWP app installer file for local files present


I want to write an appinstaller file for my UWP application so that dependencies are also automatically installed. For some reason, the client doesn't want the app to be in the internet and would like the app to be distributed via a company pen drive(remote work location: no network)

How to mention uri for a relative path for local files present. The examples I see are web URIs I tried using 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> 

Solution

  • According to the response I got, the files can be local on a machine but the path specified can't be a relative path it, needs to be a full path to the files.