I have two components that use 'conditions' to determine if the component's file will be installed, and both files also have shortcuts that are being created on the desktop for them. I'm having a problem though where the shortcuts are still being created on the desktop even when the 'condition' is preventing the file from being installed. How can I also prevent the shortcuts from being created when the file is not installed/copied?
Announcement
Collapse
No announcement yet.
Shortcuts For Component Not Effected By Component Condition
Collapse
X
-
You need to make sure that the shortcut is part of the same component. Don't use the Shortcuts tab on the File, make sure everything is empty:
Instead, use the System Editor for creating the shortcut:
You will have two components, one for the file and another for the shortcut, for example:
Move the shortcut action to the parent of the file, so they are both part of the same component. Right click on the File, and from the context menu, select "Set as KeyPath":
Delete the empty component, and you should end with something like this:
If you have a condition on the Component of the file, it will now affect also the creation of the shortcut. Give this a try and report back.
Ulrich
Comment