04-29-2014 08:08 PM
I want to make an application installer of my project, and I need to include a picture that I'm using in the code.
This picture is used both in the vision assistant and in a low level color pattern match.
What I need is some way to reference this picture in my code, so that when I create the installer and the project is installed on another computer, this file will always get referenced.
Can someone please tell me how to do this?
Thanks in advance!
04-30-2014 02:30 AM
Hi Nando,
that image file should be part of your LabVIEW project tree. Then you can include it in the build settings when creating the EXE.
Using the standard settings the file will be located in the "data" subfolder of your EXE folder and you can load it from there!
04-30-2014 07:56 AM
The thing is that I'm trying to create an installer not just an .EXE.
Should I also add it to the build settings, and if not, where should I add these files?
Thanks in advance!
04-30-2014 08:04 AM
I added the files in the source files portion of the installer, but I don't know how to locate them in labview, so that the files are always referenced, even if the project is installed in another computer.
04-30-2014 08:05 AM
04-30-2014 08:36 AM
I just figured it out, first I need to make the .EXE and then the installer.
04-30-2014 09:52 AM
I just have one more question.
If I make reference to these files in the data folder of the .Exe, and I include the .Exe on the installer, will the vi still make reference to these files if the project is installed on another computer?
04-30-2014 10:26 AM
Your installer should be putting everything in the data folder you need. So it should be fine.
04-30-2014 10:38 AM
The thing that's confusing me is that the path I currently have is not a relative path, and I don't know if the vi in the installer is going to find the files in the data folder if I install the project in another computer.
Please tell me if I have to do something else.
Thanks in advance!
04-30-2014 11:22 AM
I do not want to hijack this thread, but what if I wanted to include a "manual" in my installer and install that to the "Program Files" folder. I have tried adding it to the source files with no luck.
What am I missing here? It seems like it should be simple.
Thanks for your help.
Regards,
mcduff