How to make a self extracting executable with install?

Discussion in 'Windows Desktop Systems' started by madmatt, Jul 20, 2006.

  1. madmatt

    madmatt Bow Down to the King Political User

    Messages:
    13,312
    Location:
    New York
    You know those files you download from Microsoft (and other software vendors) that you can run from command line to extract?

    filename.exe /t:C:\path /c

    What software application do I need to create one of those that can be used on a system without the same application?

    Or better yet... be able to create one of those, run it, it extracts itself, and automatically installs the software (just like .NET Framework).

    Problem is I keep adding more and more to my slipstreamed Windows installation disc and now it is at 740MB all thanks to both .NET 1.1 (60MB) and .NET 2.0 (100MB).

    Any help is appreciated. Thank you.

    P.S. Please don't suggest IExpress, it sucks (especially for a lot of files).
     
  2. Saldrin

    Saldrin OSNN Junior Addict

    Messages:
    31
    Have you tried makecab.exe from within the system32 folder?
     
  3. madmatt

    madmatt Bow Down to the King Political User

    Messages:
    13,312
    Location:
    New York
    I already gave thought to it but MAKECAB only allows you to compress one file at a time.

     
  4. LeeJend

    LeeJend Moderator

    Messages:
    5,291
    Location:
    Fort Worth, TX
    There are a multitude of install utilites. most are paid. some are free. they compress the contents if possible. but remember that most distribution content is already compredssed and the install utility may make the file bigger. i'd google it for you but am typing left handed.

    try self extracting installers
     
  5. madmatt

    madmatt Bow Down to the King Political User

    Messages:
    13,312
    Location:
    New York
    I did. I came across one that is included with Visual Studio (and I think I have a license at home) and WinZip Self Extractor 3.0.
     
  6. LeeJend

    LeeJend Moderator

    Messages:
    5,291
    Location:
    Fort Worth, TX
    Cool. Not sure but does the video studio one require a "distrbutable" on the end system first or does it install the distributable as part of the installer? There is something in the back of my head about the liscence to make distributables, but can't remember the details, its been years since i looked at it.
     
    madmatt likes this.
  7. madmatt

    madmatt Bow Down to the King Political User

    Messages:
    13,312
    Location:
    New York
    WZSE 3.0 looks good. I will have to test it to make sure it works, but it seems easy enough to use.

    Thanks for your input/help.
     
  8. kcnychief

    kcnychief █▄█ ▀█▄ █ Political User Folding Team

    Messages:
    16,948
    Location:
    Massachusetts
    I am in the process of learning how to use WISE Installer - http://www.wise.com/

    I like it because you can start it, run a program, and it "watches" to see what gets added/changed.
     
  9. madmatt

    madmatt Bow Down to the King Political User

    Messages:
    13,312
    Location:
    New York
    If I remember correctly, Wise is very costly. Licensing isn't cheap.
     
  10. kcnychief

    kcnychief █▄█ ▀█▄ █ Political User Folding Team

    Messages:
    16,948
    Location:
    Massachusetts
    ^^^You remember correctly :D

    Well worth it though if you have the use for it, amazing features.
     
  11. madmatt

    madmatt Bow Down to the King Political User

    Messages:
    13,312
    Location:
    New York
    I think I found a downfall to WinZip Self-Extractor 3.0.

    Unless I am mistaken (I emailed support) you can't add switches to the installation path.

    e.g. ".\netfx.msi /qn"

    It doesn't work and says the file cannot be found.

    If I change it to ".\netfx.msi" it works fine.

    If I change it to ".\netfx.msi" /qn it yells at me.

    Too bad InstallShield is $1500.00.

    Let's see what support says.
     
  12. Lee

    Lee OSNN Proxy

    Paste below into start>run>ok and away you go.

    %windir%\system32\iexpress.exe
     
  13. madmatt

    madmatt Bow Down to the King Political User

    Messages:
    13,312
    Location:
    New York
    IExpress stinks for one reason: it becomes a pain to create self extracting files if you have a lot of files to add (i.e. 10+ files). See first post, last statement.

    =]
     
  14. kcnychief

    kcnychief █▄█ ▀█▄ █ Political User Folding Team

    Messages:
    16,948
    Location:
    Massachusetts
    WinZip offers a CMD Line Utility, not sure if it applies to that as well. If so, that may help you out since it gives you the ability to add switches.

    http://www.winzip.com/prodpagecl.htm

    I've had to use it recently, works very well and can install silently :cool:
     
  15. madmatt

    madmatt Bow Down to the King Political User

    Messages:
    13,312
    Location:
    New York
    You're confused. I need the Self-Extractor to extract the files and run a command with switches.
     
  16. kcnychief

    kcnychief █▄█ ▀█▄ █ Political User Folding Team

    Messages:
    16,948
    Location:
    Massachusetts
    I had a feeling I got it wrong, my bad.

    You can use that program for that task though, if the end-user machine has WinZip installed, and that CMD line utility, you can, through a command line script, extract files.

    That's how I interpreted what you were trying to do wrt to extraction.
     
  17. yalooze

    yalooze OSNN Addict

    Messages:
    100
    Location:
    Adelaide, Australia
    This sort of thing isn't really my area, but would NSIS work?
     
  18. kcnychief

    kcnychief █▄█ ▀█▄ █ Political User Folding Team

    Messages:
    16,948
    Location:
    Massachusetts
    Hey Matt - may also want to give this a look

    http://www.autoitscript.com/autoit3/

    Not sure if it would accomplish what you need precisely, but it's a sweet tool that can do some really neat things and it's FREE :)
     
  19. madmatt

    madmatt Bow Down to the King Political User

    Messages:
    13,312
    Location:
    New York
    I am waiting on confirmation from WinZip/Corel, but I believe I have figured out the problem.

    When creating a self-extracting file that runs a command: WinZip Self-Extractor 3.0 doesn't support MSI files. I was able to create a self-extracting file that launched an EXE file with the "/q" switch no problem.