We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

matkr265
Posts: 6
Joined: Fri May 23, 2014 12:44 pm

Add shortcuts via AdvancedInstaller.com

Hi

I am trying to add shortcuts to my AI project via the cmd tool, but only one (the first) of the shortcuts is created during the msi execution. Is there something wrong with my commands listed below?

Code: Select all

AdvancedInstaller.com /edit test.aip /NewShortcut -name MyShortcut1 -dir DesktopFolder -target APPDIR\TestClient.exe
AdvancedInstaller.com /edit test.aip /NewShortcut -name MyShortcut2 -dir 'Application Shortcut Folder' -target APPDIR\TestClient.exe
AdvancedInstaller.com /edit test.aip /NewShortcut -name MyShortcut3 -dir 'C:\Users\stager\AppData\Roaming\Microsoft\Windows\Start Menu\Programs' -target APPDIR\TestClient.exe
I am tying to place a shortcut on the desktop as well as in the Win8 All Programs view!

regards
Matias
Bogdan
Posts: 2796
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: Add shortcuts via AdvancedInstaller.com

Hi Matias,

The "-dir" parameter from the commands is invalid. You need to specify the identifier of the folder from the project where you want the shortcut placed. (Not the actual
path to which that folder can resolve at install time or the name of the folder from Files and Folders page). In your case it could be "ProgramMenuFolder".

To get the identifier right click on the folder and select "Properties".

Regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
matkr265
Posts: 6
Joined: Fri May 23, 2014 12:44 pm

Re: Add shortcuts via AdvancedInstaller.com

Hi Bogdan,

I got it working now, thanks!

Code: Select all

AdvancedInstaller.com /edit test.aip /NewShortcut -name "MyShortcut1" -dir DesktopFolder -target APPDIR\TestClient.exe
AdvancedInstaller.com /edit test.aip /NewShortcut -name "MyShortcut2" -dir SHORTCUTDIR -target APPDIR\TestClient.exe
AdvancedInstaller.com /edit test.aip /NewShortcut -name "MyShortcut3" -dir ProgramMenuFolder -target APPDIR\TestClient.exe
Bogdan
Posts: 2796
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: Add shortcuts via AdvancedInstaller.com

My pleasure Matias.

Regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”