Update Shortcut Command Option
Command Syntax
/UpdateShortcut -name <shortcut_name> -dir <folder_path> [-advertised] [-runasadmin] [-pin_to_taskbar] [-wkdir <folder_path>] [-arg <arguments>] [-desc <description>] [-icon <file_path>] [-index <icon_index>] [-mode {normal|minimized|maximized}] [-configs <configurations_list>]
This command updates a file shortcut.
Parameters:
- -name <shortcut_name>
- The name of the shortcut file.
- -dir <folder_path>
- The folder containing the shortcut file.
- [-advertised]
- Specify whether the shortcut will be advertised or not.
- [-runasadmin]
- Runs the shortcut as an administrator while protecting your computer from unauthorized activity.
- [-pin_to_taskbar]
- The shortcut will be pinned to Taskbar
- [-wkdir <folder_path>]
- The shortcut's Working folder.
- [-arg <arguments>]
- The shortcut arguments.
For the shortcut arguments, you can escape a " character by adding another quote next to it: "". The external quotes are removed by command line interpreter and are not passed on to AdvancedInstaller.com tool.
- [-desc <description>]
- The shortcut's description.
- [-icon <file_path>]
- The shortcut icon's path.
- [-index <icon_index>]
- Specifies which icon to display from a file containing more then one icon. 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 /UpdateShortcut -name MyShortcut -dir DesktopFolder -arg """C:\My Arguments Folder\MyArgFile.arg"" /AppArg" -icon C:\ShIcon.ico