Old 28th July 2003, 02:00   #1
long1000
Junior Member
 
Join Date: Jul 2003
Location: Right under the sun
Posts: 2
Question 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
long1000 is offline   Reply With Quote
Old 28th July 2003, 02:40   #2
Vytautas
Major Dude
 
Vytautas's Avatar
 
Join Date: May 2003
Location: Victoria, Australia
Posts: 643
Send a message via ICQ to Vytautas
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
Vytautas is offline   Reply With Quote
Old 28th July 2003, 02:43   #3
BlueTrin
Junior Member
 
Join Date: Jul 2003
Posts: 6
Last modified attribute of each file is kept in the installer :?
BlueTrin is offline   Reply With Quote
Old 28th July 2003, 02:48   #4
Vytautas
Major Dude
 
Vytautas's Avatar
 
Join Date: May 2003
Location: Victoria, Australia
Posts: 643
Send a message via ICQ to Vytautas
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
Vytautas is offline   Reply With Quote
Old 29th July 2003, 11:29   #5
long1000
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.
long1000 is offline   Reply With Quote
Old 29th July 2003, 12:33   #6
Vytautas
Major Dude
 
Vytautas's Avatar
 
Join Date: May 2003
Location: Victoria, Australia
Posts: 643
Send a message via ICQ to Vytautas
Yes in that case your code is the way to go.

Vytautas
Vytautas is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump