How to chack windows authontication - 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!

sagar
Posts: 39
Joined: Tue Dec 13, 2011 2:53 pm

How to chack windows authontication

Hi,
I have created installer for our application, In this I have used SQLconnection dialog to get server name,user ID and Password from user. In this I want to add windows authentication facility.For that I want to add two radio button when I select windows authentication then I want to check windows authentication connection to selected server & if it valid then I want to create database on that server but don't know how to validate windows authentication for SQL server & create database on that server using windows authentication. In SQL authentication I have used Predefined SQL connection to create database if that database is not exists & execute SQL create table, Store procedure script. I want to apply this method for windows authentication.
Please tell solution to validate windows authentication for SQL server & create database on that server using windows authentication.
sagar
Posts: 39
Joined: Tue Dec 13, 2011 2:53 pm

Re: How to chack windows authontication

Hi,
Do you got any solution?
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: How to chack windows authontication

Hello,

The recommended way is to let the user decide the authorization type. An administrator that performs the installation must have precise knowledge on this.

Here's the article with step by step guidance:
http://www.advancedinstaller.com/user-g ... -type.html

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
sagar
Posts: 39
Joined: Tue Dec 13, 2011 2:53 pm

Re: How to chack windows authontication

Thank you it work.
I have created dialog for Windows and SQL Authentication. In my installation I want create database & table into that database depending upon Windows and SQL Authentication. I used SQLiteConnection to create database & added SQL script to create new table in that database, But it is not working.
I have attached Demo2.api project with this post. In this project I try to create database & insert table into that database using sql script, But installer is not creating database.
Please tell me how to create database & add table into that database using sql script for Custom Connection.
Attachments
Demo2.aip
Demo project
(17.51 KiB) Downloaded 392 times
sagar
Posts: 39
Joined: Tue Dec 13, 2011 2:53 pm

Re: How to chack windows authontication

Any luck with my demo project.Do tou dot any solution to create database & insert table in that database.
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: How to chack windows authontication

Hello,

You can try to move "table11" sql script under "CustomConnection" from SQL Scripts page. In case of a custom connection, you can create a database and insert a table from within the sql script.

Here're a couple of related articles for any future related guidance:
http://www.advancedinstaller.com/user-g ... l-sql.html
http://www.advancedinstaller.com/user-g ... tions.html
http://www.advancedinstaller.com/user-g ... t-sql.html

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”