AddShellProperty Method

InstallShield 2016

Project • This information applies to the following project types:

Basic MSI
DIM
InstallScript MSI
Merge Module

The AddShellProperty method adds a Shell property for the current shortcut object. The properties that the Shell can set are defined in propkey.h, which is part of the Windows SDK.

For more information on setting Shell properties for a shortcut, see Setting Custom Shell Properties.

Syntax

Function AddShellProperty (sName As String) As ISWiShellProperty

Parameters

AddShellProperty Method Parameters

Parameter

Description

sName

Pass a string to specify the name of a Shell property that you want to add to the shortcut.

Return Values

The AddShellProperty method returns an ISWiShellProperty object.

Example

The following sample VBScript snippet adds a Shell property to a shortcut:

Dim pShellProperty As ISWiShellProperty

Set pShellProperty = pShortcut.AddShellProperty("MyShellProperty")

Applies To

ISWiShortcut