Hi David,

great, that works like a charm! I have two links, one to a local HTML file that 
should be viewed in the browser of course, and another pointing to an internet 
URL. What surprised me most is that WiX seems to download the favicon.ico site 
default icon and uses it for the start menu entry - even better than I thought!
Thanks again for pointing me in the right direction.

To enable the WixUtilExtension that is needed fort he util:InternetShortcut 
element in Visual Studio 2010, right-click the project node, select "Add 
References", and select WixUtilExtension, then click OK. If you are not using 
Visual Studio, you can also specify the extension with candle's -ext parameter, 
that should work the same way.

Here's the excerpt from my wxs file:

   <Directory Id="TARGETDIR" Name="SourceDir">
      <Directory Id="ProgramMenuFolder">
        <Directory Id="StartMenuProductFolder" Name="$(var.Product.Name)"> <!-- 
this creates the folder for the product in the Programs start menu -->
          <Component Id="WebLink" Guid="73df7865-df63-41bd-a065-c5929efdbed6">
            <util:InternetShortcut Id="TapicallDe" Name="www.tapicall.de" 
Target="http://www.tapicall.de"; Type="url"/>
            <RegistryValue Root="HKCU" 
Key="Software\$(var.Company.Name)\$(var.Product.Name)" Name="installed" 
Type="integer" Value="1" KeyPath="yes"/> <!-- needed for specifying a key path 
-->
          </Component>
        </Directory>
      </Directory>

      <Directory Id="ProgramFilesFolder">
        <Directory Id="INSTALLLOCATION" Name="$(var.Product.Folder)">
          <Component Id="Main" Guid="5715e7b6-47be-4ab4-aa57-aafc4fcbc9f5">
            <File Id="TAPICall_Core.exe" Name="TAPICall_Core.exe" 
Source="$(var.Setup.SourceFiles)\TAPICall_Core.exe" KeyPath="yes">
              <Shortcut Id="TAPICallShortcut" Advertise="yes" 
Directory="StartMenuProductFolder" WorkingDirectory="INSTALLLOCATION" 
Icon="TAPICall.ico" Name="$(var.Product.Name.Shortcut)" 
Description="$(var.Product.NameFull)"/>
            </File>
            <File Id="language.xml" Name="language.xml" 
Source="$(var.Setup.SourceFiles)\language.xml"/>
            <File Id="LicenseCheck.exe" Name="LicenseCheck.exe" 
Source="$(var.Setup.SourceFiles)\LicenseCheck.exe"/>
            <File Id="TAPICall.lic" Name="TAPICall.lic" 
Source="$(var.Setup.SourceFiles)\$(var.License.Source)\TAPICall.lic"/>          
  <RemoveFolder Id="RemoveProgramFilesFolder" 
Directory="StartMenuProductFolder" On="uninstall"/>
            <RemoveFolder Id="RemoveProgramFilesFolder" 
Directory="StartMenuProductFolder" On="uninstall"/> <!-- ensure the start menu 
product folder is removed on uninstallation -->
          </Component>

          <!-- release notes HTML files -->
          <Component Id="RelNotes" Guid="DE1F3A1C-52BC-42AF-BB57-066C840A69EC">
            <File Id="ReleaseNotes" Name="Release Notes.htm" 
Source="$(var.Setup.SourceFiles)\Release Notes.htm" KeyPath="yes"/>
            <File Id="ReleaseNotesEn" Name="Release Notes EN.htm" 
Source="$(var.Setup.SourceFiles)\Release Notes.htm"/>
            <util:InternetShortcut Id="RelNotesDe" Name="Release Notes (DE)" 
Directory="StartMenuProductFolder" Target="[#ReleaseNotes]" Type="link"/> <!-- 
this references the German release notes defined 2 lines above -->
          </Component>

          [... etc ...]


Hope this helps others understand how it can be done.
The result is a new folder "TAPICall" in the start menu beneath "All Programs", 
containing three links:

1: link to the Program with the icon I put as an .ico file in the setup sources
2: link to the release notes, using the Internet Explorer icon (if Mozilla were 
the default browser, I assume, the Firefox icon would appear instead)
3: link to the manufacturer web site, using the web site's favicon! Fancy thing!

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

Reply via email to