IMsixDependencies
Declaration
IMsixDependencies : IDispatch
Overview
This interface is meant for configuring the MSIX package dependencies.
Properties
Array<IMsixPackageDependency> PackageDependencies
Gets the collection
of package dependencies
Array<IMsixDriverDependency> DriverDependencies
Gets the collection of
driver dependencies
Array<IMsixExternalDependency> ExternalDependencies
Gets the
collection of external dependencies
Methods
NewPackageDependency(String aName, String aPublisher) returns
IMsixPackageDependency
Creates new package dependency
NewDriverDependency(String aName) returns IMsixDriverDependency
Creates new
driver dependency
NewExternalDependency(String aName, String aPublisher) returns
IMsixExternalDependency
Creates new external dependency
RemoveDependency(VARIANT aDependency)
Removes any type of MSIX
dependency
Sample
$advinst = New-Object -ComObject AdvancedInstaller $prj = $advinst.CreateProjects("architect") $msixBuild = $prj.BuildComponent.NewMsixBuild("MyMsixBuild") $msixDeps = $prj.MsixComponent.Dependencies # add driver dependency $driverDep = $msixDeps.NewDriverDependency("My Driver Dep") $driverDep.NewConstraint("DriverName", "1.0.0.0", "2010-01-01") #add external dependency $extDep = $msixDeps.NewExternalDependency("Microsoft.WebView2", "CN=Microsoft Windows, O=Microsoft Corporation, L=Redmond, S=Washington, C=US") $extDep.MinVersion = "89.0.145.65" $extDep.Optional = $false #add package dependency $packDep = $msixDeps.NewPackageDependency("Microsoft.VCLibs.140.00.UWPDesktop", "CN=Microsoft Corporation, O=Microsoft Corporation, L=Redmond, S=Washington, C=US") $packDep.MinVersion = "14.0.24217.0" $packDep.ProcessorArchitecture = "x86" $packDep.Optional = $false $prj.SaveAs("d:\my_project\msix_deps.aip") $prj.Build()