Archive: Including an entire folder


Hey, I was wondering if it was possible to include a whole folder in my installer instead of single files one at a time. I know this can be done if I compress my folder into a .zip file etc. But is it also possible to inlclude the folder without it being compressed?

Thanks!


Use File /r.

*split from java thread*


Hey kichik, thanks for your help but i'm still a little bit cinfused. Should I write File /r and then my file name or write down my file name followed by /r?

Eg. File "C:\blah\blah" /r

or File /r"C:\blah\blah"

Thanks!


You should use

File /r "C:\Folder"

Dave


Thanks Davion, it works. But I do have one more question. For the uninstaller section, this is how i placed the code but the compiler prompted me with an error:

Delete /r $INSTDIR\folder

Am I going about this completely wrongly? Thanks!


Use RMDir /r "$INSTDIR\folder" instead ;) this should work


greetz Dave

btw: ever use the "" because a path can contain spaces and you will get an error if there are spaces and no " " ;)


Thanks Davion, it works fine for now :D.