04-15-2006 06:29 AM
04-16-2006 01:23 PM - edited 04-16-2006 01:23 PM
@ali mootab wrote:hi.how can i change the file's icon of my program when i install my program? for example when you install adobe reader all .pdf files get the adobe icon and when you uninstall adobe reader the .pdf files icon will change.
Message Edited by rolfk on 04-16-2006 08:24 PM
04-16-2006 01:48 PM
ali mootab wrote:how can i change the file's icon of my program when i install my program? for example when you install adobe reader all .pdf files get the adobe icon and when you uninstall adobe reader the .pdf files icon will change.
Rolf is of course correct.
(1) First you have the icon of the program, which you can set in the application builder. (LabVIEW 8.0 even includes an editor to create icons for windows executables.).
(2) Second, you seem to create a custom file type (via extension) for exclusive use by your program. Here you better do some research to make sure whatever you select does not conflict with any other existing application. For example, it would be bad to select (*.txt, *.xls, *.pdf, *.dat, etc.). 😉
(3) Once the file association is made, you also need to code your LabVIEW application to read the commandline parameters to get to the filename(s) to be opened. Once you do this, you can double-click a data file and it will open with your application. You can even drop a bunch of file ot the icon of the executable. Some instruction on how to do this can be found at the following link: http://sine.ni.com/apps/we/niepd_web_display.display_epd4?p_guid=B123AE0CBCA4111EE034080020E74861&p_...
04-17-2006 07:30 AM
04-17-2006 07:30 AM