.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month

Home >> Forum >> C# >> Post New QuestionBookmark and Share Subscribe to Forum

How to make one click installation of c#.net application

Posted By: Hasanabbas Momin     Posted Date: October 13, 2010    Points:2   Category :C#
Dear all,

I have a problem that i want to make one click installation of my project developed in c#.net and sqlserver 2005. I have .mdf files for sql. When i am installing its required to set mix mode authentication in sql server. I want to configure its programatically. I mean no need to install sql server management studio just click on setuop.exe and its set all configuration in sql also so any one can help me that how to do it programmatically.

Thanks & Regards
Hasanabbas Momin
Inspire Software Co.

Author: Sajid P K             
Posted Date: October 14, 2010     Points: 5   

Momin ,

1) You can use follwing Command line while installing. If it not installed.

C:\...MSDE\>Setup.exe SAPWD="password "INSTANCENAME="myinstance" SECURITYMODE=SQL

2) You can use undocumented procedure xp_regwrite/xp_instance_regwrite, to change the authentication mode form query.

exec master..xp_instance_regwrite N'HKEY_LOCAL_MACHINE',N'SOFTWARE\Microsoft\MSSQLServer\MSSQLServer','LoginMode', N'REG_DWORD', 2

Sajid P K

Post Reply

You must Sign In To post reply
Find more Forum Questions on C#, ASP.Net, Vb.Net, SQL Server and more Here
Quick Links For Forum Categories:
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  OOPs  SilverlightIISJQuery

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend