

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.

C# | Visual Basic | Visual C++ | F# |
public static void AdvertiseProduct( string packagePath, bool perUser, string transforms, int locale )
Public Shared Sub AdvertiseProduct ( packagePath As String, perUser As Boolean, transforms As String, locale As Integer )
public: static void AdvertiseProduct( String^ packagePath, bool perUser, String^ transforms, int locale )
static member AdvertiseProduct : packagePath : string * perUser : bool * transforms : string * locale : int -> unit

- 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

Win32 MSI APIs: MsiAdvertiseProduct, MsiAdvertiseProductEx

Exception | Condition |
---|---|
FileNotFoundException | the specified package file does not exist |
Assembly: Microsoft.Deployment.WindowsInstaller (Module: Microsoft.Deployment.WindowsInstaller.dll) Version: 3.0.0.0 (3.11.1.2318)