Showing results for 
Show  only  | Search instead for 
Did you mean: 
Level 4

XCopyFile Does Not copy Empty Sub-folder


I am working on a Basic MSI project with InstallShield 2009. During installation, I need to copy a folder with hundreds empty sub-folders. But XCopyFile did not copy any of empty sub-folder.

Here is the copy code:
XCopyFile(szOrigFolder ^ "*.*", szTarFolder ^ "*.*", INCLUDE_SUBDIR);
Did I do something wrong? BTW, I have processed szOrigFolder and szTarFolder with StrRemoveLastSlash function.
Labels (1)
0 Kudos
(3) Replies
Not applicable


About your requirement, please see my blogs:

Hope that helps.

0 Kudos
Level 4

Thanks a lot. It worked. 🙂

And another little question: What is the difference between "sv" and "sz", since both of them are used as the starting part of STRING variable?
0 Kudos

Hi, foundoflife. I have problem that you've solve. But, His Blog does not work anymore. Can you help me ?

0 Kudos