How to make an app - Andromo App Maker

Announcement

Collapse
No announcement yet.

Shortcuts For Component Not Effected By Component Condition

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Shortcuts For Component Not Effected By Component Condition

    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?

  • #2
    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:

    Click image for larger version

Name:	SCRN-2018-05-16-09.png
Views:	1
Size:	10.1 KB
ID:	300196

    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":

    Click image for larger version

Name:	SCRN-2018-05-16-08.png
Views:	1
Size:	7.0 KB
ID:	300195

    Delete the empty component, and you should end with something like this:

    Click image for larger version

Name:	SCRN-2018-05-16-07.png
Views:	1
Size:	7.9 KB
ID:	300194

    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

    Working...
    X