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!

mariusz.pala
Posts: 5
Joined: Wed Apr 09, 2014 9:15 pm

Repackaging a zip file

Hi,

I have a tomcat application (.war) which is actually a zip file. During the installation I want to modify that zip file and add some content selected by user into it.
Then I just need to create the output war/zip file in a selected folder.
How can I do that?

Thanks,
Mariusz
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Repackaging a zip file

Hello Mariusz and welcome to Advanced Installer forums,

Thank you for your interest in Advanced Installer.

Unfortunately, we don't have built-in support for your requirements. However, in order to achieve what you want you can try to develop your own custom action which will unzip the .war file into a temporary location, add the user content to its extract location and, then archive again the new .war file. For example, you can add your .war file as a temporary file in "Files and Folders" page, then go to "Custom Actions" page and add your custom action as a custom action with sequence scheduled after "Install Execute Sequence -> Add Resources" action group.

Also, you can take a look on the "Zip and Unzip Files Programmatically in C#" article which could be useful for you.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
da.cherepovets
Posts: 1
Joined: Mon Mar 09, 2015 11:36 am

Re: Repackaging a zip file

Hi Daniel,

I have a similar issue.

Customer has complicate environment and should be necessary to change just 2 .INI files (not managed by AIP) and 1. ORA file.

I made more than one try with 11.7 (TRIAL) and seems that I can modify without problems, but with 11.6 once you modify the .7z file, installation HANGS.

is NOT possible to upgrade to 11.7 (or greater) for compatibility issues (11.7 and greater files are NOT compatible with 11.6 and lower).

Can you tell me IF (as also WHERE and HOW) AIP make a CRC (validation) of the .7Z files created?
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Repackaging a zip file

Hello and welcome to our forums,
Customer has complicate environment and should be necessary to change just 2 .INI files (not managed by AIP) and 1. ORA file.

I made more than one try with 11.7 (TRIAL) and seems that I can modify without problems, but with 11.6 once you modify the .7z file, installation HANGS.
Can you please give us a bit more details about your installation scenario? What .7z file are you trying to modify and how (are you using a custom action)?
Can you tell me IF (as also WHERE and HOW) AIP make a CRC (validation) of the .7Z files created?
Are you referring to the .7z files created by Advanced Installer when you are building LZMA compressed setups?

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

Return to “Building Installers”