Go Back   Winamp Forums > Developer Center > NSIS Discussion

Reply
Thread Tools Search this Thread Display Modes
Old 15th November 2004, 19:26   #1
jwooten
Junior Member
 
Join Date: Nov 2004
Location: Oak Ridge TN
Posts: 1
Question Simple multiple file copies

I have a simple set of 3 zip files I want to be able to install to specific locations for demo purposes.
The first is a jakarta_tomcat server I want to unzip to d:\jakarta, the second is a zipped webapp that is to be installed in the tomcat server after removing any old copy,
and the third is a d:\data directory that is zipped up with databases, etc. I need to be able to create a MSAccess odbc connection if possible, also.

Since none of this has anything to do with a windows executable, and doesn't modify the registry to my knowledge, what do I do? I can't seem to get started based on what I've seen.

Is there a simple example of just packaging a set of zip files and unzipping the to specific locations?
jwooten is offline   Reply With Quote
Old 15th November 2004, 20:57   #2
Afrow UK
Moderator
 
Afrow UK's Avatar
 
Join Date: Nov 2002
Location: Birmingham, England
Posts: 8,202
You should run a program like unzip.exe (search Google)

You can compress it into your installer like so:
File "/oname=$TEMP\unzip.exe" "local\unzip.exe"

Then run it like so:
nsExec::Exec '"$TEMP\unzip.exe" -o "$INSTDIR\zip.zip" -d "d:\data"'

There are some database functions on the archive:
http://nsis.sourceforge.net/archive/...b.php?page=113

-Stu

Need an installer? http://www.afrowsoft.co.uk
Afrow UK is offline   Reply With Quote
Old 15th November 2004, 20:58   #3
Afrow UK
Moderator
 
Afrow UK's Avatar
 
Join Date: Nov 2002
Location: Birmingham, England
Posts: 8,202
Here's a URL I just found for you:
ftp://ftp.th-soft.com/UNZIP.EXE

-Stu

Need an installer? http://www.afrowsoft.co.uk
Afrow UK is offline   Reply With Quote
Reply
Go Back   Winamp 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