Code: Select all
advinstProject.LaunchConditionsComponent.SoftwareLaunchConditions.IIS = null;
Sample code and project Regards,
René
Code: Select all
advinstProject.LaunchConditionsComponent.SoftwareLaunchConditions.IIS = null;
Code: Select all
$advinst = New-Object -ComObject AdvancedInstaller
$advinstProject = $advinst.LoadProject("C:\DeleteFeatures.aip")
# Get the desired build object by name
$desiredBuild = $advinstProject.BuildComponent.Builds | Where-Object { $_.Name -eq "DefaultBuild" }
# Set it as the selected build
$advinstProject.BuildComponent.SelectedBuild = $desiredBuild
# Verify
$advinstProject.BuildComponent.SelectedBuild.Name
$advinstProject.LaunchConditionsComponent.SoftwareLaunchConditions.IIS = "Internet Information Services 10.0"
$advinstProject.Save()
FOLLOW US
Get the latest news in Application Packaging