long1000
28th July 2003 03:00 UTC
Extracting certain files only?
Hello,
How can i extract certain files only during updates
such that the setup program should only update the file
that is currently in the directory?
I'm trying something like this
IfFileExists "album.dll" 0 bypassAlbum
File album.dll
bypassAlbum:
Is this correct or is there some other function that
can do the job? And I have to do this for a lot of files,
so is there a simpler way to go about it?
Thanks
Cheers
long1000
Vytautas
28th July 2003 03:40 UTC
Use the "SetOverwrite off" command to preserve files already present on the target computer. You could also use "SetOverwrite ifnewer" to overwrite files only if they are newer than the ones on the target computer.
Vytautas
BlueTrin
28th July 2003 03:43 UTC
Last modified attribute of each file is kept in the installer :?
Vytautas
28th July 2003 03:48 UTC
I believe it would use the system properties of the file on the target system and compare it with the files in the installer. Although a member of NSIS Dev Team would know for sure.
Vytautas
long1000
29th July 2003 12:29 UTC
Sorry i think i should rephrase my questions.
I only want to update the file if the same file exist.
This means if the file does not exist on the harddisk in the
first place, i don't want to extract the file from the
installer.
Thanks.
Vytautas
29th July 2003 13:33 UTC
Yes in that case your code is the way to go.
Vytautas