Salameche172
Posts: 1
Joined: Thu Jul 04, 2019 10:19 am

Inject archive encryption password in command line use

Hello everyone,

Here is the thing we want to achieve: we want to generate password protected installer on a Continuous Integration server which thus makes use of command line utilisation of AI using a preconfigured .aip project file. However, we want the password to be dynamically injected during build (it will always change and be stored elsewhere after build).

Question is: is it possible to inject that parameter during the invocation of AI on the .aip file? (we didn't find anything about this)

The other solution we investigated was to change ourselves the value of the LzmaAesPassword parameter of the BuildComponent inside the aip file before using AI, but we cannot figure out how the password parameter entered in the GUI is converted into the value stored in the .aip. It does not seem to be simply encoded using standard charsets and it does not seem encrypted either (too much recognizable patterns...).

Any help appreciated!

Thanks in advance,
Sam
Daniel
Posts: 8238
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Inject archive encryption password in command line use

Hello Sam and welcome to our forums,

Thank you for using our product.

Unfortunately we do not have a command line support so that you can set at build time the LZMA password parameter, nor we can share with you the encryption algorithm we use to store the password encrypted in the raw xml content.

However, I have added as an improvement on our todo list so we include such a command line support in the future and as soon as this will be available we will let you know.

Thank you for your understanding.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Daniel
Posts: 8238
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Inject archive encryption password in command line use

Hello,

This improvement has been added in version 16.2 of Advanced Installer released on August 1st, 2019.

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

Return to “Building Installers”