IMsixDependencies

DeclarationCopy link to this sectionLink to this section copied!

IMsixDependencies : IDispatch

OverviewCopy link to this sectionLink to this section copied!

This interface is meant for configuring the MSIX package dependencies.

PropertiesCopy link to this sectionLink to this section copied!

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

Array<IMsixHostRuntimeDependency> HostRuntimeDependencies
Gets the collection of host runtime dependencies

MethodsCopy link to this sectionLink to this section copied!

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

NewHostRuntimeDependency(String aName, String aPublisher) returns IMsixHostRuntimeDependency
Creates new host runtime dependency

RemoveDependency(VARIANT aDependency)
Removes any type of MSIX dependency

SampleCopy link to this sectionLink to this section copied!

      $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

#add host runtime dependency
$hostRuntimeDep = $msixDeps.NewHostRuntimeDependency("Microsoft.MicrosoftEdge.Stable", "CN=Microsoft Corporation, O=Microsoft Corporation, L=Redmond, S=Washington, C=US")
$hostRuntimeDep.MinVersion = "1.0.0.0"


$prj.SaveAs("d:\my_project\msix_deps.aip")
$prj.Build()