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

XCopyFile Does Not copy Empty Sub-folder

Hi,

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

Hi

About your requirement, please see my blogs:
http://www.cnblogs.com/installshield/archive/2011/09/15/2177290.html

Hope that helps.

BR,
Kevin
0 Kudos
founoflife
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