DeleteShortcut

InstallShield 2016 » InstallScript Language Reference

The DeleteShortcut function removes a shortcut from a folder.

Note • DeleteShortcut cannot be used for Internet shortcuts.

Syntax

DeleteShortcut (szShortcutFolder, szName);

Parameters

DeleteShortcut Parameters

Parameter

Description

szShortcutFolder

Specify the name of the folder that contains the shortcut that you want to remove.

szName

Specify the name of the shortcut that you want to remove.

Return Values

DeleteShortcut Parameters

Return Value

Description

0

Indicates that the function successfully deleted the specified shortcut.

You can obtain the error message text associated with a large negative return value—for example, -2147024891 (0x80070005)—by calling FormatMessage.

< 0

Indicates that the function was unable to delete the shortcut.

See Also