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!

ozzy
Posts: 18
Joined: Mon Apr 23, 2007 6:56 pm

cmdline newshortcut command

I am trying to get the new shortcut command to add a shortcut to a project file and I am having issues.

I am typing:
"C:\Program Files\Caphyon\Advanced Installer\advancedInstaller.com" /edit basic.aip /NewShortcut -name "TeamPlayer" -dir "C:\Documents and Settings\All Users\Start Menu\Programs\Primavera TeamPlay" -target "C:\Program Files\Primavera TeamPlay\Team Player\TeamPlayer.exe" -wkdir "C:\Program Files\Primav~1\Teampl~1" -icon "C:\Program Files\Primavera TeamPlay\Team Player\TeamPlayer.ico" -index 00000000 -mode normal
and I am getting in return:
Exception - Invalid MSI identifier string [C:].
Can you provide some insite on what needs to be corrected in my command line???

I used the documentation at http://www.advancedinstaller.com/user-g ... rtcut.html.

Also are there available variable to make the command shorter / more universal?
example: $commonprograms$ = "C:\Documents and Settings\All Users\Start Menu\Programs\"
gigi
Posts: 2103
Joined: Tue Apr 11, 2006 9:55 am
Contact: Website

Hi,

The problem is that you specify a directory for the shortcut (directory where the shortcut will be placed) that does not exist in the "Files and Folders" page. See the -dir switch.

The SHORTCUTDIR folder is transplanted by default to: "C:\Documents and Settings\All Users\Start Menu\Programs\Your Application" and can be changed in the "Install Parameters" page.

So you can use /NewShortcut -name TeamPlayer -dir SHORTCUTDIR ...

Best Regards,
Gigi
_______________
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com
ozzy
Posts: 18
Joined: Mon Apr 23, 2007 6:56 pm

What other directory names are available to reference in my aip file?

SHORTCUTDIR = "C:\Documents and Settings\All Users\Start Menu\Programs\Your Application"

APPDIR = Application install folder

DESKTOPFOLDER="C:\Documents and Settings\All Users\Desktop"
ozzy
Posts: 18
Joined: Mon Apr 23, 2007 6:56 pm

I figured out that you can look in the gui editor on the properties of the different directories to figure out it's short name.

Return to “Common Problems”