aldebaran
Posts: 23
Joined: Wed Dec 05, 2007 4:04 pm
Location: Hannover, Germany
Contact: Website

Deleting shortcuts at the end of the install

My installation requires MS SQL Server Express, so I install this as a prerequesite. I found a way to silenty install the programm and this works well.

My problem:
the installation of SQL Server creates some icons in the Start menu (Start-Programs-MS SQL Server...). Is there a way to immediately delete these entries within the setup of my app?
It seems to me that 'Delete Shortcuts' in the 'File & Folders' section only seems to delete shortcuts that exist before the installation starts.

Greetings
Stefan Hackenthal
aldebaran GmbH
http://www.aldebaran.de
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Hi Stefan,

You can remove a file (or shortcut) by using a custom action. There is a sample custom action on the forum, please take a look:
http://www.advancedinstaller.com/forums ... php?t=5282

The PATH_TO_FILE property can be set with a "Property set with formatted" custom action to:

Code: Select all

[ProgramMenuFolder]Shortcut_folder\shortcut.lnk
where "Shortcut_folder" is the folder which contains the shortcut and "shortcut.lnk" is the actual shortcut.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”