I've a simple NSIS script for packaging my executable and a directory tree. My script looks like this:

Qt Code:
  1. outFile "my_installer.exe"
  2.  
  3. installDir .
  4.  
  5. section
  6.  
  7. setOutPath $INSTDIR
  8.  
  9. file ..\interface\release\myApp.exe
  10. file /r ..\interface\data
  11.  
  12. sectionEnd
To copy to clipboard, switch view to plain text mode 

There are no links or shortcuts in "data", just files and sub-directories w/more files & directories. I want to preserve the tree so that "myApp.exe" and "data" (with all its files & subdirectories) reside in the installation directory.

When I run the installer, however, I get:

Error opening file for writing:

.\data\a_little_test_file.txt

Abort | Retry | Ignore
What should I add so that the installer can create the necessary directories and write to them?