-
Notifications
You must be signed in to change notification settings - Fork 23
Test MSIProduct
Runs internal consistency evaluators (ICEs) against the product package or packages.
Test-MSIProduct [-AdditionalCube <String[]>] [-NoDefault] [-Include <String[]>] [-Exclude <String[]>]
[-Path] <String[]> [-Patch <String[]>] [-Transform <String[]>] [<CommonParameters>]
Test-MSIProduct [-AdditionalCube <String[]>] [-NoDefault] [-Include <String[]>] [-Exclude <String[]>]
[-Patch <String[]>] [-Transform <String[]>] -LiteralPath <String[]> [<CommonParameters>]
Internal consistency evaluators (ICEs) are custom actions that validate whether a product is authored as specified. If Orca or MsiVal2 is installed, the default ICE .cub ("ICE cube") file is used by default, and you can specify custom ICE cube.
You can also apply any number of patches or transforms before running ICEs. This allows you to evaluate a product that is transformed by, for example, a patch to also make sure the changes made by a patch or valid.
test-msiproduct .\example.msi -include ICE0* -exclude ICE03 -v
Output all messages from ICEs 01 through 09 except for ICE03.
test-msiproduct .\example.msi -patch .\example.msp -add .\tests\custom.cub
Apply example.msp to example.msi, then run all the default and custom ICEs.
One or more ICE .cub files to use for evaluation.
Type: String[]
Parameter Sets: (All)
Aliases: Cube
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: FalseThe names of ICEs to exclude from evaluation (all other ICEs are included).
Type: String[]
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: TrueThe names of ICEs to include from evaluation (all other ICEs are excluded).
Type: String[]
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: TrueThe path to a package to evaluate. The value of -LiteralPath is used exactly as typed. No characters are interpreted as wildcards.
Type: String[]
Parameter Sets: LiteralPath
Aliases: PSPath
Required: True
Position: Named
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: FalseDo not import darice.cub if installed with Orca or MsiVal2.
Type: SwitchParameter
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: FalseThe path to a patch package or packages to apply to the product package before evaluation. Patches are applied in sequence order.
Type: String[]
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: TrueThe path to a package to evaluate. Wildcards are permitted. You can specify * in any part of the path to select all matching files.
Type: String[]
Parameter Sets: Path
Aliases:
Required: True
Position: 1
Default value: None
Accept pipeline input: True (ByPropertyName, ByValue)
Accept wildcard characters: TrueThe path to a transform or transforms to apply to the product package before evaluation.
Type: String[]
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: TrueThis cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).
Copyright (C) Microsoft Corporation. All rights reserved. Licensed under the MIT license. See LICENSE.txt in the project root for license information.
Commands
- Add-MSISource
- Clear-MSISource
- Edit-MSIPackage
- Export-MSIPatchXml
- Get-MSIComponentInfo
- Get-MSIComponentState
- Get-MSIFeatureInfo
- Get-MSIFileHash
- Get-MSIFileType
- Get-MSILoggingPolicy
- Get-MSIPatchInfo
- Get-MSIPatchSequence
- Get-MSIProductInfo
- Get-MSIProperty
- Get-MSIRelatedProductInfo
- Get-MSISharedComponentInfo
- Get-MSISource
- Get-MSISummaryInfo
- Get-MSITable
- Install-MSIAdvertisedFeature
- Install-MSIPatch
- Install-MSIProduct
- Measure-MSIProduct
- Remove-MSILoggingPolicy
- Remove-MSISource
- Repair-MSIProduct
- Set-MSILoggingPolicy
- Test-MSIProduct
- Uninstall-MSIPatch
- Uninstall-MSIProduct
Examples