Deployment Tools Foundation
GenerateAdvertiseScript Method (packagePath, scriptFilePath, transforms, locale, processor, instance)
Deployment Tools Foundation Namespaces ► Microsoft.Deployment.WindowsInstaller ► Installer ► GenerateAdvertiseScript(String, String, String, Int32, ProcessorArchitecture, Boolean)
Generates an advertise script. The method enables the installer to write to a
script the registry and shortcut information used to assign or publish a product.
Declaration Syntax
C# | Visual Basic | Visual C++ | F# |
public static void GenerateAdvertiseScript( string packagePath, string scriptFilePath, string transforms, int locale, ProcessorArchitecture processor, bool instance )
Public Shared Sub GenerateAdvertiseScript ( packagePath As String, scriptFilePath As String, transforms As String, locale As Integer, processor As ProcessorArchitecture, instance As Boolean )
public: static void GenerateAdvertiseScript( String^ packagePath, String^ scriptFilePath, String^ transforms, int locale, ProcessorArchitecture processor, bool instance )
static member GenerateAdvertiseScript : packagePath : string * scriptFilePath : string * transforms : string * locale : int * processor : ProcessorArchitecture * instance : bool -> unit
Parameters
- packagePath (String)
- Path to the package of the product being advertised
- scriptFilePath (String)
- path to script file to be created with the advertise information
- 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
- processor (ProcessorArchitecture)
- Targeted processor architecture.
- instance (Boolean)
- True to install multiple instances through product code changing transform. Advertises a new instance of the product. Requires that the transforms parameter includes the instance transform that changes the product code.
Remarks
Win32 MSI APIs: MsiAdvertiseProduct, MsiAdvertiseProductEx
Assembly: Microsoft.Deployment.WindowsInstaller (Module: Microsoft.Deployment.WindowsInstaller.dll) Version: 3.0.0.0 (3.11.1.2318)