[wix-users] Change icon's default location

Hoover, Jacob Jacob.Hoover at greenheck.com
Wed Feb 14 10:19:32 PST 2018


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