<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Adding Icon Resources to a LV-built Executable in LabVIEW</title>
    <link>https://ni.lithium.com/t5/LabVIEW/Adding-Icon-Resources-to-a-LV-built-Executable/m-p/3952854#M1124792</link>
    <description>&lt;P&gt;Yes, but the data from them needs to be incorporated into the executable somehow.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Mike...&lt;/P&gt;</description>
    <pubDate>Thu, 25 Jul 2019 23:56:09 GMT</pubDate>
    <dc:creator>mikeporter</dc:creator>
    <dc:date>2019-07-25T23:56:09Z</dc:date>
    <item>
      <title>Adding Icon Resources to a LV-built Executable</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Adding-Icon-Resources-to-a-LV-built-Executable/m-p/3952765#M1124772</link>
      <description>&lt;P&gt;I am creating a program that is going to be able to open multiple file types and I would like to have each file type to have its own icon. I found how to configure it in the registry, but it depends on the executable having multiple icon resources built into it. Is there a way to do that in LV?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Mike...&lt;/P&gt;</description>
      <pubDate>Thu, 25 Jul 2019 20:32:18 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Adding-Icon-Resources-to-a-LV-built-Executable/m-p/3952765#M1124772</guid>
      <dc:creator>mikeporter</dc:creator>
      <dc:date>2019-07-25T20:32:18Z</dc:date>
    </item>
    <item>
      <title>Re: Adding Icon Resources to a LV-built Executable</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Adding-Icon-Resources-to-a-LV-built-Executable/m-p/3952847#M1124789</link>
      <description>&lt;P&gt;You should be able to use a few .ico files for your files.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 25 Jul 2019 23:26:48 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Adding-Icon-Resources-to-a-LV-built-Executable/m-p/3952847#M1124789</guid>
      <dc:creator>zou</dc:creator>
      <dc:date>2019-07-25T23:26:48Z</dc:date>
    </item>
    <item>
      <title>Re: Adding Icon Resources to a LV-built Executable</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Adding-Icon-Resources-to-a-LV-built-Executable/m-p/3952854#M1124792</link>
      <description>&lt;P&gt;Yes, but the data from them needs to be incorporated into the executable somehow.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Mike...&lt;/P&gt;</description>
      <pubDate>Thu, 25 Jul 2019 23:56:09 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Adding-Icon-Resources-to-a-LV-built-Executable/m-p/3952854#M1124792</guid>
      <dc:creator>mikeporter</dc:creator>
      <dc:date>2019-07-25T23:56:09Z</dc:date>
    </item>
    <item>
      <title>Re: Adding Icon Resources to a LV-built Executable</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Adding-Icon-Resources-to-a-LV-built-Executable/m-p/3952857#M1124793</link>
      <description>&lt;P&gt;Are you sure?&lt;/P&gt;
&lt;P&gt;Is your OS Win7, or 10?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 26 Jul 2019 00:07:32 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Adding-Icon-Resources-to-a-LV-built-Executable/m-p/3952857#M1124793</guid>
      <dc:creator>zou</dc:creator>
      <dc:date>2019-07-26T00:07:32Z</dc:date>
    </item>
    <item>
      <title>Re: Adding Icon Resources to a LV-built Executable</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Adding-Icon-Resources-to-a-LV-built-Executable/m-p/3952866#M1124795</link>
      <description>&lt;P&gt;You might try something like &lt;A href="http://www.angusj.com/resourcehacker/" target="_self"&gt;Resource Hacker&lt;/A&gt;, run at post-build to add your custom ICO files. The command below will add an additional icon file to the exe:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;ResourceHacker.exe -open "YourApp.exe" -save "ModifiedApp.exe" -action add -res "CustomIcon.ico" -mask ICONGROUP,2,&lt;/PRE&gt;
&lt;P&gt;The number after ICONGROUP should be incremented for each icon added. The icon added by LabVIEW is 1.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can also script the above to add multiple icons at once (untested):&lt;/P&gt;
&lt;PRE&gt;[FILENAMES]
Exe=    YourApp.exe
SaveAs= ModifiedApp.exe
Log=    Log.log	
[COMMANDS]
-add     CustomIcon1.ico, ICONGROUP,2,&lt;BR /&gt;-add     CustomIcon2.ico, ICONGROUP,3,&lt;BR /&gt;-add     CustomIcon3.ico, ICONGROUP,4,&lt;/PRE&gt;</description>
      <pubDate>Fri, 26 Jul 2019 01:24:45 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Adding-Icon-Resources-to-a-LV-built-Executable/m-p/3952866#M1124795</guid>
      <dc:creator>MichaelBalzer</dc:creator>
      <dc:date>2019-07-26T01:24:45Z</dc:date>
    </item>
    <item>
      <title>Re: Adding Icon Resources to a LV-built Executable</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Adding-Icon-Resources-to-a-LV-built-Executable/m-p/3952867#M1124796</link>
      <description>&lt;P&gt;I remember 20+ years ago adding an .ico to a VB built executable.&amp;nbsp; I don't remember how I did it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I googled and found this.&amp;nbsp; &lt;A href="https://command-tab.com/2008/07/21/how-to-combine-ico-files-into-a-windows-exe/" target="_blank"&gt;https://command-tab.com/2008/07/21/how-to-combine-ico-files-into-a-windows-exe/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I wasn't messing with multiple icons, nor am I sure this is exactly what I did.&amp;nbsp; But it seems similar in principle.&lt;/P&gt;</description>
      <pubDate>Fri, 26 Jul 2019 01:28:11 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Adding-Icon-Resources-to-a-LV-built-Executable/m-p/3952867#M1124796</guid>
      <dc:creator>RavensFan</dc:creator>
      <dc:date>2019-07-26T01:28:11Z</dc:date>
    </item>
    <item>
      <title>Re: Adding Icon Resources to a LV-built Executable</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Adding-Icon-Resources-to-a-LV-built-Executable/m-p/3954889#M1125512</link>
      <description>&lt;P&gt;Thanks for pointing me towards ResourceHacker. I have managed to get the icon files included into the executable. The problem now is that that all the file types associated with the executable have the same icon. Using a utility I found on line, I can change the icon that is associated with them, but they all change at once. Is there some sort of resource or setting that tells Windows to let the different file types to have different icons?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Mike...&lt;/P&gt;</description>
      <pubDate>Wed, 31 Jul 2019 18:50:58 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Adding-Icon-Resources-to-a-LV-built-Executable/m-p/3954889#M1125512</guid>
      <dc:creator>mikeporter</dc:creator>
      <dc:date>2019-07-31T18:50:58Z</dc:date>
    </item>
    <item>
      <title>Re: Adding Icon Resources to a LV-built Executable</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Adding-Icon-Resources-to-a-LV-built-Executable/m-p/3954925#M1125531</link>
      <description>&lt;P&gt;I don't think the executable would be what defines what file extensions are connected to what icon.&lt;/P&gt;
&lt;P&gt;I think it would be some sort of Windows registry setting that defines what icons are associated with particular file extensions.&amp;nbsp; Think of how Excel has different file types with different extensions, but click on them and they all still go to Excel.exe.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I don't have any details on this, but thinking this might point you in the correct direction.&lt;/P&gt;</description>
      <pubDate>Wed, 31 Jul 2019 20:09:39 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Adding-Icon-Resources-to-a-LV-built-Executable/m-p/3954925#M1125531</guid>
      <dc:creator>RavensFan</dc:creator>
      <dc:date>2019-07-31T20:09:39Z</dc:date>
    </item>
    <item>
      <title>Re: Adding Icon Resources to a LV-built Executable</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Adding-Icon-Resources-to-a-LV-built-Executable/m-p/3958223#M1126670</link>
      <description>&lt;P&gt;Hi Mike&lt;/P&gt;
&lt;P&gt;I've been working on a similar issue. I believe the icons in the executable are purely related to the executable itself. You can see them in Resource Hacker or edit them as layers in GIMP. As a rule there seem to be 12 layers; 16 colour, 256 colour and 24 bit at 16,32,48 and 256 pixels which I believe are used for the different instances of the icon in Windows.&lt;/P&gt;
&lt;P&gt;This article &lt;A href="https://www.howtogeek.com/howto/12383/change-a-file-types-icon-in-windows-7/" target="_self"&gt;change-a-file-types-icon-in-windows&lt;/A&gt; details a free utility that will allow a particular icon to be associated with each file type. Hopefully that helps.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;NeilR&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Aug 2019 10:05:25 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Adding-Icon-Resources-to-a-LV-built-Executable/m-p/3958223#M1126670</guid>
      <dc:creator>NeilR</dc:creator>
      <dc:date>2019-08-09T10:05:25Z</dc:date>
    </item>
    <item>
      <title>Re: Adding Icon Resources to a LV-built Executable</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Adding-Icon-Resources-to-a-LV-built-Executable/m-p/3958231#M1126676</link>
      <description>&lt;P&gt;LV comes with an icon editor that can add as many layers/sizes as you'd like. It's called IconEdit and is located somewhere under the NI folder. It's the one that starts if you in your Build-project untick "default icon" and click Icon Editor.&lt;/P&gt;
&lt;P&gt;/Y&lt;/P&gt;</description>
      <pubDate>Fri, 09 Aug 2019 10:41:34 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Adding-Icon-Resources-to-a-LV-built-Executable/m-p/3958231#M1126676</guid>
      <dc:creator>Yamaeda</dc:creator>
      <dc:date>2019-08-09T10:41:34Z</dc:date>
    </item>
    <item>
      <title>Re: Adding Icon Resources to a LV-built Executable</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Adding-Icon-Resources-to-a-LV-built-Executable/m-p/3958234#M1126678</link>
      <description>&lt;P&gt;Hi Yamaeda&lt;/P&gt;
&lt;P&gt;Yes true enough, but it's &lt;U&gt;very&lt;/U&gt; limited and from what I can see you can't take a 256 image and easily resize for 48,32,16 you have to redraw each time. &lt;img id="smileysad" class="emoticon emoticon-smileysad" src="https://ni.lithium.com/i/smilies/16x16_smiley-sad.gif" alt="Smiley Sad" title="Smiley Sad" /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Aug 2019 10:50:50 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Adding-Icon-Resources-to-a-LV-built-Executable/m-p/3958234#M1126678</guid>
      <dc:creator>NeilR</dc:creator>
      <dc:date>2019-08-09T10:50:50Z</dc:date>
    </item>
    <item>
      <title>Re: Adding Icon Resources to a LV-built Executable</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Adding-Icon-Resources-to-a-LV-built-Executable/m-p/3958275#M1126693</link>
      <description>&lt;P&gt;Yes the distributed icon editor that comes with LabVIEW is an old LabWindows/CVI program. At that time 256 color icons and 32*32 pixel icons where about the hottest thing Windows would support. I'm still not sold on 48*48 or 64*64 to be necessary in any way nor do I see a lot of use for 10 million color icons.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;That said the registry association as used in Windows definitely allows to define for each filetype an individual icon. The problem here is that there are several possibilities to define such icon associations and they all involve a multi stage setup.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The original principle is that you define a file extension specification in HKR\.&amp;lt;your file extension&amp;gt; whose key value defines a filetype name. Then the key value for&amp;nbsp; HKR\&amp;lt;filetype name&amp;gt;\DefaultIcon contains the path to the icon resource. This can be directly an icon file somewhere in the file system or it can point to a dll or exe file, with an appended icon resource ID after a comma.&lt;/P&gt;
&lt;P&gt;It's definitely NOT necessary (but possible through a resource compiler or editor) to add the icons to your built executable as the path can also simply point to an icon somewhere in the filesystem, such as an icon file in a support directory in your application installation directory.&lt;/P&gt;
&lt;P&gt;Under HKR\&amp;lt;filetype name&amp;gt;\shell you have a list of keys which define different actions by well know verbs such as open, print, etc. Under there you have another key with the name "command" whose value defines the shell command to execute with the filepath of the executable to use, or optionally a registered ClassID instead which must be present elsewhere in the registry for the actual executable. The value %1 in the command is replaced with the file name that was activated by the user.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It's not exactly rocket science to figure out by simply looking at the filetypes LabVIEW registers for its own filetypes but it is definitely approaching relational database complexity&amp;nbsp;&lt;img id="smileyvery-happy" class="emoticon emoticon-smileyvery-happy" src="https://ni.lithium.com/i/smilies/16x16_smiley-very-happy.gif" alt="Smiley Very Happy" title="Smiley Very Happy" /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Aug 2019 12:04:43 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Adding-Icon-Resources-to-a-LV-built-Executable/m-p/3958275#M1126693</guid>
      <dc:creator>rolfk</dc:creator>
      <dc:date>2019-08-09T12:04:43Z</dc:date>
    </item>
    <item>
      <title>Re: Adding Icon Resources to a LV-built Executable</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Adding-Icon-Resources-to-a-LV-built-Executable/m-p/3958289#M1126698</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://ni.lithium.com/t5/user/viewprofilepage/user-id/20927"&gt;@NeilR&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hi Yamaeda&lt;/P&gt;
&lt;P&gt;Yes true enough, but it's &lt;U&gt;very&lt;/U&gt; limited and from what I can see you can't take a 256 image and easily resize for 48,32,16 you have to redraw each time. &lt;img id="smileysad" class="emoticon emoticon-smileysad" src="https://ni.lithium.com/i/smilies/16x16_smiley-sad.gif" alt="Smiley Sad" title="Smiley Sad" /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Yes, true. &lt;span class="lia-unicode-emoji" title=":confused_face:"&gt;😕&lt;/span&gt; The resizing i do in e.g. GIMP and simply copy/paste the buffer. You can technically create icons in GIMP but it has some issues of its own.&lt;/P&gt;
&lt;P&gt;/Y&lt;/P&gt;</description>
      <pubDate>Fri, 09 Aug 2019 12:21:20 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Adding-Icon-Resources-to-a-LV-built-Executable/m-p/3958289#M1126698</guid>
      <dc:creator>Yamaeda</dc:creator>
      <dc:date>2019-08-09T12:21:20Z</dc:date>
    </item>
    <item>
      <title>Re: Adding Icon Resources to a LV-built Executable</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Adding-Icon-Resources-to-a-LV-built-Executable/m-p/3958747#M1126855</link>
      <description>&lt;P&gt;For icon creation I've found &lt;A href="https://icofx.ro/" target="_self"&gt;IcoFX&lt;/A&gt; is good (&lt;A href="https://portableapps.com/apps/graphics_pictures/icofx_portable" target="_self"&gt;version 1.6&lt;/A&gt; is freeware, current versions are paid). It can generate all icon colour + size combinations from a single image in one batch process. The results are good enough for 48x48 and most 32x32, but some 32x32 and 16x16 icons may need some hand edits depending on the source image.&lt;/P&gt;</description>
      <pubDate>Mon, 12 Aug 2019 03:25:25 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Adding-Icon-Resources-to-a-LV-built-Executable/m-p/3958747#M1126855</guid>
      <dc:creator>MichaelBalzer</dc:creator>
      <dc:date>2019-08-12T03:25:25Z</dc:date>
    </item>
    <item>
      <title>Re: Adding Icon Resources to a LV-built Executable</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Adding-Icon-Resources-to-a-LV-built-Executable/m-p/3982018#M1136499</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;This is the last post of Mike Porter, and his super cool blog named notatamelion is down.&lt;/P&gt;
&lt;P&gt;Does anyone has any news of him ?&lt;/P&gt;
&lt;P&gt;Thx,&lt;/P&gt;</description>
      <pubDate>Sat, 26 Oct 2019 13:51:15 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Adding-Icon-Resources-to-a-LV-built-Executable/m-p/3982018#M1136499</guid>
      <dc:creator>PragmaTest</dc:creator>
      <dc:date>2019-10-26T13:51:15Z</dc:date>
    </item>
  </channel>
</rss>

