rossmcm
rossmcm

Reputation: 5620

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?

Upvotes: 3

Views: 2524

Answers (1)

Sertac Akyuz
Sertac Akyuz

Reputation: 54772

Shortcuts have an extension, try:

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

Upvotes: 9

Related Questions