cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
alexsd1
Level 3

Create shortcut dynamically by user's preference

I'm attempting to create a desktop shortcut to my exe only if a user checks a checkbox I've placed in my SetupCompleteSuccess dialog.

I can't seem to figure how this is done. Is this even possible? Should I instead use a AskText function?

It would be nice if there were a condition option in a shortcut's properties.

Thanks in advance!
Labels (1)
0 Kudos
(6) Replies
alexsd1
Level 3

Also, how do i ensure that a checkbox will start unchecked?

I currently have the Value property set to 0, but it's always checked when testing.
0 Kudos
esiemiat
Level 9

When a checkbox is unchecked the property is not defined, or empty.
0 Kudos
alexsd1
Level 3

OK, that doesn't seem to answer any of my questions.

How do a dynamically create a shortcut, which depends on user input?
0 Kudos
esiemiat
Level 9

It answers the second question "how do i ensure that a checkbox will start unchecked?". To leave a checkbox unchecked set the property to nothing. Setting it to any value will place a check in the checkbox.

To conditionally install a shortcut, attach it to a component that has an install condition based on the checkbox property. However, for this to work the user would have to check the checkbox prior to the file transfer.
0 Kudos
alexsd1
Level 3

Thanks, that got it working.
0 Kudos
absials
Level 2

Hi,
Is there any method/way in InstallShield to allow the end user to select the option where the shortcuts should display, either at desktop, in quick Launch etc. while the installation is going on ?
Thanks in advance.

Regards,
0 Kudos