ManniAT
Posts: 14
Joined: Tue Mar 26, 2013 10:59 am

Icon from installed EXE

Hi,

coming from VS2010 installer I used to select an Icon (for shortcuts, CP Icon, ...) from the EXE (.NET) to be installed.
There I simply selecte "Primary output, the EXE, and therein the Resource).

Desktop shortcut icons at least show the primary Icon if I specify none.

But - how can I specify a different Icon (If an assembly contains more Icons, or if I include a resource assembly holding icons I want to use)?
Or how to select the Control Panel Icon from a resource?

Manfred
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Icon from installed EXE

Hi Manfred,

In order to change the icons in an Advanced Installer project you can go in the following pages:
- "Control Panel Icon" in the Product Details page
- "EXE Icon" in the Media page (the icon of the EXE package)
- "Icon File" for a shortcut in the Files and Folders page (double-click on the shortcut and click on the [...] button from the right of the "Icon File" field)

The icon can be chosen from a file that is available on the disk (i.e. ".ico", ".exe").

Let us know if this helped.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
ManniAT
Posts: 14
Joined: Tue Mar 26, 2013 10:59 am

Re: Icon from installed EXE

Hi,

does this mean I have to choose the "Source-File" for Icons.
In other words (for the shortcut example).
The shorcut leads to APPDIR\MyProgramm.exe
And the icon has to be set to C:\MyProjects\MyProgramm\bin\release\MyProgramm.exe

Does this mean that AI "knows" that this is the installed file and not the file in C:\MyProjects...??

And how is this handled for multiple configurations (like debug / relase)?
The installed source changes from
C:\MyProjects\MyProgramm\bin\RELEASE\MyProgramm.exe
to
C:\MyProjects\MyProgramm\bin\DEBUG\MyProgramm.exe


Manfred
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Icon from installed EXE

Hi Manfred,
does this mean I have to choose the "Source-File" for Icons.
In other words (for the shortcut example).
The shortcut leads to APPDIR\MyProgramm.exe
And the icon has to be set to C:\MyProjects\MyProgramm\bin\release\MyProgramm.exe
If you don't choose and icon file for a shortcut it will automatically use the icon of the source file (i.e. the icon of the "MyProgramm.exe" file will be automatically used by its shortcut).
Does this mean that AI "knows" that this is the installed file and not the file in C:\MyProjects...??
Yes, Advanced Installer will set the icon path to "APPDIR\MyProgramm.exe", not to "C:\MyProjects\..".
And how is this handled for multiple configurations (like debug / relase)?
The installed source changes from
C:\MyProjects\MyProgramm\bin\RELEASE\MyProgramm.exe
to
C:\MyProjects\MyProgramm\bin\DEBUG\MyProgramm.exe
As I mentioned above, if no icon is manually set for a shortcut, then it will automatically use the icon of its source file. If the source file is replaced in the project, the shortcut will change its icon according to the new source.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
ManniAT
Posts: 14
Joined: Tue Mar 26, 2013 10:59 am

Re: Icon from installed EXE

And how is this handled for multiple configurations (like debug / relase)?
The installed source changes from
C:\MyProjects\MyProgramm\bin\RELEASE\MyProgramm.exe
to
C:\MyProjects\MyProgramm\bin\DEBUG\MyProgramm.exe
As I mentioned above, if no icon is manually set for a shortcut, then it will automatically use the icon of its source file. If the source file is replaced in the project, the shortcut will change its icon according to the new source.

Best regards,
Eusebiu
Yes - but what if I have multiple Icons in my Source file and want to use (just for an example) the third Icon and not the first.
I VS Installer I just selected "ProjectOutput/MyExe.exe" and select the Icon Resource.

But with AI I either have to choose a specific file (which makes a problem with different build configurations)
OR set no Icon manually - which results in the use of the first Icon in the exe.

Not a stopper - but a "step back" from what I used to do with (the much more primitive) VS Installation solution.

Thank you for the answers
Manfred
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Icon from installed EXE

Hi Manfred,

In case, you have multiple builds and you want to select different shortcut icons for each build you can go in the Table Editor page, "Shortcut" table, right-click on your shortcut and choose the "Edit Row" option. In the newly appeared dialog select the "Icon_" column, select the build you want from the "Build" combobox, check the "Use specific value" option and enter the full path to the icon that you want to use for the currently selected build.

Let us know if this is your scenario, otherwise please give us more details.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”