Problem with InstallFiles, include subfolders

Got a problem you cannot solve? Try here.
Post Reply
andrejzr
Posts: 68
Joined: Sun Jun 25, 2006 9:17 am

Problem with InstallFiles, include subfolders

Post by andrejzr »

Hi,

I encountered a very strage problem, which I can reproduce simply. I have a web application, and install script was fine. Lately I added the webhelp support, which required copying some files to the WEB folder. Suddenly, while installing, I got message from the installer:

Source file not found: c:\\docume......\\whdata\\whftdata.js. Verify that the file exists and that you can access it. (don't mind the file name, I wrote it just as an example)

At first I thoght that it has something to do with my script, but I was not able to figure out what it is. After further trying, I found out that this particular InstallFiles command for new files is causing the install failure.

I created a simple test install script, with only one InstallFiles command, which included the problematic folder. Problem can be reproduced.

I found out, that if I replace the InstallFiles command, that has the Include Subfolders set, with more individual InstallFiles for each subfolder, but Include Subfolders is not set, the install will perform OK.

If you want, I can send you a test project, where you can reproduce this. I am using 6.03, problem is reproduced on various operating systems.

As I said, I have a workarround, but it would be highly appreciated, if you can help me identify the problem.

Thanks
Andrej.
MichaelNesmith
Posts: 3452
Joined: Thu Dec 22, 2005 7:17 pm
Contact:

Post by MichaelNesmith »

This happens if your paths start exceeding the MAX_PATH limit (as used by the setup cache). The workaround is precisely what you have found, and we are also trying to make the process more resilient.
Michael Nesmith
Install[b]Aware[/b]
[i]Home of The Next Generation MSI Installer[/i]
Get your free copy today - http://www.installaware.com/
Post Reply