Archive: Preserving Directory Structure


Preserving Directory Structure
It may not be possible to do this, but I figured it was worth asking:
Can I provide a list of files and have NSIS preserve the directory structure?

Explanation:
I know I COULD do a
FILE /r C:\myapp\*.*
and that would preserve the directory structure. HOWEVER, I am creating an UPGRADE patch for the application -- I only want to deploy files that have changed since the last version. I used Beyond Compare to generate a report of all files that have changed - hundreds of them in many dozens of directories. I don't want to have to SetOutPath for every directory in the patch.


You can create a script to write SetOutPath for you. You can then execute the script using !system and !include the result. You can even write the script using NSIS itself.