LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I add an icon to my executable?

I've tried using the editor, i've tried using a free .ico from web... it doesn't matter. In the end, the .exe will look as below, in the attached capture.

 

Capture.PNG

0 Kudos
Message 21 of 31
(954 Views)

This is an example of an Icon I built with IconEdit2 -- it is for a test routine we called "Cinnamon" (I just pasted the .ico file on my blue desktop).  This happens to be a 256 x 256 pixel icon (to make the image pretty).

Cinnamon Demo icon.png

Bob Schor

 

 

 

0 Kudos
Message 22 of 31
(933 Views)

Which version of LabVIEW are you using?

 

Please post your .ico file.

 

 

George Zou
0 Kudos
Message 23 of 31
(927 Views)

It looks cool. Did you have any issues seeing the icon in the finished executable? 

0 Kudos
Message 24 of 31
(919 Views)

I'm using LabVIEW 2020.

 

"Icon" is the one downloaded from the web which worked so far up to the moment i've written to this topic.

"TeMaCoN_Icon" is the one developed in labview icon editor.

Is there anything else i should check in any other submenu ?

 

None of them are working right now.

 

builder.PNG

Download All
0 Kudos
Message 25 of 31
(911 Views)

I find LabVIEW frustrating inconsistent with icons. Sometimes I have found that the first icon you try is the only one that works, for evermore. Sometimes the icon doesn't appear at all. I don't have any insight into what's causing this. Some people don't appear to have any issues, which in itself might be a clue. Perhaps the root cause is something else.

 

0 Kudos
Message 26 of 31
(902 Views)

It seems LabVIEW remembers the old icon.

Even "Clean" the build doesn't work.

 

I have to create a new build script to update the icon.

 

George Zou
0 Kudos
Message 27 of 31
(889 Views)

George,

 

     Your post reminded me of a problem I haven't thought about in years!  Particularly when creating icons, sometimes things go awry, and updates for the Icons don't seem to work.  Turns out that Windows has an "Icon Cache", so if you edit an Icon, you might have a lovely Icon, but it won't be "attached" to your executable because Windows says "Oh, I already have an Icon for that, I'll just use the one in the Cache".

 

     Do a Web search for "Windows Icon Cache", and you'll find where "IconCache.db" is hidden in your Profile.  Follow the instructions to delete it and see if that fixes the problem.  [It does entail a trivial delay when you reboot and Windows rebuilds the cache, but you will probably not notice it ...].

 

Bob Schor

0 Kudos
Message 28 of 31
(869 Views)

iconcache_48.db and iconcache_32.db haven't modified for ~3 years.

So iconcache is likely not the problem.

 

 

George Zou
0 Kudos
Message 29 of 31
(863 Views)

@zou wrote:

iconcache_48.db and iconcache_32.db haven't modified for ~3 years.

So iconcache is likely not the problem.

 

 


I would not make that assumption with MS OS.

---------------------------------------------
Former Certified LabVIEW Developer (CLD)
0 Kudos
Message 30 of 31
(830 Views)