Deployment Tools Foundation
AdvertiseProduct Method (packagePath, perUser, transforms, locale)
Deployment Tools Foundation Namespaces ► Microsoft.Deployment.WindowsInstaller ► Installer ► AdvertiseProduct(String, Boolean, String, Int32)
Advertises a product to the local computer.
Declaration Syntax
Parameters
- packagePath (String)
- Path to the package of the product being advertised
- perUser (Boolean)
- True if the product is user-assigned; false if it is machine-assigned.
- transforms (String)
- Semi-colon delimited list of transforms to be applied. This parameter may be null.
- locale (Int32)
- The language to use if the source supports multiple languages
Remarks
Win32 MSI APIs: MsiAdvertiseProduct, MsiAdvertiseProductEx
Exceptions
Exception | Condition |
---|---|
FileNotFoundException | the specified package file does not exist |