

Deployment Tools Foundation
ProcessAdvertiseScript Method (scriptFile, iconFolder, shortcuts, removeItems)
Deployment Tools Foundation Namespaces ► Microsoft.Deployment.WindowsInstaller ► Installer ► ProcessAdvertiseScript(String, String, Boolean, Boolean)
Processes an advertise script file into the specified locations.

C# | Visual Basic | Visual C++ | F# |
public static void ProcessAdvertiseScript( string scriptFile, string iconFolder, bool shortcuts, bool removeItems )
Public Shared Sub ProcessAdvertiseScript ( scriptFile As String, iconFolder As String, shortcuts As Boolean, removeItems As Boolean )
public: static void ProcessAdvertiseScript( String^ scriptFile, String^ iconFolder, bool shortcuts, bool removeItems )
static member ProcessAdvertiseScript : scriptFile : string * iconFolder : string * shortcuts : bool * removeItems : bool -> unit

- scriptFile (String)
- Path to a script file generated by GenerateAdvertiseScript(String, String, String, Int32, ProcessorArchitecture, Boolean)
- iconFolder (String)
- An optional path to a folder in which advertised icon files and transform files are located. If this parameter is null, no icon or transform files are written.
- shortcuts (Boolean)
- True if shortcuts should be created
- removeItems (Boolean)
- True if specified items are to be removed instead of created

The process calling this function must be running under the LocalSystem account. To advertise an application for per-user installation to a targeted user, the thread that calls this function must impersonate the targeted user. If the thread calling this function is not impersonating a targeted user, the application is advertised to all users for installation with elevated privileges.
Win32 MSI API: MsiProcessAdvertiseScript
Assembly: Microsoft.Deployment.WindowsInstaller (Module: Microsoft.Deployment.WindowsInstaller.dll) Version: 3.0.0.0 (3.11.1.2318)