Hello Hans,
In order to achieve what you want, we will basically need to condition the installation of the shortcut itself.
To do so, we will need a dummy component (either a registry value or a file) that will help us condition the installation of the shortcut.
I'd say that the best option here would be the registry, therefore I will present you a solution that includes that.
Please go to
"Registry" page and create a new value, e.g.:
- RegistryCreateShortcut.png (38.59KiB)Viewed 3432 times
This way, in
"Organization" page, a new component will be created having the name given to your registry value.
Now, one important thing to be noted here is the fact that, in order to achieve this, we will need to use a
"Shortcut to External file", not a
"Shortcut to Installed file".
The reason behind this is the fact that when creating a shortcut to an installed file, the shortcut is binded to the component of the executable and we can not move it, therefore we can not condition it without conditioning the installation of the EXE itself.
With that being said, we will need to create a shortcut to an external file, such as:
- StartupShortcut.png (30.04KiB)Viewed 3432 times
After doing so, please go to
"Organization" page, locate the component that contains your shortcut, move the shortcut to registry's component and then condition the installation of the component based on your checkbox control:
- Condition.png (108.7KiB)Viewed 3432 times
Hope this helps!
Best regards,
Catalin