Install-MSIAdvertisedFeature

Synopsis

Installs advertised features.

Syntax

Install-MSIAdvertisedFeature [[-FeatureName] <string[]>] [-ProductCode <string[]>] [-Force] [-Properties <string[]>] [-WhatIf] [-Confirm] [<CommonParameters>]

Install-MSIAdvertisedFeature [[-FeatureName] <string[]>] -Product <ProductInstallation[]> [-Force] [-Properties <string[]>] [-WhatIf] [-Confirm] [<CommonParameters>]

Description

Some or all features can be advertised for a product. This may be by design or incidental if certain patching problems occur. You can use this cmdlet to to install some or all advertise features for some or all products.

You can also scan for all advertised features using the -WhatIf parameter to see what would be done to your system without performing those operations. Use -Confirm if you want to approve the operation to each product.

Parameters

-Confirm <SwitchParameter>

Confirm installing advertised features for each product.

Required? false
Position named
Default value|
Accepts pipeline input? false
Accept wildcard charactrs? false

-FeatureName <string[]>

One or more specific features to install. Feature names are case-sensitive.

Required? false
Position 0
Default value|
Accepts pipeline input? true (ByPropertyName)
Accept wildcard charactrs? false

-Force <SwitchParameter>

Perform each operation without confirmation.

Required? false
Position named
Default value|
Accepts pipeline input? false
Accept wildcard charactrs? false

-Product <Microsoft.Deployment.WindowsInstaller.ProductInstallation[]>

One or more products passed through the pipeline to limit which products are scanned for advertised features.

Required? true
Position named
Default value|
Accepts pipeline input? true (ByValue)
Accept wildcard charactrs? false

-ProductCode <string[]>

One or more ProductCodes to limit which products are scanned for advertised features.

Required? false
Position named
Default value|
Accepts pipeline input? true (ByPropertyName)
Accept wildcard charactrs? false

-Properties <string[]>

Additional properties to pass to the installation operation.

Required? false
Position named
Default value|
Accepts pipeline input? true (ByPropertyName, FromRemainingArguments)
Accept wildcard charactrs? false

-WhatIf <SwitchParameter>

Show what operations would be performed without actually performing them.

Required? false
Position named
Default value|
Accepts pipeline input? false
Accept wildcard charactrs? false

Inputs

  • Microsoft.Deployment.WindowsInstaller.ProductInstallation: An existing product for which advertised features should be installed.

Examples

Example 1

install-msiadvertisedfeature -whatif
Scans all features in all products for advertised features and reports what operation would be performed.

Example 2

get-msiproductinfo '{12341234-1234-1234-1234-123412341234}' | install-msiadvertisedfeature Complete
Installs the 'Complete' feature for the specified product.

Related Links


Last edited Dec 26, 2014 at 6:36 AM by heaths, version 1

Comments

No comments yet.