Hi,
The command line for the shortcut must be specified by the values of 3 properties, whose values will be modified through custom actions. Those custom actions check if a feature has been installed or not.
Here is what you should do:
- create 3 properties in the "Install Parameters" page, say "Arg1", "Arg2", "Arg3".
- create the shortcut file. In it's properties page, in the "Arguments" field use the <Edit> button to select your properties. Separate them
with spaces. Result: "[arg1] [arg2] [arg3]" - without the quotes.
- in the "Custom action" page select from the context-menu the "Show Standard Action"->"Before File Installation"->"InstallInitialize".
- for each property create two custom actions:
> the first: a "Script Inline" custom action to set the value of one property to the null string. Example:
Session.property("Arg1") = ""
> the second: a "Property Set With Formatted", to set the proper value if the corresponding feature is being installed.
In the "Property Name" field enter the name of the property. Example: Arg1
In the "Formatted Text" field enter your value:
Example: -orders.
In the "Expression" field enter the condition that checks if a feature is being installed:
(&Feature=3) AND (!Feature=2)
Advanced Installer names the feature as it follows:
- The first feature is named "MainFeature".
- The second feature is named "Feature".
- The third feature is named "Feature_1"
- The fourth feature is named "Feature_2" and so on.
So, for the second property the condition will be: (&Feature_1=3) AND (!Feature_1=2), and so on.
You can find more info on Conditional Statement Syntax on:
http://msdn.microsoft.com/library/defau ... syntax.asp
All the best,
Mihai