[wix-users] Change icon's default location

Gustavo Calheiros gustavorlc at gmail.com
Sat Feb 17 01:24:50 PST 2018


Hello.

I could solve my problem by removing the "Icon" object from the "Shortcut"
tag, so that it will get the icon directly from the exe where it points to.

It means that any reference to "Icon" will point to the windows/Installer
path.

Thanks for the help

2018-02-17 0:17 GMT+01:00 Blair Murri <osito at live.com>:

> On upgrades I reinstall (overwrite) the shortcuts. Never had a problem
> with the icons.
>
>
>
> Sent from my Windows 10 phone
>
>
>
> *From: *Gustavo Calheiros via wix-users <wix-users at lists.wixtoolset.org>
> *Sent: *Thursday, February 15, 2018 2:56 AM
> *To: *Hoover, Jacob <Jacob.Hoover at greenheck.com>
> *Cc: *Gustavo Calheiros <gustavorlc at gmail.com>; WiX Toolset Users Mailing
> List <wix-users at lists.wixtoolset.org>
> *Subject: *Re: [wix-users] Change icon's default location
>
>
>
> 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
> <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/
> >
>
> ____________________________________________________________________
> WiX Toolset Users Mailing List provided by FireGiant
> http://www.firegiant.com/
>
>
>



More information about the wix-users mailing list