mcseforsale
Posts: 57
Joined: Wed Mar 27, 2013 10:53 pm

Command line options for shortcuts

Tue Nov 15, 2022 10:20 pm

Are there command line switches that can be used during a silent installation that control the creation of shortcuts?

Thanks!
AJ

curt.blunt
Posts: 19
Joined: Tue Oct 18, 2022 11:05 am
Location: Remote

Re: Command line options for shortcuts

Wed Nov 16, 2022 9:20 am

I also need these options. I've contacted support yesterday I will drop there reply in here.

Catalin
Posts: 6544
Joined: Wed Jun 13, 2018 7:49 am

Re: Command line options for shortcuts

Wed Nov 16, 2022 11:51 am

Hello AJ, Curt,

There aren't any command line parameters which you can use to install your shortcuts.

However, what you can do is create the shortcut in your project as "Shortcut to external file". By doing so, a component will be created in the "Organization" page - component which you can further condition based on a property, e.g.:

Code: Select all

INSTALL_SHORTCUT="True"
Note: to specifically view the component created for your shortcut, you can right click on the component --> "Go to Component"

Your users will then be able to install the MSI as it follows:

Code: Select all

msiexec /i <path_to_msi> INSTALL_SHORTCUT="True"
and the shortcut will be installed. Otherwise, it will not.

How to create a shortcut only if a specific feature is installed?

Conditionally create shortcut based on the user selection

Hope this helps!

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”