Search code examples
installationinno-setupdelete-filestartmenu

Remove shortcut and associated file with Innosetup


As part of an application update, I want to remove an old start menu entry if it exists, and the file it points to. I tried:

[InstallDelete]
Type: files; Name: "{group}\User's Manual (PDF)"
Type: files; Name: "{app}\User's Manual.pdf"

The actual file itself got deleted, but not the start menu entry. Also - neither operation was recorded in the install log.

Any ideas?


Solution

  • Shortcuts have an extension, try:

    Type: files; Name: "{group}\User's Manual (PDF).lnk"