Wix 3.5 Icons on the button control

I am trying to create a Help button for my installer, for some reason my icon does not appear on my button. I am currently including an icon image in my main wxs wix file as follows

<WixVariable Id="WixUIInfoIcon" Value="Icons\info.ico"/> 

Then in the wxs file I use the icon. I have a binary definition at the top, as shown below.

 <Binary Id="info" SourceFile="$(var.ICONS)\info.ico" /> 

ICONS is a variable that I created with a file that I checked QUADRUPLE to make sure it was accurate. I use the same technique with a bitmap in another place, and it seems that I have excluded this variable as a known problem.

Then the button itself looks like this:

  <Control Id="info" Type="PushButton" X="101" Y="51" Width="25" Height="23" ToolTip="Info for feature" Icon="yes" FixedSize="yes" IconSize="32"Text="info"> <Publish Property="FEATURE_DESC_SHOW" Value="true"></Publish> <Publish Event="SpawnDialog" Value="PopupDlgFeature">1</Publish> </Control> 

Any ideas on what I'm doing wrong or something that is missing. I feel a little stupid here that I can't figure it out, but sometimes the simplest question can cause the worst problems, am I right? lol

+7
source share
1 answer

Turns out the problem was type conversion ... when I converted my .bmp to .ico, something happened and the image was corrupted. I came back and re-converted the image, and now it works great, sorry for any confusion that I may have caused, and please ignore my inaccuracy in checking this earlier ...

+3
source

All Articles