If <util:InternetShortcut> doesn't work for you, one could try a CA for 
refreshing the icons (I think I have seen the behavior you are describing with 
advertised shortcuts). 

[System.Runtime.InteropServices.DllImport("Shell32.dll")]
private static extern int SHChangeNotify(int eventId, int flags, IntPtr item1, 
IntPtr item2);

private const int SHCNE_ASSOCCHANGED = 0x08000000;
        
SHChangeNotify(SHCNE_ASSOCCHANGED, 0, NULL, NULL);


-----Original Message-----
From: Johannes Franke [mailto:j...@jf-it-services.de] 
Sent: Tuesday, November 22, 2011 8:48 AM
To: David Watson; General discussion for Windows InstallerXML toolset.
Subject: Re: [WiX-users] Refresh shortcut icons during setup

Hi David,

sounds great, thank you. I didn't even know about this way to handle shortcuts. 
I'll give it a try and let you know if it helped.

Best regards,
Johannes

-----Ursprüngliche Nachricht-----
Von: David Watson [mailto:dwat...@sdl.com] 
Gesendet: Dienstag, 22. November 2011 11:24
An: General discussion for Windows Installer XML toolset.
Cc: Johannes Franke
Betreff: RE: [WiX-users] Refresh shortcut icons during setup

Have you not tried <util:InternetShortcut>, that's what we use in our setup
for url shortcuts, they use the default browser icon.


-----Original Message-----
From: Michael Janulaitis [mailto:wix-u...@cornerbowl.com] 
Sent: 21 November 2011 20:43
To: General discussion for Windows Installer XML toolset.
Cc: Johannes Franke
Subject: Re: [WiX-users] Refresh shortcut icons during setup

I have been trying to get the shortcut icons for non-exe files to work 
as well but have been unsuccessful.  Over the last 2 days no one on this 
form either knows how to get this to work or are unwilling to help me 
out.  I actually have a licensed version InstallShield 2011 Professional 
but am tired of paying $800 every year to get the latest version so I as 
well am using Wix for my new project.  So far all is good except for 
these darn shortcut icons.  If you figure it out I would really 
appreciate finding out what you learned.

On 11/21/2011 10:47 AM, Johannes Franke wrote:
> Hi community,
>
> does anybody know if there is a way to update icons of shortcuts that were
created in a WiX-based setup?
> As a background info, I'm creating two shortcuts to HTML, one to a local
file, one to an internet URL. Both should reflect the default icon associated
with HTML but instead they show the Windows default file icon until they are
clicked the first time. Some magic in Windows updates the icons.
> My question is, can I utilize this mechanism? My start menu entries are
looking pretty ugly at this time.
> Actually, I have rewritten a setup that was previously maintained in
InstallShield Express. The ISX setup created the shortcuts with the correct
icons right away, but I have DARKened the ISX-created MSI file and found
nothing about shortcuts or icons that helped me understand how thay do it.
>
> Any ideas?
> Thank you!
>
> Best regards,
> Johannes
>
-----------------------------------------------------------------------------
-
> All the data continuously generated in your IT infrastructure
> contains a definitive record of customers, application performance,
> security threats, fraudulent activity, and more. Splunk takes this
> data and makes sense of it. IT sense. And common sense.
> http://p.sf.net/sfu/splunk-novd2d
> _______________________________________________
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users
>



-----------------------------------------------------------------------------
-
All the data continuously generated in your IT infrastructure 
contains a definitive record of customers, application performance, 
security threats, fraudulent activity, and more. Splunk takes this 
data and makes sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-novd2d
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users
SDL PLC confidential, all rights reserved.
If you are not the intended recipient of this mail SDL requests and requires 
that you delete it without acting upon or copying any of its contents, and we 
further request that you advise us.
SDL PLC is a public limited company registered in England and Wales.  
Registered number: 02675207.
Registered address: Globe House, Clivemont Road, Maidenhead, Berkshire SL6 7DY, 
UK.




------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure 
contains a definitive record of customers, application performance, 
security threats, fraudulent activity, and more. Splunk takes this 
data and makes sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-novd2d
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure 
contains a definitive record of customers, application performance, 
security threats, fraudulent activity, and more. Splunk takes this 
data and makes sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-novd2d
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to