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!

vasu0020
Posts: 22
Joined: Wed Aug 27, 2014 9:55 am

How to use c# dll to encrypt sql password while install

Hi,

I have a dotnet ddl to password encryption and decryption.

using that dll i have to encrypt the sql password captured from installer dialog and save it in web.config file.

please let me know the steps to do it.

thanks in advance
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: How to use c# dll to encrypt sql password while install

Hi,

When the password is written on the installer dialog, it is also stored in an installer property (i.e. PASSWORD_PROP). So, if you want to encrypt the password, you can send that property to your DLL (by using it as a custom action), encrypt it and send it back to the installer.

To save the password in a web.config file you can use the "Edit XML" feature and write the PASSWORD_PROP property in the file.

You can also take a look on the Calling a function from .Net DLL thread which debates a similar problem.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: How to use c# dll to encrypt sql password while install

Hi Mercal and welcome to Advanced Installer forums.

Thank you for sharing that article with us, I'm sure it will help other users in the future.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”