Hello and welcome to Advanced Installer forums,
If you want to condition installation of a shortcut depending of a property value you should condition installation of a dummy component, that should contain your shortcut, from "Organization" page. So, you should create 4 components, containing a dummy resource (i.e. a registry or a file), that will contain your shortcuts. The first component installation will have as install condition: SHORTCUT ="0" OR SHORTCUT = "1". The second component installation will have as install condition: SHORTCUT ="0" OR SHORTCUT = "2" and so on. A shortcut to an installed file can not be moved from its target file component. So, you should create your shortcuts as a shortcut to an external file in order to move it in dummy components.
Please keep in mind that all your shortcuts will be installed only when the SHORTCUT property will contain the "0" value.
In order to achieve what you want this is what you should do:
- Go to the "Registry" page and create a dummy key (i.e. My_Key1) using [New Key] toolbar button. Here create a dummy registry (i.e My_registry1) using [New Value] toolbar button. Then create another three dummy key (i.e. My_Key2, My_Key3, My_Key4) each one containing one registry value (i.e My_registry2, My_registry3, My_registry4).
- Go to the "Organization" page.
- Drag your first shortcut in the My_Key1 component (your dummy component). Select My_Key1 component and in the "Condition" field from the "Component Properties" right pane set the following condition:
- Repeat the above step for the other shortcuts and edit the "Condition" field accordingly.
- Build and run your package.
If you have any questions let me know.
All the best,
Daniel