Issue with Special Characters in Password Field - Advanced Installer Community

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!

henry.wilson
Posts: 3
Joined: Thu Mar 21, 2013 4:20 pm

Issue with Special Characters in Password Field

I've discovered an issue with Advanced Installer (professional v9.8) regarding special characters in password fields.

We've got a screen in the installer which takes in the login details for a SQL Server instance in order to install a database. We've discovered that if the password provided for the instance starts with a special character (in our testing a semi-colon character) then the password is not read correctly from the field and hence the SQL Server login fails. Is this a known issue? Any info would be appreciated.
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Issue with Special Characters in Password Field

Hi and welcome to Advanced Installer forums.

Thank you for your interest in Advanced Installer.

I've tested your scenario, but I cannot reproduce the behavior. Can you please tell us a step by step test case scenario so we can try to reproduce and investigate the problem?

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
henry.wilson
Posts: 3
Joined: Thu Mar 21, 2013 4:20 pm

Re: Issue with Special Characters in Password Field

Hi Eusebiu,

We have a screen in our installer as shown below which takes in connection details for a SQL Server database:

Image

Once details have been entered and 'next' is clicked, a 'Test ODBC Connection' custom action is fired which takes the supplied details and attempts to connect to the SQL Server. We've found that when the password provided starts with a ; character, the test connection fails with the error "login failed".

We're testing using installers on Windows Server 2012 against SQL Server 2012 but since this is an ODBC connection I wouldn't imagine that the Windows or SQL versions are important.
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Issue with Special Characters in Password Field

Hello,

This is happens because the ";" character it is used as a delimitation character in the SqlConnectionString. Therefore, when you will run your setup package the Pwd attribute will be set to "". However, in order to achieve what you want you should set the Pwd attribute in the SqlConnectionString using the following format:

Code: Select all

Pwd=[\{][PASSWORD_PROP][\}]
Here are the steps to proceed:
- Go to "Dialogs" page -> "SQLConnectionDlg" dialog and select the [Next>] button.
- In the "Published Events" tab edit the "Set installer property value" event like this:
  • Property: [SqlConnectionString]
    Argument: Driver=[\{]MySQL ODBC 5.1 Driver[\}];Server=[SERVER_PROP];Port=[PORT_PROP];Uid=[USERNAME_PROP];Pwd=[\{][PASSWORD_PROP][\}];
If you have any questions let us know.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
henry.wilson
Posts: 3
Joined: Thu Mar 21, 2013 4:20 pm

Re: Issue with Special Characters in Password Field

Thanks for the tip Daniel, I'll give this a try!
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Issue with Special Characters in Password Field

You're welcome.

Let us know if this helped.

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

Return to “Common Problems”