Skip to content
⌘ NSIS Forum Archive

How I can archive files

7 posts

KirillKr#

How I can archive files

How I can write intaller, which do:
1. Archive all folders and files in c:\temp with LZMA method
2. Send it on mail (may with default mailer)?
Takhir#
2. Outlook Express does not allow automating attachments in code, this require some programming (plug-in). I saw on this forum ftp plug-in with "put" support, but I am not sure how reliable is it. You can also use "ftp -s:file.name" for batch mode. Do not forget to compress and send user's banking info 🙂
rsegal#
Just use the recursive flag on the File command. Something like...

File /r "c:\temp\*.*"

should do it. I would check the docs to be sure though. Make sure you've got SetCompressor lzma somwhere in your install script as well.
Afrow UK#
You'd have to use 7-zip's command-line program from www.7-zip.org
You'd have to include it in your installer, extract it on run-time and execute it with nsExec::ExecToLog (or something like that)

-Stu