Impersonate User Using Property Values - 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!

mdc
Posts: 2
Joined: Thu Jan 28, 2010 4:19 pm

Impersonate User Using Property Values

Hi

I have read your FAQs and Help documents regarding SQL Scripts and Database Connections.

I cannot see a way to connect to an MS SQL Database and run an SQL script impersonating a user using Property Values from the Dialogs such as USERNAME / PASSWORD. I would like to use a windows username and password from a property. E.g. by entering DOMAIN\USER + PASSWORD in the dialog and then the installer using these properties to connect to the database server and run the SQL script.

Am I missing something or is this not possible?

I am currently evaluating the product and soon to purchase, its good so far, thanks.
GabrielBarbu
Posts: 2146
Joined: Thu Jul 09, 2009 11:24 am
Contact: Website

Re: Impersonate User Using Property Values

Hello,

On the "SQL Scripts" page create a new connection. Most of the sql connection settings support using properties.
On the Dialogs page add a new SQLConnectionDlg so that you can collect the connection data from the user.
Each input field has an associated property that you can use on the SQL Scripts page for the connection settings.

Best regards,
Gabriel
Gabriel Barbu
Advanced Installer Team
http://www.advancedinstaller.com/
mdc
Posts: 2
Joined: Thu Jan 28, 2010 4:19 pm

Re: Impersonate User Using Property Values

Thanks

Thats exactly what I have configured, the problem is that I cannot use a DOMAIN\USERNAME in one of the property fields as the installer does not use impersonation. I have to use an SQL Account, even though I have a windows account created in SQL Server. I notice a Impersonate Installing user available in the SQL connections but this has no affect.

Thanks

Return to “Common Problems”