Archive: Add files/folders question


Add files/folders question
I've included this in my script:

File /nonfatal /a /r "C:\FolderName\*.*"
It adds all the files and subfolders correctly, but when it installs, it just puts all the files from folders and subfolers into the install dir..

How do I make the installer install files in their original folders?

Thanks! :)

SetOutPath before using File, then...

Don't use wildcards at the end with the /r switch. *.* will place all stuff in the current OutPath.

Use "/r C:\FolderName\" without *.* and the folder tree will move with the files.


Thanks man, it worked! :D


I've got another question about this...


I use these comands to uninstall certian folders from the install dir...

RMDir "$INSTDIR\folder\
Delete "$INSTDIR\folder\"
But it doesn't uninstall any folders... :(


Help please! :)

EDIT: I've figoured out this one, no help needed! :D