|
|
#1 |
|
Guest
Posts: n/a
|
how to backup files during installation ?
Hi everybody,
I am writing an installer with NSIS the first time, and am encountering the problem of backing up files during install before they are replaced with new files by the installer. The installer uses the file command to install complete directory trees similiar to : File /r "C:\Installer\dir1" But I found no possibility to specify any kind of backup of files. Any help welcome ! -jerder |
|
|
|
#2 |
|
Member
|
|
|
|
|
|
|
#3 | |
|
Guest
Posts: n/a
|
Quote:
use the /r switch of the File command then ? -jerder |
|
|
|
|
#4 | |
|
Member
|
Quote:
code: |
|
|
|
|
|
|
#5 |
|
Moderator
Join Date: Nov 2002
Location: Birmingham, England
Posts: 8,202
|
Mæster you're confusing run-time with compile-time.
The loop will be executed on run-time but you need to compress the files on compile-time. This page shows how you can invoke NSIS run-time commands at compile-time by creating a seperate installer to execute. You can use this to recursively loop through a folder: http://nsis.sourceforge.net/archive/...ances=0,11,211 -Stu Need an installer? http://www.afrowsoft.co.uk |
|
|
|
|
|
#6 | |
|
Member
|
Quote:
Another attemt to include many files/directories whithout naming each file in the scrip is to include them as an already compiled archive (zip) and to put that archive at runtime to a temp folder. You could use the zip-plugin to extract them in the temp folder. Now you have a source and a destination folder and you could use the loop (the code above has to be fixed a bit to do that) to "backup-install" them. |
|
|
|
|
![]() |
|
|||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|