06-13-2014 10:48 AM
I have a fairly substantial program that requires info in a tree of sub folders. I'm trying to get these automatically copied to the build folder when I build but can't seem to do it. If under source files I move the required folders to the always included box, it tries to dump all the files and subfolders into the build folder destroying the file structure. If I go to source file settings, I can assign the folders to destinations I created earlier, but I can't change the "Include if referenced" condition so that they don't get moved as they aren't explicitly referenced. If I try to do both, the files end up in the designated folders but the directory structure is scrambled with some of the files put n data# subdirectories. This should be a trivial task!
06-13-2014 11:00 AM
I think the structure is based on what the structure looks like in your project windown, not on disk. So if you have a flat structure in your project window, your installer will default to the flat structure.
06-13-2014 11:02 AM
You will have to explicitly define the folders as destinations in the build and then specify the destination for each file.
Mike...
06-13-2014 11:04 AM
Back up a minute!
What type of build spec requiers this directory structure? A Source Distibution? That makes sense and the App builder will do exactly what you want easilly so, that CANNOT be what you meant
An Application? the app does not need "Folders" unless you are calling vi's dynamically by absolute paths (usually a mistake on the developers part) Nothing but the application itself should be able to touch the application's dependancies (so they get built into the application--- tada)
You need to be a bit clearer about exactly what you are trying to do and why you feel your output is not correct for you. (then we can understand and teach you what concept you missed):smileywink:
06-13-2014 11:46 AM
tried that - can't specify destination of folders in a an application build unless you use source file settings. You can in an installer
06-13-2014 11:50 AM
In order for the build to run, it needs the folders in the correct location. I can move them by hand, but it doesn't seem to me that I should have to. I can put them where they belong in an installer.
06-13-2014 12:03 PM
@rossu wrote:
In order for the build to run, it needs the folders in the correct location. I can move them by hand, but it doesn't seem to me that I should have to. I can put them where they belong in an installer.
That really is the point of the installer. The EXE build just does that, makes an executable for you to use. The installer is meant to put it where you want it and supply anything that the executable needs. I see this as normal behavior.