files not being copied into image

R

Robert Dormer

Hello all,

Currently I'm creating my own component with Component Designer. I'm able
to import files from a repository into the component database just fine.
However, when I add the component to the XP image I'm creating, the files
from the database are not copied to the image. This is extremely perplexing
to me. Can anyone give me some pointers?
 
S

Slobodan Brcin \(eMVP\)

Robert,

In CD make sure:
1. That you have create repository. (You done this)
2. That you assign with each component certain repository. (Probably not
done this)
3. That repository is flat folder (no subfolders)
4. That you have valid list of files that should be copied and where.

Regards,
Slobodan
 
R

Robert Dormer

In CD make sure:
1. That you have create repository. (You done this)
2. That you assign with each component certain repository. (Probably not
done this)

I've done this.
3. That repository is flat folder (no subfolders)

I assumed as much, and it is a flat folder.
4. That you have valid list of files that should be copied and where.

I've set the paths for each file in the repository, i.e. given them a
property of where I want them to be copied to.

I've also redone the component according to the tutorial GE posted. Same
result. The files from the repository are copied into the system repository
root - I verified this myself. But for some reason, when I build the image,
Target Designer complains that it can't find the files.
 
K

KM

Robert,
I've set the paths for each file in the repository, i.e. given them a
property of where I want them to be copied to.

Don't set any path properties of the files unless you want to specify: target path on device, source path of the file to you
Repository on the disk (before the component's repository gets imported in database!).
I've also redone the component according to the tutorial GE posted. Same
result. The files from the repository are copied into the system repository
root - I verified this myself. But for some reason, when I build the image,
Target Designer complains that it can't find the files.

Can you show us your final component?
(you can remove any proprietary stuff there: reg.entries, rep.files, etc.)

KM
 
S

Slobodan Brcin \(eMVP\)

Robert,

Repository looks ok.

Although I have one complaint:
Why dont you use %11% %12%, etc for direct paths instead of: %54%\windows.

Windows do not need to be placed in windows folder.

%10% is X:\Windows
%11% is X:\Windows\system32
%12% is X:\Windows\system32\drivers


Regards,
Slobodan
 
K

KM

I agree with Slobodan's conclusion.

Robert, you also may want to delete the folder item in the Files section of your component: "%53%\Desktop\gemplus driver
repository". This seems like coming from your attempts to set the "right" path for the files in repository on your dev.machine.

KM
 
R

Robert Dormer

Slobodan,

I have made the changes you pointed out (and thank you for them), however
Target Designer is STILL complaining that it can't find the files. I've
deleted the component from the database and then added it back in, just to
be sure that I had the latest version of the component imported into the
database.
 
G

Guest

Robert,

I looked at some gemplus drivers i have here. I notice there are .CAT or
..HLP files in the driver. Are these, by any chance the ones you're having
problems with? if it is, then you need to turn on "Copy Help Files" under
settings in your project settings for the SLX file in TD. Help files are not
selected by default.

Paul
 
R

Robert Dormer

Paul,

Thank you for the tip, but the problem is affecting ALL files in the
repository.
I notice that the database directory is marked as "read only." When I
remove this attribute, the files are copied, but then the image built won't
boot! If I reset the attribute, then the image boots, but the files aren't
copied....
 
K

KM

Paul,

Although it is always a good idea to clear up the "Do not copy help
files..." checkboxes, it is unlikely the reason for Robert's errors since he
is getting those from TD (not at run time yet).

KM
 
K

KM

Robert,

Do you mean the the repository folders are shared as read-only or just thier
attributes are read-only? If latter, it is not a problem.

When you import your component, do you get ANY error in CDM? (you should
have gotten some errors if the repository folders are shared as read-only)

After the import, did you check the repositry folder (\Windows Embedded
Data\Repositories)? Did you find your component's files there?

KM
 
R

Robert Dormer

Do you mean the the repository folders are shared as read-only or just thier
attributes are read-only? If latter, it is not a problem.

Their attributes are read only.
When you import your component, do you get ANY error in CDM? (you should
have gotten some errors if the repository folders are shared as read-only)
None.

After the import, did you check the repositry folder (\Windows Embedded
Data\Repositories)? Did you find your component's files there?

As stated before, they are there. Hence my confusion - when I build the
image in Target Designer, it complains that the files aren't found...
 
S

Slobodan Brcin \(eMVP\)

Robert,

TD tools do not support creation of debug configuration, so plase use
release where ever you have this option.

In your case load your file in CD.
Go to repository and change it from debug to release.

Regards,
Slobodan
 
R

Robert Dormer

Ah, that fixed it. Many thanks.


Slobodan Brcin (eMVP) said:
Robert,

TD tools do not support creation of debug configuration, so plase use
release where ever you have this option.

In your case load your file in CD.
Go to repository and change it from debug to release.

Regards,
Slobodan
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top