This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallAnywhere
- :
- InstallAnywhere Forum
- :
- Re: Expand archive at runtime
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
‎May 13, 2019
08:34 AM
Expand archive at runtime
I am trying to expand a zip archive using the Expand Archive action. However, the name of the zip archive can change and could be anything. The only requirement fixed is that it will be a zip archive and will be located in the same location from where the installer is run. In fact, I need to be able to expand more than one zip also. InstallAnywhere wants me to provide the name of the zip file. Is there a workaround to address this use case.
(3) Replies
‎May 13, 2019
09:43 AM
Hi @rajeevshukla,
Thank you for your post.
You could try using an Execute Script/Batch file Action to run a 3rd-party command-line ZIP tool, such as the free 7-Zip tool. The ZIP tool would need to support wildcards in the target filename, such as: *.zip
You would also need to make sure that the the ZIP tool itself is available at runtime / install-time.
Thanks,
Ian
‎May 14, 2019
08:10 AM
Thanks for the reply Ian. I appreciate the prompt response. Can I write custom code to get the names of the zip files from the desired location and then pass it to the installer to Unzip it? Or create a setup.txt file that has the names of the zip files and then get InstallAnywhere installer to read from the file and unzip them. I am inclined to take the route because I don't want the dependency of the unzip utility being available on the user's system.
‎May 14, 2019
09:00 AM
Hi @rajeevshukla,
Thank you for your reply. No, there is currently no built-in functionality for passing a list of ZIP files for the Expand Archive Action to expand.
Thanks,
Ian