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.
Declaration Syntax
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