Creating shortcuts to external files from the CLI?? - Advanced Installer Community

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!

tg81
Posts: 2
Joined: Mon Oct 19, 2009 9:45 am

Creating shortcuts to external files from the CLI??

Hi,
I'm trying to include a shortcut in an MSI linking to a file created by a previous installer. Creating shortcuts for internal files works just fine, but for all external files only the shortcut folder is created.

my aic-file looks like this:

Code: Select all

;aic
NewShortcut -name External -dir ProgramMenuFolder\CLItest -target DesktopFolder\application.exe -wkdir DesktopFolder
NewShortcut -name Internal -dir ProgramMenuFolder\CLItest -target APPDIR\application.exe -wkdir APPDIR
rebuild
In this case, only the shortcut named "Internal" will be created.
What am I doing wrong here?

Thx in advance
GabrielBarbu
Posts: 2146
Joined: Thu Jul 09, 2009 11:24 am
Contact: Website

Re: Creating shortcuts to external files from the CLI??

Hello,

Please note that properties in external shortcuts' -target field must be enclosed in square brackets. Therefore, the correct syntax would be:

Code: Select all

;aic
NewShortcut -name External -dir ProgramMenuFolder\CLItest -target [DesktopFolder]application.exe -wkdir DesktopFolder
NewShortcut -name Internal -dir ProgramMenuFolder\CLItest -target APPDIR\application.exe -wkdir APPDIR
rebuild
Indeed the user guide does not mention this, however we will update it to reflect this aspect.

Let me know if this works for you and if there is anything else I can help you with.

Regards,
Gabriel
Gabriel Barbu
Advanced Installer Team
http://www.advancedinstaller.com/
tg81
Posts: 2
Joined: Mon Oct 19, 2009 9:45 am

Re: Creating shortcuts to external files from the CLI??

Thanks,
I'll try this out, got it working by including the executables in the MSI and using shorcuts to internal files instead until now.

Unfortunately another issue arised while evaluating:
I'm currently trying to configure a bunch of services through the GUI which require a lot of arguments. However, the "argument" field in the "Service Properties"-Dialogue can only hold a value up to (I guess) 256 digits, which is not enough for my needs - is there any way to get rid of this limitation, say by using the CLI or wrapping some of the longer values into custom properties?

Thanks a lot,
great support and a promising product so far!
GabrielBarbu
Posts: 2146
Joined: Thu Jul 09, 2009 11:24 am
Contact: Website

Re: Creating shortcuts to external files from the CLI??

Hello,

This is a limitation from Windows Installer. Indeed it is limited to 255 characters. You can however user a property to contain the arguments, then use that property in the Arguments field. You can set that property from the Install Parameters page.

Regards,
Gabriel
Gabriel Barbu
Advanced Installer Team
http://www.advancedinstaller.com/

Return to “Common Problems”