InstallerContactSite Map

Command Syntax

/NewShortcut  -name <shortcut_name> 
              -dir <folder_path> 
              -target <file_path>
              [-advertised] 
              [-wkdir <folder_path>]
              [-arg <arguments>]
              [-desc <description>] 
              [-icon <file_path>] 
              [-index <icon_index>] 
              [-mode {normal|minimized|maximized}]
              [-configs <configurations_list>]

Creates a new file shortcut.

Parameters:

  • -name <shortcut_name>
  • The shortcut's name
  • -dir <folder_path>
  • The directory in which the shortcut file is created
  • -target <file_path>
  • The file that is the shortcut target. It can be a file from the package or an external one.
  • [-advertised]
  • Specify whether the shortcut will be advertised or not.
  • [-wkdir <folder_path>]
  • The shortcut's Working directory.
  • [-arg <arguments>]
  • The shortcut arguments.
  • [-desc <description>]
  • The shortcut's description.
  • [-icon <file_path>]
  • The shortcut icon's path.
  • [-index <icon_index>]
  • The icon index for the shortcut. It must be a non-negative number.
  • [-mode {normal|minimized|maximized}]
  • The Show command for the application window.
  • [-configs <configurations_list>]
  • Only available for WinCE projects. Specify in which configurations to include the shortcut. Separate them by ";" character.

Internal Shortcut example:

AdvancedInstaller.com /edit MyProject.aip 
    /NewShortcut -name MyShortcut
        -dir DesktopFolder 
        -target APPDIR\MyApplication.exe
        -arg /AppArg -icon C:\ShIcon.ico

External Shortcut example:

AdvancedInstaller.com /edit MyProject.aip 
    /NewShortcut -name MyShortcut
        -dir DesktopFolder
        -target [WindowsVolume]MyApplication.exe 
        -arg /AppArg -icon C:\ShIcon.ico

NoteNote that the property in the -target field must be enclosed in square brackets. There is no backslash required after the property, because the Windows Installer Folder property already contains a trailing backslash ("\")

For WinCE projects:

AdvancedInstaller.com /edit MyProject.aip 
    /NewShortcut -name MyShortcut
        -dir %CE3% 
        -target %InstallDir%\MyApplication.exe 
        -configs Default;Configuration1