Hi Greg,
Since the shortcuts are basically the same, but with different arguments, you can try a simpler approach:
- use only one shortcut
- in its Arguments field use a
custom installer property, for example [SHORTCUT_ARGUMENTS]
- in
Custom Actions page show
InstallInitialize action in InstallExecuteSequence
- create a
Property set with formatted custom action under InstallInitialize
- configure it to set your custom property to the shortcut argument you want
- condition the custom action to run only when the argument feature is installed
By default any custom property is empty. So your shortcut won't have an argument. But if the argument feature is installed, the property is set and your shortcut will have an argument.
Regarding the duplicate shortcuts approach, instead of conditioning each component you can simply place them in the appropriate features:
- the no-argument component in the no-argument feature
- the argument component in the argument feature
Regards,
Cosmin