Deployment Tools Foundation
GenerateAdvertiseScript Method (packagePath, scriptFilePath, transforms, locale)
Deployment Tools Foundation Namespaces ► Microsoft.Deployment.WindowsInstaller ► Installer ► GenerateAdvertiseScript(String, String, String, Int32)
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++ |
public static void GenerateAdvertiseScript( string packagePath, string scriptFilePath, string transforms, int locale )
Public Shared Sub GenerateAdvertiseScript ( packagePath As String, scriptFilePath As String, transforms As String, locale As Integer )
public: static void GenerateAdvertiseScript( String^ packagePath, String^ scriptFilePath, String^ transforms, int locale )
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
Remarks
Win32 MSI APIs: MsiAdvertiseProduct, MsiAdvertiseProductEx
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)