Page 1 of 1

Add Folder

Posted: Mon Sep 04, 2006 10:08 am
by gmayne
I am trying to add a set of data files to my project. I have a source folder with multiple folders underneath and two further levels of folders underneath them. All folders contain at least one file. I have added the source folder using the add folder option to my target folder. Project appears to build ok, but when I try an install I get one or more file not found messages from files in one of the bottom most folders.

My only (painful) work around is to create all of the sub folders manually (underneath my target directory) except for the bottom most folders. I then add the bottom most folders in with the add folder command. This will be very hard to maintain. Any suggestions?

Posted: Mon Sep 04, 2006 10:40 am
by MichaelNesmith
Hi,

Which version are you using - you can check this in the About box. This issue should not occur in the 6.x line.

Posted: Mon Sep 04, 2006 11:14 am
by gmayne
It's 6.0, build gwinett_sp1.083006

Posted: Mon Sep 04, 2006 4:22 pm
by MichaelNesmith
Ah, sorry for misleading you earlier. I misunderstood your original post. I think your paths are too deep, which is exceeding the MAX_PATH Windows limitation on path names, especially when using web builds. I'm afraid the only workarond is the one you have found. Sorry for the inconvenience, and for misleading you earlier.

Posted: Mon Sep 04, 2006 5:02 pm
by gmayne
I don't believe this is the case. A typical failed path is:
"C:\\A Nomad\\4.0.x\\Data\\English\\Demo\\Rawdata\\alerts.dat" which is a good deal less than 256 characters. In the same build that had this failed path, a path such as:
"C:\\A Nomad\\4.0.x\\Data\\English\\Demo\\Config\\Employees0001.db" is ok.

My project is located in "C:\\A Nomad\\4.0.x\\Nomad 4\"

Posted: Mon Sep 04, 2006 8:33 pm
by MichaelNesmith
Ah, I see. Let me investigate and get back to you...

Posted: Mon Sep 04, 2006 8:51 pm
by MichaelNesmith
Could you please post your exact project name, its full path, and the sample Install Files commands with their source paths that lead to this failure? Also, please provide information on your web media blocks, which ones the Install Files commands are in, and your build types (compressed/web/uncompressed). Thanks.

Posted: Wed Sep 06, 2006 5:08 am
by gmayne
The Project name is:

C:\\A Nomad\\4.0.x\\Nomad 4\\Nomad 4.mpr

The script to include the files (I selected C:\\A Nomad\\4.0.x\\Data and chose "Add Folder"):

Install Files C:\\A Nomad\\4.0.x\\Data\\*.* to $TARGETDIR$\\Data, include subfolders

The "Data" directory contains the following sub-folders:
Deutschland
Cucumbers
Config
Posted
RawData
English
Cucumbers
Config
Posted
RawData
Demo
Config
Posted
RawData
Empty
Config
Posted
RawData
Peppers
Config
Posted
RawData
Tomatoes
Config
Posted
RawData

All of the lowest level folders have files. None of the filenames are longer than 20 characters. I have attached a sample error message. A lot of the folders have the file nomad.txt. On the other hand there are many other filenames that are repeated that don't cause an error.

If I ignore the errors the rest of the installation goes ok

File Attached:

Install Error.jpg

Posted: Wed Sep 06, 2006 5:12 am
by gmayne
I see from my post that the spaces have been stripped from the directory listing. I'll try again.

Deutschland
--Cucumbers
----Config
----Posted
----RawData
English
--Cucumbers
----Config
----Posted
----RawData
--Demo
----Config
----Posted
----RawData
--Empty
----Config
----Posted
----RawData
--Peppers
----Config
----Posted
----RawData
--Tomatoes
----Config
----Posted
----RawData

Posted: Wed Sep 06, 2006 6:09 am
by MichaelNesmith
Do you mind uploading your project sources and its source build tree to a location so we can download and try to reproduce on our end? This seems a bit complex and confusing to hand-create :)

Posted: Wed Sep 06, 2006 7:20 am
by gmayne
No problem, I can zip up including paths. How do you want me to send the zip to you?

Posted: Wed Sep 06, 2006 10:43 am
by MichaelNesmith
Thanks, please ZIP up your complete project, the built project, and also the source files from their source paths used during a build, so we can easily reproduce this.

You can PM me the URL to download the ZIP file, or send it to our support email address, to my attention.