LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Installer for simple project

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

 

 

 

0 Kudos
Message 1 of 8
(3,271 Views)
When including a non-LV file in an application build I prefer to define the intended target directory as a "Destination" in the build. Be sure to include the non-LV file in the build and then in the source settings for the non-LV file set that directory you defined as the destination for the file during the build. Once the builder is putting the file in the right place, the installer will handle it correctly.

Mike...

Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
0 Kudos
Message 2 of 8
(3,245 Views)

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

 

0 Kudos
Message 3 of 8
(3,187 Views)

David,

 

Is this closer to what you are trying to do?

0 Kudos
Message 4 of 8
(3,137 Views)

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.

 

 

0 Kudos
Message 5 of 8
(3,119 Views)
When you click on the preview button in the build specification dialog, where are the files put?

Mike...

Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
0 Kudos
Message 6 of 8
(3,111 Views)

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

 

 

0 Kudos
Message 7 of 8
(3,021 Views)

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...


Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
0 Kudos
Message 8 of 8
(3,006 Views)