[wix-users] Change icon's default location

Gustavo Calheiros gustavorlc at gmail.com
Thu Feb 15 02:55:59 PST 2018

I tried to use a .EXE as icon resource, but in this case the .EXE is also
copied to the GUID path. I guess with the DLL would be the same.

2018-02-14 19:19 GMT+01:00 Hoover, Jacob <Jacob.Hoover at greenheck.com>:

> Use a resource only DLL which has embedded icons which you install?
> -----Original Message-----
> From: wix-users [mailto:wix-users-bounces at lists.wixtoolset.org] On Behalf
> Of Gustavo Calheiros via wix-users
> Sent: Wednesday, February 14, 2018 12:02 PM
> To: wix-users at lists.wixtoolset.org
> Cc: Gustavo Calheiros <gustavorlc at gmail.com>
> Subject: [wix-users] Change icon's default location
> Hello
> I have a project where I definied one icon as below:
> <Icon Id="myicon.ico" SourceFile="myicon.ico" />
> When the installation finishes, this Icon is stored at
> "C:\Windows\Installer\<GUID>\myicon.ico"
> So any shortcuts created by the user will reference an icon pointed by
> this path with GUID.
> The problem is that when I install a new version of the software, another
> GUID will be generated, and despite the fact that the shortcut will still
> work, its icon will be blank (new installation erases old GUID path and
> creates a new one, making the old icon path invalid).
> Question: How to make my ICON be stored in the folder where my program is
> installed, instead of this GUID path?
> Thanks in advance.
> ____________________________________________________________________
> WiX Toolset Users Mailing List provided by FireGiant
> http://www.firegiant.com/

More information about the wix-users mailing list