We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

bmt22033
Posts: 21
Joined: Tue Jun 26, 2012 2:14 pm

Download and unpack a .7z archive as part of install?

I have an installer that deploys my code and most of it's dependencies. However, one of my prerequisites has a very strict redistribution license and as such, I need to download and install it manually. This particular prerequisite is actually a 7zip archive (.7z). I know it's possible to download the file via my installer but I'm wondering if it's also possible to unpack the .7z archive to a particular directory once the download is complete? Is there any support built into AI for unpacking .7z archives or would I need to include the 7-Zip .exe/.dll file in my installer in order to be able to unpack the .7z archive? Also, would I need to do this as a custom action or is there another way to accomplish it? Thanks very much!
bmt22033
Posts: 21
Joined: Tue Jun 26, 2012 2:14 pm

Re: Download and unpack a .7z archive as part of install?

Just a couple of updates to my question:

- I'm using AI 10.8 with an Enterprise license
- The prerequisite that I need to download and install is FFmpeg
- The URL I'll be downloading from is http://ffmpeg.zeranoe.com/builds/win32/ ... -static.7z

- It doesn't appear that AI has any kind of integrated support for unpacking .7z archives but I'm guessing that I could just include the 7zip command line utility to unpack the file after it's been downloaded (although I'm not certain how to go about doing that).

- Also, when the .7z archive is unpacked, it will unpack into a folder named ffmpeg-20140110-git-d9481dc-win32-static. This is subject to change because it's tied to the build of FFmpeg which occurs on a nightly basis. Is it possible to somehow capture this folder name and rename it to something more consistent like just "ffmpeg"?
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Download and unpack a .7z archive as part of install?

Hello,

I'm afraid we don't have predefined support for your scenario. As you already noticed, you can try to implement the desired behavior through a custom action.

If you have any questions just let us know.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”