How to remove a desktop shortcut by Innosetup
Posted
by trudger
on Stack Overflow
See other posts from Stack Overflow
or by trudger
Published on 2009-09-06T12:45:02Z
Indexed on
2010/04/23
10:53 UTC
Read the original article
Hit count: 305
inno-setup
|desktop-shortcut
How can I remove a desktop shortcut by Innosetup? It's created by previous version and not needed anymore. I tried delete it in [InstallDelete]
[InstallDelete]
Type: files; Name: {userdesktop}\Shortcut Name
and delete the file in "ssInstall" of CurStepChanged event handler
DeleteFile(ExpandConstant('{userdesktop}\Shortcut Name'));
But they don't work. Any suggestion is appreciated!
© Stack Overflow or respective owner