Visual Basic Stats:

How to support the site


Site Wide Message: (current site time 8/1/2010 1:05:37 AM EDT)
  • We want your input! One of our sponsors wants to know your opinion about development related issues. Click here to tell us what you think.
  • Are you an emerging/young developer (aged 18-30)? If so, would you like the chance to affect future developer tools and products?
    If so, then click here to give your feedback.
 

Single File Self Extractor Module v1.02

Print
Email
winzip icon
Submitted on: 10/4/2000 11:33:18 AM
By: William Gerard Griffiths (Author)  
Level: Intermediate
User Rating: By 11 Users
Compatibility:VB 5.0, VB 6.0

Users have accessed this code  4536 times.
 
 
     This module when compiled into any project will ask for an attachment, this can be any file, it will then ask you for a new destination filename, the next time your program is run the file that was embedded into the exe will be extracted and saved to the destination you have chosen... Now includes registry write functions, so that application can be started automatically on system restart
 
winzip iconDownload code

Note: Due to the size or complexity of this submission, the author has submitted it as a .zip file to shorten your download time. Afterdownloading it, you will need a program like Winzip to decompress it.Virus note:All files are scanned once-a-day by Planet Source Code for viruses, but new viruses come out every day, so no prevention program can catch 100% of them. For your own safety, please:
  1. Re-scan downloaded files using your personal virus checker before using it.
  2. NEVER, EVER run compiled files (.exe's, .ocx's, .dll's etc.)--only run source code.
  3. Scan the source code with Minnow's Project Scanner

If you don't have a virus scanner, you can get one at many places on the net including:McAfee.com

 
Terms of Agreement:   
By using this code, you agree to the following terms...   
  1. You may use this code in your own programs (and may compile it into a program and distribute it in compiled format for languages that allow it) freely and with no charge.
  2. You MAY NOT redistribute this code (for example to a web site) without written permission from the original author. Failure to do so is a violation of copyright laws.   
  3. You may link to this code from another website, but ONLY if it is not wrapped in a frame. 
  4. You will abide by any additional copyright restrictions which the author may have placed in the code or code's description.


Other 3 submission(s) by this author

 

 
 Report Bad Submission
Use this form to notify us if this entry should be deleted (i.e contains no code, is a virus, etc.).
This submission should be removed because:
 
Your Vote!

What do you think of this code(in the Intermediate category)?
(The code with your highest vote will win this month's coding contest!)
Excellent  Good  Average  Below Average  Poor See Voting Log
 
Other User Comments
10/8/2000 12:31:21 AMVinchenzo

I was wondering how to do this and your code answer my question. But I still have a question for you: is it possible to append various data to an file exe without altering exe file integrity?

Good Code Thanks!
(If this comment was disrespectful, please report it.)

 
10/20/2000 6:10:05 PMJess

That is a lot of freakin code... very good job. :)
(If this comment was disrespectful, please report it.)

 
10/25/2000 5:10:20 PMWilliam Gerard Griffiths (Author)

Thanks for all your comments, could you please give me some more feedback on this one, good or bad, if you like the code vote for it. If there is demand I will release v1.03 which will include multiple file support. FEEDBACK ON v1.02 PLEASE...
(If this comment was disrespectful, please report it.)

 
12/22/2000 3:19:31 PMJoseph Weir

Great code. For my use, I removed the file selection. My application chooses or dictates the source and destination file names. Thanks.
(If this comment was disrespectful, please report it.)

 
8/22/2001 1:21:40 AMJay Stacey

Hands Down to you William, Excellent code. worth every one of those 5 globes i gave you. If you can email me with some of your other achivements i would gratefully appreciate it..
(If this comment was disrespectful, please report it.)

 
8/1/2002 1:35:48 PMAmer

Excellent code but ther is a problem
the self file cant run on CD

(If this comment was disrespectful, please report it.)

 
7/12/2003 11:43:22 AMRuturaj

Grand ! I was looking for something like this.

In my softwares , I use Steganography to make it shareware. To make it more perfect , your code helped me a lot.

Thanks.

Ruturaj.
(If this comment was disrespectful, please report it.)

 
2/28/2004 2:54:19 AMJeroen van de Ven

Hey, this looks great, but get an error in the demo program:

I leave all the feilds blank, and after I press Go and before the first commondialog pops up, it gives me an error 63 (in module SelfExtract) "Bad record number"

I've tried a few things to repair it maybe you can take a look.
(If this comment was disrespectful, please report it.)

 
2/28/2004 3:10:27 AMJeroen van de Ven

More info:

The compiled sfx gives me a dos screen with:

General failure writing drive î
Abort?

This is the line with the error:

Seek #FileNumber, LOF(FileNumber) - HEADER_PTR + 1

I run Win2k with VB6, both the input and output files were on my desktop.

If you fix it or you have a new version please email me a phreakd2004@hotmail.com
(If this comment was disrespectful, please report it.)

 
4/27/2006 4:36:43 AMChad Gutowsky

Outstanding! 5 from me. ^O^

(If this comment was disrespectful, please report it.)

 
Add Your Feedback!

Note:Not only will your feedback be posted, but an email will be sent to the code's author from the email account you registered on the site, so you can correspond directly.

NOTICE: The author of this code has been kind enough to share it with you.  If you have a criticism, please state it politely or it will be deleted.

For feedback not related to this particular code, please click here.
 
To post feedback, first please login.