Results 1 to 6 of 6

Thread: Add Multiple Files

  1. #1

    Thread Starter
    PowerPoster
    Join Date
    May 2006
    Posts
    2,988

    Add Multiple Files

    This is for VB6 ..

    is it possible to open a file as binary, read it into a string, then open more files as such, and add them all to a single string and write to single exe ... then if I want to extract them, somehow pull them all out and back again as the exe's they once were . .. i mean can you do simple things like write FILE_1_START, FILE_1_END .. etc .. grab the stuff in between ..? I know how to read files, etc etc .. just want to know if this is possible ..

    Im not worried about compression, just want to sqeeze a couple small files into 1 file for something like a patch file. I know I can simply try it and see .. but wondering if anyone else has done/tried this yet ..

    thanks
    Rory

  2. #2
    Banned randem's Avatar
    Join Date
    Oct 2002
    Location
    Maui, Hawaii
    Posts
    11,385

    Re: Add Multiple Files

    There is no applicable reason to do this. What are you attempting to do. Since you are in the deployment section I will assume you are attempting to shortcut the installation process. DON"T DO IT!!!....

    Please read Installation Problems in my signature for more assistance on that subject.

  3. #3

    Thread Starter
    PowerPoster
    Join Date
    May 2006
    Posts
    2,988

    Re: Add Multiple Files

    I thought I explained it pretty well .. .. but anywayz ..

    i Dont want to install .. i know that part already ..

    Say I updated my EXE and my Database file .. .. i want to have 2 files in an single exe so when the EXE runs it extracts both files to the specified location .. Hmmmm .. thats what I want to do .. ... Inno cant do that for me without an installation ... which I dont need.

    this maybe a lil too advanced for this section so maybe i should move it back to the vb6 section ? I put it here though as it had to basically do with deployement ..
    Last edited by rory; Jun 9th, 2006 at 01:13 AM.

  4. #4
    Banned randem's Avatar
    Join Date
    Oct 2002
    Location
    Maui, Hawaii
    Posts
    11,385

    Re: Add Multiple Files

    Inno setup can do that without an installation screen...

    You can also use a self extracting zip file.

  5. #5

    Thread Starter
    PowerPoster
    Join Date
    May 2006
    Posts
    2,988

    Re: Add Multiple Files

    self extraxt zip i know ($$) ..i looked everywhere with inno .. but i coulnt see where it doesnt bring up everything else ...

  6. #6
    Banned randem's Avatar
    Join Date
    Oct 2002
    Location
    Maui, Hawaii
    Posts
    11,385

    Re: Add Multiple Files

    Quote Originally Posted by rory
    i looked everywhere with inno .. but i coulnt see where it doesnt bring up everything else ...
    Perhaps next time look in the Inno Setup Documentation

    The Setup program accepts optional command line parameters. These can be useful to system administrators, and to other programs calling the Setup program.

    /SP-

    Disables the This will install... Do you wish to continue? prompt at the beginning of Setup. Of course, this will have no effect if the DisableStartupPrompt [Setup] section directive was set to yes.

    /SILENT, /VERYSILENT

    Instructs Setup to be silent or very silent. When Setup is silent the wizard and the background window are not displayed but the installation progress window is. When a setup is very silent this installation progress window is not displayed. Everything else is normal so for example error messages during installation are displayed and the startup prompt is (if you haven't disabled it with DisableStartupPrompt or the '/SP-' command line option explained above)

    If a restart is necessary and the '/NORESTART' command isn't used (see below) and Setup is silent, it will display a Reboot now? message box. If it's very silent it will reboot without asking.

    /SUPPRESSMSGBOXES

    Instructs Setup to suppress message boxes. Only has an effect when combined with '/SILENT' and '/VERYSILENT'.
    The default response in situations where there's a choice is:
    -Yes in a 'Keep newer file?' situation.
    -No in a 'File exists, confirm overwrite.' situation.
    -Abort in Abort/Retry situations.
    -Cancel in Retry/Cancel situations.
    -Yes (=continue) in a DiskSpaceWarning/DirExists/DirDoesntExist/NoUninstallWarning/ExitSetupMessage/ConfirmUninstall situation.
    -Yes (=restart) in a FinishedRestartMessage/UninstalledAndNeedsRestart situation.

    5 message boxes are not suppressible:
    -The About Setup message box.
    -The Exit Setup? message box.
    -The FileNotInDir2 message box displayed when Setup requires a new disk to be inserted and the disk was not found.
    -Any (error) message box displayed before Setup (or Uninstall) could read the command line parameters.
    -Any message box displayed by [Code] support function MsgBox.
    Last edited by randem; Jun 9th, 2006 at 01:39 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width