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

Password encrypting question

Hi,

I want a user to provide a password that is then stored in an encrypted form in an XML file.
To encrypt the password I need to run a command line that runs a Java app, e.g. "java -cp app.jar com.bla.EnCrypt <password>" and save the result of that command as an encrypted password.
How can I do that?

Thanks in advance for any help,
Mariusz
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Password encrypting question

Hello Mariusz,

In order to achieve what you want you can create your own custom action which will receive the password as a parameter (you can use a public property, e.g. PASSWORD, which will be passed as a parameter to the custom action), will run the java app and, then will save the result into another public property (e.g. ENCRYPTED_PASSWORD). You should schedule the custom action after the "Install Execution Stage -> Searches" actions group.

Finally you can use our "Edit XML" feature to store the ENCRYPTED_PASSWORD property value into your XML file added in "Files and Folders" page.

Let us know if you have any questions.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
mariusz.pala
Posts: 5
Joined: Wed Apr 09, 2014 9:15 pm

Re: Password encrypting question

Thank you, any chance you can help me with creating that Custom Action? My knowledge in this area is very limited:(

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

Re: Password encrypting question

Hello Mariusz,

We don't have any sample example which implements the required scenario. However, you can take a look on our "Custom Actions" how to's which could be useful for you.

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

Return to “Building Installers”