01-23-2015 12:34 PM
I am having a huge problem building an installer. To demonstrate I have created a very simple project (see attached zip file).
It consists of a VI that does very little
a text file named text.txt which the VI reads and displays
a folder named tree db with three subfolders. Each of the subfolders has a text file named leaf
My goal is to build the project, build an installer and run the installer on a target machine. The result should be that the target machine will have the exe, the text file and the folder tree (as well as the LV runtime, of course).
I have managed to do this in the past but for some reason I am really floundering. First, if I put the folder in the build I get a name conflict even though I have checked "preserve disk heirarchy and then in the install spec I don't see how to include the tree db folder and the text file.
I have tried everything I can think of without success. Can anyone help?
Regards,
David
01-23-2015 06:09 PM
01-26-2015 12:21 PM
Thanks for your suggestion but it didn't work. The data files do not get copied to the destination directory. If you could put up a build spec for a very simple project (one vi and one trivial data file) it would be extremely helpful.
David
01-27-2015 04:26 PM
David,
Is this closer to what you are trying to do?
01-27-2015 08:27 PM
I tried it but no luck.
The target directory for the build has the executable but the data file and the hierarchical folders are not there.
01-27-2015 08:33 PM
02-05-2015 11:33 AM
Mike, sorry for not replying earlier but I had some pressing personal problems to take care of.
I clicked on the preview button and it shows that the executable file is placed exacly where I specified but the text file and the folder are not shown at all.
To recap, I have a sample labview application which does nothing, a text file with the word "yes" and a folder with three subfolders each of which has a text file called Leaf.
I want the executable, the text file and the folder to end up in a directory called "executable."
I posted the buildspec and the three items above.
Thanks for your help
David
02-05-2015 01:36 PM
I'm sorry but I am not in a place where I can look at your code right now. To see a configuration that works, check out the post from my blog that you will find here. At the bottom of the post is the archived project in my SVN repository. In this project I am including a database file, but the process is the same for any non-LV file.
I first include the non-LV file. I then created a destination for it (in this case called _repos) and then in the source file setting told the builder to put the file in _repos. At this point the preview will show it in the right place.
Mike...