Daniel
Posts: 8237
Joined: Mon Apr 02, 2012 1:11 pm
Contact:  Website

Deploying ZIP archives

Tue Dec 14, 2021 4:28 pm

Hi,

You may face the requirement to deploy a ZIP archive and maybe to extract its content as part of an installation process. In Advanced Installer you will find built-in support to handle the zipped resources deployment.

In this post I will expose how you could easily deploy an embedded ZIP file and a web-hosted one with your setup package.

Let's assume you have two archive that you want to deploy with your setup package:

1. a ZIP file hosted on a web server that you want to download and extract its content during installation
2. and a ZIP file that you want to embed into your setup package and deploy and extract its content at install time

To do so you should use our "File download" and "Extract archive" file operation.

Here are the details steps you can follow to implement such settings:

1. go to "Files and Folders" page and using the [Add Files] toolbar button add the .ZIP file you want to embed into your setup package
2. use the [New File Operation -> File Download] toolbar button to add a file download operation that will download your web hosted .ZIP file
screen1.jpg
screen1.jpg (137.56KiB)Viewed 323041 times

3. use the [New File Operation -> Extract Archive] toolbar button to add an extract operation that will unzip the embedded zip file
screen2.jpg
screen2.jpg (153.29KiB)Viewed 323041 times

4. use the [New File Operation -> Extract Archive] toolbar button to add an extract operation that will unzip the web downloaded zip file
screen3.jpg
screen3.jpg (164.67KiB)Viewed 323041 times

That's all! Build and run a few tests for your setup project.

Also, Attached you can find a sample project implementing this scenario.
sample.zip
(577.21KiB)Downloaded 1890 times
All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Sample Projects”