Old 27th October 2006, 18:22   #1
geirowe
Junior Member
 
Join Date: Oct 2006
Posts: 2
Backup prev installed directory/subdirectorys

Hi,
I am trying to backup more than one direcories where each of them have more than one subdirectory all directories with several files, before installing a new patch. Anybody with an ide how I can do that?
geirowe is offline   Reply With Quote
Old 27th October 2006, 18:38   #2
goldy1064
Senior Member
 
Join Date: Jun 2005
Posts: 211
Something like this?
code:

FUnction .onINit
InitPluginsDir
#discover previous $INSTDIR
CreateDirectory "$PLUGINSDIR\backup"
CopyFiles "$INSTDIR\*.*" "$PLUGINSDIR\backup"
#apply patch
FunctionEnd

goldy1064 is offline   Reply With Quote
Old 27th October 2006, 19:19   #3
geirowe
Junior Member
 
Join Date: Oct 2006
Posts: 2
Thanks for your quick reply.

I'm still confuced.
Your scode sample did not work. I did not do anything at all. I have tried several modifications and I have also tried using IfFileExists without any success.

The $PLUGINSDIR is a temporay directory, can that be my problem?

I want to make a new directory "$INSTDIR\backup" to backup the old direcorys an files to and as I mentioned will have several directories with several subdirecories.
geirowe 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