forum.vdsworld.com Forum Index forum.vdsworld.com
Visit VDSWORLD.com
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


install from within a zip file
Goto page 1, 2, 3  Next
 
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> Miscellaneous
View previous topic :: View next topic  
Author Message
Serge
Professional Member
Professional Member


Joined: 04 Mar 2002
Posts: 1480
Location: Australia

PostPosted: Tue Feb 01, 2005 7:59 am    Post subject: install from within a zip file Reply with quote

hi all,

this has nothing to do with vds but is more a developer question

is there any way i can have an exe file inside a zip file that can be run from within the zip file to install a program (whose files are inside the zip file)?

does that make sense?

the problem i have is that i do not usually "compile" my program files into a INSTALL.EXE file and some folks who download my ZIP file are at a loss to know how to create a folder, name it and transfer the zipped files into the folder

i am trying to avoid having 2 zip files: the normal one with all my program files and another one that has it all as a INSTALL.EXE

what i thought would be great was if i could add a exe file, like INSTALL.EXE, that had a small footprint and that would enable users to just double click on it to transfer the zip files to a folder on their computer + create shortcuts in START

any ideas how this could be done?

thanks in advance

serge

_________________
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
kOt
Contributor
Contributor


Joined: 19 Jan 2004
Posts: 89
Location: Fyffe, AL

PostPosted: Tue Feb 01, 2005 8:14 am    Post subject: Reply with quote

WinZip and WinRAR allows you to make SelfExtracting exe's basically a zip the works like an installer

It lets you setup all the stuff before you turn the zip into the exe

works good.. if this is what you are wanting

_________________
Visual Dialogscript 5
Back to top
View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger MSN Messenger
Serge
Professional Member
Professional Member


Joined: 04 Mar 2002
Posts: 1480
Location: Australia

PostPosted: Tue Feb 01, 2005 8:24 am    Post subject: Reply with quote

thanks kot but that is not what i am after - i want a small exe that will copy the files inside a zip file to a folder of my choice

i don't want my files compressed into a self-extracting exe as it would add too much to the overall file size as i would need to include it along with my other files

serge

_________________
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
Skit3000
Admin Team


Joined: 11 May 2002
Posts: 2166
Location: The Netherlands

PostPosted: Tue Feb 01, 2005 8:38 am    Post subject: Reply with quote

Winzip and WinRAR will always automaticly unzip/rar all files in the archive to a temporary directory when people open a file called "setup.exe". This way, you might be able to let that program start a small wizard from which the user can use the directory where they want the program to be... Smile
_________________
[ Add autocomplete functionality to your VDS IDE windows! ]
Voor Nederlandse beginners met VDS: bekijk ook eens deze tutorial!
Back to top
View user's profile Send private message
jules
Professional Member
Professional Member


Joined: 14 Sep 2001
Posts: 1043
Location: Cumbria, UK

PostPosted: Tue Feb 01, 2005 10:00 am    Post subject: Reply with quote

CR has a new Zip extension that can create small self extracting Zips that can do this, but they haven't released it.

Basically, you have got to use a self extracting Zip because you can't run an EXE when it's inside a Zip (and thank God for that, we have enough problems with viruses in Zip files already.) You have got to extract the EXe to someplace.

Here's a nice little setup builder: http://www.pablovandermeer.nl/install_builder.html

_________________
The Tech Pro
www.tech-pro.net
Back to top
View user's profile Send private message Visit poster's website
Serge
Professional Member
Professional Member


Joined: 04 Mar 2002
Posts: 1480
Location: Australia

PostPosted: Tue Feb 01, 2005 12:35 pm    Post subject: Reply with quote

thanks for all your replies - not the answers i was looking for but i will consider the viability of your suggestions Smile

serge

_________________
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
Dr. Dread
Professional Member
Professional Member


Joined: 03 Aug 2001
Posts: 1065
Location: Copenhagen, Denmark

PostPosted: Tue Feb 01, 2005 12:51 pm    Post subject: Reply with quote

How 'bout Tommy´s Easy Packets - should be on vdsworld somewhere. As far as I remember
it has a fairly small extractor stub that will let ya extract your files and run for instance a small
install routine in your proggie.

Greetz
Dread

_________________
~~ Alcohol and calculus don't mix... Don't drink and derive! ~~

String.DLL * advanced string processing
Back to top
View user's profile Send private message
Serge
Professional Member
Professional Member


Joined: 04 Mar 2002
Posts: 1480
Location: Australia

PostPosted: Tue Feb 01, 2005 1:08 pm    Post subject: Reply with quote

jules,

that little setup program is a little beauty and easy to use and straight forward - i have been using another one that i thought was good but i found that it took too long to set up, hence my looking for an alternative

but that one you suggested is very easy to configure and i can create set up files in no time at all

dr dread,

am downloading it now and will check it out - thanks for your suggestion

serge

_________________
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
Garrett
Moderator Team


Joined: 04 Oct 2001
Posts: 2149
Location: A House

PostPosted: Tue Feb 01, 2005 5:26 pm    Post subject: Reply with quote

You can't run an exe from within a zip... In fact, you can't do anything
with any file from within it's zip file. It has to be extracted in order to
use or even view the file. This is why everyone is suggesting a self
extract setup, because it's the only way to do this. You should check
out that thread on the forum here about the open source installer that
a bunch were working on. You'll need a sfx header to bind to your zip
file.

-Garrett

_________________
'What you do not want done to yourself, do not do to others.' - Confucius (550 b.c. to 479 b.c.)
Back to top
View user's profile Send private message
Serge
Professional Member
Professional Member


Joined: 04 Mar 2002
Posts: 1480
Location: Australia

PostPosted: Wed Feb 02, 2005 12:58 am    Post subject: Reply with quote

are you sure that you can't run an exe file from within a zip file? i often do so when there is just the one exe file inside a zip file that does not need any dll,... located inside the file

serge

_________________
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
Mac
Professional Member
Professional Member


Joined: 08 Jul 2000
Posts: 1585
Location: Oklahoma USA

PostPosted: Wed Feb 02, 2005 1:57 am    Post subject: Reply with quote

Serge,

I use PowerArchiver (a zip utility) that can also run
files in a zip (even a setup.exe file) - however, this
util (as well as any other) must first extract the file
(usually to Windows\Temp) and then run it.

So the bottom line is still the same - it must be
extracted first. Wink

Cheers, Mac Smile

_________________
VDSug.dll does file IO, check/disable menu items,
non-VDS dlls, draw functions and more...
Free download (30k dll size) at:
http://www.vdsworld.com/download.php?id=361
Back to top
View user's profile Send private message Send e-mail
PGWARE
Web Host


Joined: 29 Dec 2001
Posts: 1566

PostPosted: Wed Feb 02, 2005 2:34 am    Post subject: Reply with quote

Thats 100% correct, for instance even the Windows zip file viewer/extractor allows you to 'run' an exe or any file from within the zip but in actuality it is actually extracting the files to a temporary directory first and allowing to then use it.

To test, simply create a text file (notepad) then zip it up. Open the zip in Windows and double click to view it. Go to file>save and more then likely it will be within the temp directory where the actual file is at.

A zip file is an archive, there is no way to execute any type of file without first decompressing the archive to normal binary uncompressed format.
Back to top
View user's profile Send private message
arcray
Valued Contributor
Valued Contributor


Joined: 13 Jul 2001
Posts: 242
Location: Aude, France

PostPosted: Wed Feb 02, 2005 6:26 am    Post subject: Reply with quote

jules wrote:
CR has a new Zip extension that can create small self extracting Zips that can do this, but they haven't released it.


Do you expect them to release it soon? Currently I use VDSZIP, but it is unreliable in about 15% of installs...

_________________
Andrew GRAY
If you don't know I am looking for work, I won't get the job.

andrewrcgray.com
Back to top
View user's profile Send private message Send e-mail
Serge
Professional Member
Professional Member


Joined: 04 Mar 2002
Posts: 1480
Location: Australia

PostPosted: Wed Feb 02, 2005 7:57 am    Post subject: Reply with quote

thanks for all your help - i will have to resort to INSTALL.EXE or SETUP.EXE

jules,

your suggestion for making an install program does not seem to support creating folders + copying files into those folders as part of the installation process...i looked into the help file and found nothing to help

am i right or am i missing something?

serge

_________________
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
arcray
Valued Contributor
Valued Contributor


Joined: 13 Jul 2001
Posts: 242
Location: Aude, France

PostPosted: Wed Feb 02, 2005 8:18 am    Post subject: Reply with quote

Serge

Have a look at Inno Setup (http://www.jrsoftware.org/isinfo.php) which should be able to do what you want...

_________________
Andrew GRAY
If you don't know I am looking for work, I won't get the job.

andrewrcgray.com
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> Miscellaneous All times are GMT
Goto page 1, 2, 3  Next
Page 1 of 3

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum

Twitter@vdsworld       RSS

Powered by phpBB © 2001, 2005 phpBB Group