Copying directories
Posted: Tue Oct 19, 2010 7:53 am
I need to copy the contents of a folder which will be a the root of the CD drive from which my installer is running, into the target directory. The content will be OEM specific documentation files and folders, which cannot be built into my installer.
I have been trying:
Comment: copy ..\..\..\Documentation to target folder.
Create Folder $TARGETDIR$\Documentation
Set Variable DocPath to $EXEDIR$
Extract Parent Folder: DocPath
Extract Parent Folder: DocPath
Extract Parent Folder: DocPath
Copy Local Files $DocPath$\Documentation\*.* to $TARGETDIR$\Documentation\*.*
Apply Install (get result into variable SUCCESS)
But nothing is copied; I end up with an empty folder. I tried debugging, but EXEDIR is then set to the IA IDE executable's location. I copied a file from another location into this folder (via IA) successfully, so it appears not to be a permissions problem.
Can anyone see what I'm doing wrong, please?
Even if this was working, I believe it would only copy files but not directories. Is there a way to copy the directories without knowing their names in advance?
Thanks for any advice
I have been trying:
Comment: copy ..\..\..\Documentation to target folder.
Create Folder $TARGETDIR$\Documentation
Set Variable DocPath to $EXEDIR$
Extract Parent Folder: DocPath
Extract Parent Folder: DocPath
Extract Parent Folder: DocPath
Copy Local Files $DocPath$\Documentation\*.* to $TARGETDIR$\Documentation\*.*
Apply Install (get result into variable SUCCESS)
But nothing is copied; I end up with an empty folder. I tried debugging, but EXEDIR is then set to the IA IDE executable's location. I copied a file from another location into this folder (via IA) successfully, so it appears not to be a permissions problem.
Can anyone see what I'm doing wrong, please?
Even if this was working, I believe it would only copy files but not directories. Is there a way to copy the directories without knowing their names in advance?
Thanks for any advice