|
|
#1 |
|
Junior Member
Join Date: Jul 2003
Location: Right under the sun
Posts: 2
|
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 |
|
|
|
|
|
#2 |
|
Major Dude
|
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 |
|
|
|
|
|
#3 |
|
Junior Member
Join Date: Jul 2003
Posts: 6
|
Last modified attribute of each file is kept in the installer :?
|
|
|
|
|
|
#4 |
|
Major Dude
|
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 |
|
|
|
|
|
#5 |
|
Junior Member
Join Date: Jul 2003
Location: Right under the sun
Posts: 2
|
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. |
|
|
|
|
|
#6 |
|
Major Dude
|
Yes in that case your code is the way to go.
Vytautas |
|
|
|
![]() |
|
|||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|