Suppose I have:

 

                <Icon Id="CCRFileIcon.ico"
SourceFile="$(var.CCRIconSrcFile)"/>

 

In my WIX source file. This produces - when I install - a .ico file
installed to

            C:\Windows\Installer\{CLSID}\CCRFileIcon.ico

 

            Which I can then refer to in a registry setting (say a file icon
specification).

 

The docs for the <Icon> element appear to indicate (along with the ICE
warnings) - that the Icon can only be used for Class, Shortcut, or ProgID
table and ARPPRODUCTICON.

 

            But - since its getting installed to the hard disk, I cannot see
why I cannot refer to it as a property for a <Registry> entry.

 

            So - I tried:

.

            <RegistryKey Key="DefaultIcon" Action="create">

              <RegistryValue Value="[#CCRFileIcon.ico],0" Type="string"
Action="write"/>

            </RegistryKey>

 

But that produces:

>error LGHT0204 : ICE03: Not a valid foreign key; Table: Registry, Column:
Value, Key(s): reg8AF95EB4B1F2B9056909B6CD8B7D7EF4

 

I can see that I'm trying to do is not documented to work, but I'm unclear
why its not possible? What is the preferred way to do this? I'm just
(related to my previous message) trying to write out the registry entries
needed for associations for my file types. I just want the icons to appear
with the files.

 

I'm unclear what the best way to do this is? I could add an 'icons'
directory - and actually install the icons as separate files in a
subdirectory under my application directory>? Is that better than using the
<Icon> WIX element?

 

                        Lewis. 

-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to