patrickmast
Posts: 25
Joined: Fri Apr 17, 2009 4:16 pm

Can not add icon with /NewShortcut command

Hello,

I use this command to add a shortcut to my project:

Code: Select all

AdvancedInstaller.com" /edit WinFakt.aip /NewShortcut'
-name "WinFakt!"
-desc "WinFakt!"
-target "APPDIR\WinFakt.exe"
-dir DesktopFolder'
-wkdir APPDIR'
-icon "W:\wf.8.5\EXE\Icons\wf_WinFakt.ico"
The setup.exe builds OK but when I run the installation, the shortcut does not get its icon. When I right click on the icon and want to look at the icon, I get this message:
Image

What can I do?

Thanks!

Patrick
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Can not add icon with /NewShortcut command

Hi Patrick,

The command line syntax doesn't appear to be correct. Here is the user guide article with the correct syntax and a couple of correct examples.
In your command line there are a couple of apostrophes that shouldn't be there. Just remove them and try again.

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
patrickmast
Posts: 25
Joined: Fri Apr 17, 2009 4:16 pm

Re: Can not add icon with /NewShortcut command

mihai.petcu wrote:The command line syntax doesn't appear to be correct. Here is the user guide article with the correct syntax and a couple of correct examples.
In your command line there are a couple of apostrophes that shouldn't be there. Just remove them and try again.
Thank you. The quotes where there because of COPY/PASTE ;-))

The command line I use is:
AdvancedInstaller.com" /edit WinFakt.aip /NewShortcut
-name "WinFakt!"
-desc "WinFakt!"
-target "APPDIR\WinFakt.exe"
-dir DesktopFolder
-wkdir APPDIR
-icon "W:\wf.8.5\EXE\Icons\wf_WinFakt.ico"

But still no icon ;-)

Patrick
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Can not add icon with /NewShortcut command

Hi Patrick,

We have tested this and unfortunately cannot replicate the issue.

Can you please try the following:
- changing the icon
- adding the shortcut in the Desktop folder from the Advanced Installer GUI
- installing the package on a different computer

If all above prove inconclusive, please send us the .AIP ( project file ) and a verbose log of the installation to support at advancedinstaller dot com so we can investigate them.

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”