Setting Wix icon when advertise is set to no -
seems i'm forever asking questions wix. should last, , it's polishing one.
i'm wanting associated files have icon go them, in progid element, advertise not specified assume defaults no. therefore in wix documentation, states:
for advertised progid, id of icon element. non-advertised progid, id of file containing icon resource.
i'm not understanding how works @ all. set folder contains icon , reference iconindex? part of .wxs i'm working with.
<component id ="myapp.exe" guid="{guid-here}"> <file id="myapp.exe" keypath="yes" source="$(var.myapp.targetdir)myapp.exe" /> <progid id ="myappprogid" description="myapp data files" icon ="logo.ico" iconindex="0"> <extension id ="myapp" contenttype="application/myapp"> <verb id ="open" command="open" targetfile="myapp.exe" argument=""%1""/> </extension> </progid> <icon id="logo.ico" sourcefile="$(var.myapp.targetdir)\icon\logo.ico"/>
i'm struggling find examples or proper documentation on lot of progid functionality wix.
thanks in advance
you need change icon element file , remove iconindex
<component id ="myapp.exe" guid="{guid-here}"> <file id="myapp.exe" keypath="yes" source="$(var.myapp.targetdir)myapp.exe" /> <file id="logo.ico" sourcefile="$(var.myapp.targetdir)\icon\logo.ico"/> <progid id ="myappprogid" description="myapp data files" icon ="logo.ico"> <extension id ="myapp" contenttype="application/myapp"> <verb id ="open" command="open" targetfile="myapp.exe" argument=""%1""/> </extension> </progid>
Comments
Post a Comment