3

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?

Brian Tompsett - 汤莱恩
  • 5,753
  • 72
  • 57
  • 129
rossmcm
  • 5,493
  • 10
  • 55
  • 118

1 Answers1

9

Shortcuts have an extension, try:

Type: files; Name: "{group}\User's Manual (PDF).lnk"
Sertac Akyuz
  • 54,131
  • 4
  • 102
  • 169
  • That worked, thanks very much. You would think they would follow the syntax of the [Icons] entry, which doesn't need the ".lnk". – rossmcm Mar 07 '11 at 22:01
  • @rossmcm - Yeah, only files/directories are processed in [..delete] sections... You're welcome! Can accept the answer as well. ;) – Sertac Akyuz Mar 07 '11 at 22:32