ProcessAdvertiseScript Method (scriptFile, iconFolder, shortcuts, removeItems)

Microsoft Deployment Tools

Deployment Tools Foundation ProcessAdvertiseScript Method (scriptFile, iconFolder, shortcuts, removeItems)
Deployment Tools Foundation NamespacesMicrosoft.Deployment.WindowsInstallerInstallerProcessAdvertiseScript(String, String, Boolean, Boolean)
Processes an advertise script file into the specified locations.
Declaration Syntax
C# Visual Basic Visual C++
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
)
Parameters
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
Remarks

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) Version: 3.0.0.0 (3.5.1623.0)