DeleteShortcut
InstallShield 2022 » 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
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
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