- Create a new enterprise project
- Save in parent folder of Advanced Installer installation directory as "test.aip"
- Add file "test.aip" to project on "Files and Folders" in "Application Folder"
- Save project, close Advanced Installer
- Open cmd.exe, cd to folder with "test.aip"
- Execute the following in cmd.exe (replace "AdvancedInstaller_6.5.2\" with actual AI folder name):
Code: Select all
AdvancedInstaller_6.5.2\AdvancedInstaller.com /edit test.aip /DelShortcut -name "test1" -dir "SHORTCUTDIR"
AdvancedInstaller_6.5.2\AdvancedInstaller.com /edit test.aip /NewShortcut -name "test1" -dir "SHORTCUTDIR" -target "APPDIR\test.aip" -icon "AdvancedInstaller_6.5.2\AdvancedInstaller.exe"
AdvancedInstaller_6.5.2\AdvancedInstaller.com /edit test.aip /DelShortcut -name "test2" -dir "SHORTCUTDIR"
AdvancedInstaller_6.5.2\AdvancedInstaller.com /edit test.aip /NewShortcut -name "test2" -dir "SHORTCUTDIR" -target "APPDIR\test.aip" -icon "AdvancedInstaller_6.5.2\AdvancedInstaller.exe"
Code: Select all
> AdvancedInstaller_6.5.2\AdvancedInstaller.com /edit test.aip /DelShortcut -name "test1" -dir "SHORTCUTDIR"
> AdvancedInstaller_6.5.2\AdvancedInstaller.com /edit test.aip /NewShortcut -name "test1" -dir "SHORTCUTDIR" -target "APPDIR\test.aip" -icon "AdvancedInstaller_6.5.2\AdvancedInstaller.exe"
> AdvancedInstaller_6.5.2\AdvancedInstaller.com /edit test.aip /DelShortcut -name "test2" -dir "SHORTCUTDIR"
> AdvancedInstaller_6.5.2\AdvancedInstaller.com /edit test.aip /NewShortcut -name "test2" -dir "SHORTCUTDIR" -target "APPDIR\test.aip" -icon "AdvancedInstaller_6.5.2\AdvancedInstaller.exe"
Code: Select all
> AdvancedInstaller_6.5.2\AdvancedInstaller.com /edit test.aip /DelShortcut -name "test1" -dir "SHORTCUTDIR"
Exception - A row with this key [id \AdvancedInstaller_6.5.2\AdvancedInstaller.exe#0] was already registered in the table.
> AdvancedInstaller_6.5.2\AdvancedInstaller.com /edit test.aip /NewShortcut -name "test1" -dir "SHORTCUTDIR" -target "APPDIR\test.aip" -icon "AdvancedInstaller_6.5.2\AdvancedInstaller.exe"
Exception - A row with this key [id \AdvancedInstaller_6.5.2\AdvancedInstaller.exe#0] was already registered in the table.
> AdvancedInstaller_6.5.2\AdvancedInstaller.com /edit test.aip /DelShortcut -name "test2" -dir "SHORTCUTDIR"
Exception - A row with this key [id \AdvancedInstaller_6.5.2\AdvancedInstaller.exe#0] was already registered in the table.
> AdvancedInstaller_6.5.2\AdvancedInstaller.com /edit test.aip /NewShortcut -name "test2" -dir "SHORTCUTDIR" -target "APPDIR\test.aip" -icon "AdvancedInstaller_6.5.2\AdvancedInstaller.exe"
Exception - A row with this key [id \AdvancedInstaller_6.5.2\AdvancedInstaller.exe#0] was already registered in the table.
What is /NewShortcut supposed to do when the shortcut already exists?
With best regards
Clemens Anhuth
FOLLOW US
Get the latest news in Application Packaging