Hello,
There is no command to automatically achieve this. However, if you created the msi using Advanced Installer, and you have access to the .aip project file, you can pass properties through command line to the msi using this format:
Code: Select all
yourinstaller.msi PROPERTYNAME="Property value"
You can then use this property in a condition that tests whether to install the shortcuts in Start Menu, like explained in the following paragraphs.
Please note that Start Menu Shortcuts are not installed by default, unless you specifically place them in the "Application Shortcut" folder on the
"Files and Folders" page. Please follow our comprehensive guide on
Creating Shortcuts.
You can conditionally place shortcuts there by:
- organizing your shortcuts into Components from the
Organization page
- selecting the component and then pressing "..." in the Condition edit box. The
Condition Dialog will pop up
- use the Condition Dialog to form a condition, using the property you are passing to your installer thorough command line
- for your purpose, you can simply place "NOT PROPERTYNAME" as the condition. The condition will fail if a property with the "PROPERTYNAME" name and a random value is passed to the msi, and no shortcuts will be installed in the Start folder
Regards,
Gabriel