AdvertiseProduct Method (packagePath, perUser, transforms, locale)

Microsoft Deployment Compression & Installer

Copy image CopyHover image
Deployment Tools Foundation AdvertiseProduct Method (packagePath, perUser, transforms, locale)
Deployment Tools Foundation NamespacesMicrosoft.Deployment.WindowsInstallerInstallerAdvertiseProduct(String, Boolean, String, Int32)
Advertises a product to the local computer.
Declaration Syntax
C# Visual Basic Visual C++
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
)
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
Exceptions
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.9.1006.0)