Alexander
Posts: 29
Joined: Thu Dec 30, 2004 12:47 pm
Location: Germany

Checkable shortcuts to Desktop, Quick Launch and Startmenu

Hi,

I want to give the user the posibility to set a checkbox to create the following shortcuts to an installed executable: Desktop, Quick Launch and Startmenu

I already added a new dialog which has three checkboxes which have the following properties: SHORT_DESKTOP, SHORT_QUICKLAUNCH and SHORT_STARTMENU

But now I'm kinda stuck... I can't seem to be able to make a component out of each Shortcut (which seems to be the only way to set a condition).

How can I get this to work?
kind regards,
Alex
gigi
Posts: 2103
Joined: Tue Apr 11, 2006 9:55 am
Contact: Website

Hi,
I want to give the user the possibility to set a check box to create the following shortcuts to an installed executable: Desktop, Quick Launch and Startmenu
Here is how you can do this:

1. You need to add a dummy component. Do this by adding a registry value for example.
2. Switch to "Files and Folders" page and a shortcut to an external file. In the "Shortcut Target" field type: [APPDIR]YourApplication.exe
3. Switch to "Organization" page and use the following condition for the dummy component added at step 1. Make sure you have the shortcut in this component (you can drag it if not).

Code: Select all

SHORT_DESKTOP = 1
Where "SHORT_DESKTOP" is the property of the check box and "1" its value. You can modify those values in the check box "Properties" list.

I give an example for one shortcut, you can repeat the process for all your shortcuts.

Regards,
Gigi
_________________
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com
Alexander
Posts: 29
Joined: Thu Dec 30, 2004 12:47 pm
Location: Germany

Works great, thank you very much for the fast reply! :)
kind regards,
Alex

Return to “Common Problems”