Community Forums
Results 1 to 3 of 3

Thread: Extracting files from a zip file during install

  1. #1
    Join Date
    Dec 2001
    Location
    Calgary, Alberta, Canada
    Posts
    1,155

    Extracting files from a zip file during install

    We have a new install project that requires the installation of ApacheDS LDAP and Apache Tomcat. Our developement team would perfer the install to simply use the .zip files that are supplied by Apache and extract them during install instead of the install using the supplied Apache install setup .exe files and calling them as prerequisites.

    Since there is no built in functionality in IS 2011 to extract .zip files during install and we are not guaranteed that the user's machines will have an unzip application on their machine that can be called to extract the files we have to supply our own.

    So has anyone done this? Are there any recommended extraction applications that we can use in a custom action that can be triggered to extract the files/folders in the .zip files to the correct locations where the files are suppose to be installed/extracted to?

    We need a tool that is free and can be called within a custom action.

    Any suggestions would be appreciated.

    Thanks,
    Tim Mayert

    SMART Technologies ULC
    Build and Installation Engineer
    TimMayert@smarttech.com

  2. #2
    Join Date
    Sep 2010
    Location
    Kazan, Russia
    Posts
    16
    You can use 7za.exe executable for unpacking your zip files. 7za.exe is a part of 7Zip tool (freeware) (http://www.7-zip.org)

    You can easily unpck it by using command line in Custom Action:


    7za.exe x "<myfile.zip>" -o<destanation1> -y


    Last edited by Rouslan; 10-01-2010 at 01:30 AM.

  3. #3
    Join Date
    Feb 2006
    Location
    Madison, WI
    Posts
    84
    They want you to use the ZIP file? Well that seems very odd to me. If you extract the files, place them in a folder and run them that decomplicates things a lot and when you create the installer you can make the installer itself compressed if you are looking to save xfer time.
    I'm just completely confused as to how keeping them in the zip makes it better.
    I think your developers haven't really thought this out - or just don't understand installations.
    But - I understand there may be some esoteric reason for this. Enlighten me...

Posting Permissions

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