 |
|
 |
Dear Kom,
I have MSSQL Server(2005) database and Asp.net 2 web application and it will running fine in developer machine. I want to develop a web setup which will install in another pc only click on the next button and finish (to create a setup file that user just click next2 and will install .net framework, sql express and the application connect to the database, restore the app database to it, all automatically and now with SQL Express ) .
I am waiting for your kind response.
Thanks and Regards.
Swapan Sardar
E-mail: sardar_swapan@rediffmail.com
|
|
|
|
 |
|
|
 |
|
 |
can i use sql server 2008 express edition instead of sql server 2005?
|
|
|
|
 |
|
 |
Dear John,
Please find the below error msg.. am getting this error msg while configure the db..
---------------------------
---------------------------
System.Runtime.InteropServices.COMException (0x80040000): [Microsoft][ODBC SQL Server Driver][DBNETLIB]SQL Server does not exist or access denied.
[Microsoft][ODBC SQL Server Driver][DBNETLIB]ConnectionOpen (Connect()).
at SQLDMO.SQLServerClass.Connect(Object ServerName, Object Login, Object Password)
at JohnKenedy.DataAccess.BusinessSQLEXPRInstaller.IsDatabaseExist() in C:\Inetpub\wwwroot\Makanan2\JohnKenedy.DataAccess\BusinessSQLEXPRInstaller.cs:line 126
at JohnKenedy.DataAccess.InstallationSQLEXPR.btnAttach_Click(Object sender, EventArgs e) in C:\Inetpub\wwwroot\Makanan2\JohnKenedy.DataAccess\InstallationSQLEXPR.cs:line 143
at System.Windows.Forms.Control.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ButtonBase.WndProc(Message& m)
at System.Windows.Forms.Button.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)
at System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(Int32 dwComponentID, Int32 reason, Int32 pvLoopData)
at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
at System.Windows.Forms.Application.RunDialog(Form form)
at System.Windows.Forms.Form.ShowDialog(IWin32Window owner)
at System.Windows.Forms.Form.ShowDialog()
at MenuMakanan.Login..ctor() in C:\Inetpub\wwwroot\Makanan2\MenuMakanan\Login.cs:line 22
at MenuMakanan.Program.Main() in C:\Inetpub\wwwroot\Makanan2\MenuMakanan\Program.cs:line 20
---------------------------
OK
---------------------------
Please give solution to resolve this problem.
Thanks & Regards,
S. Siva Kumar
|
|
|
|
 |
|
 |
Hi John,
Can u please provide me a clear picture containing the steps to install
SQL 2005 Express and the application. Currently, I am facing a problem while implementing your approach. I am unable to see the application -FOOD
and also the restored file that needs to be restored after getting the Food_Restore.bak file.
I would appreciate if you could please send me the exact steps to resolve the task that this article targets at.
I require your help, it urgent for me to resolve the errors.
Thanks & Regards,
Santosh
|
|
|
|
 |
|
 |
Dear John,
During installation of SetupMakananSqlExpr on a system
where there is no SQL 2005 Express and .NET components installed on it at all. I am getting this Error
"Module C:\Program Files\JOHN KENEDY\setupMakananSqlExpr\SQLEXPR2005\Setup\ProgramFiles\Microsoft SQL Server\x86\Binn\xmlrw.dll failed to register. HRESULT -2147024769. Contact Your Support Personel".
I need help to resolve this error on urgent basis
Kindly help me for this error.
Thanks,
Santosh
|
|
|
|
 |
|
 |
Dear John,
During installation of SetupMakananSqlExpr i am getting this Error
"Module C:\Program Files\JOHN KENEDY\setupMakananSqlExpr\SQLEXPR2005\Setup\ProgramFiles\Microsoft SQL Server\x86\Binn\xmlrw.dll failed to register. HRESULT -2147024769. Contact Your Support Personel".
I have tried in different ways like to change the version of SQL Server Exp, and creating new setup projects in the same solution and also installation on Win XP and Vista 64, but getting same Error.
Kindly help me for this error.
Thanks.
|
|
|
|
 |
|
 |
Dear John,
During installation of SetupMakananSqlExpr i am getting this Error
"Module C:\Program Files\JOHN KENEDY\setupMakananSqlExpr\SQLEXPR2005\Setup\ProgramFiles\Microsoft SQL Server\x86\Binn\xmlrw.dll failed to register. HRESULT -2147024769. Contact Your Support Personel".
Thanks.
|
|
|
|
 |
|
 |
dear jonh,
During installation of SetupMakananSqlExpr i am getting this Error
"Module C:\Program Files\JOHN KENEDY\setupMakananSqlExpr\SQLEXPR2005\Setup\ProgramFiles\Microsoft SQL Server\x86\Binn\xmlrw.dll failed to register. HRESULT -2147024769. Contact Your Support Personel".
same error please need a solution for this
Thanks
|
|
|
|
 |
|
 |
It's working, at least the first step. The istance is installed, but I can't change the registry key search to find if it is already installed so it try to install again the same instance (I think that the key is changed in the 64bit version). And also doesn't do the restore of the db, trying to udnerstand why.Thank you
|
|
|
|
 |
|
 |
To make it work on a 64 bit, I just need to download the proper sql express version and follow the same procedure? To unpack it it's the same? Thank you.
|
|
|
|
 |
|
 |
I using code VB.NET and SQL Express 2008. When I create setup project like mentioned in this article but I start run project, it install first MSDE2000. When I select next, project appears mesagebox : Please restart your computer and re-run this application.But before, I created this setup, it run OK.I understand why ? I hope you can help.Thanks very much.
|
|
|
|
 |
|
 |
I am trying to understand what actually happens under the covers here.
I have a little Client Server application I am trying to deploy.
Maybe you can help me find answers to some of these questions.
If I redeploy the project to a Customer, will dtNet framework 3.5 install again.
How about Windows Installer?
And SQL 2008?
While I was testing, the framework install ran for about twenty minutes.
Then SQL installed in about ten minutes.
When the framework installs, will it include dotNet 2.0 SP2? Previously, when I tried to install SQL 2008, I got an error indicating that the dotNet framework 2.0 SP2 was a prerequisite.
Can I include everything needed in the deployment files so that an internet connection is not required for the install?
Any recommended books for this?
Thanks,
.......Cameron
|
|
|
|
 |
|
 |
Cameron,
You posted some very good questions that I would like to see answered too. Since no one has an answer for you, perhaps you can update us as to what your experience has been.
tvfredri
|
|
|
|
 |
|
 |
Hello tvfredri
I did not get an answer here.
I did get some information from various other groups.
The bottom line is that I ended up creating a dos bat file.
The bat file checks to see if things are installled or not, and skips over them if they are already installed.
Unfortunately, this means I needed a larger bat file that could detect the Windows version, and then for each version of Windows, I check for the individual components, to see if they have already been installed.
You can use the installer project to include some items, but that means you assume that your Clients will be connected to the internet when they do their install.
Hope that helps.
|
|
|
|
 |
|
 |
Thanks Cameron,
Looks like I'll be using NSIS's installer, found at http://nsis.sourceforge.net/Main_Page, to do pretty much what you have done. I don't quite have everything figured out just yet, but I think I can run scripts, execute bat files and launch installers. I plan to test for previous installs/versions of .NET and provide for a silent install of MS SQL Server among other things.
tfredri
|
|
|
|
 |
|
 |
Hi John
Is it possible to create a package for sql express 2008
Thanks
Jose Coelho
|
|
|
|
 |
|
 |
hi Jose,
Yes that apply for SQL Express 2008 too, I have just downloading SQLEXPRADV_x86_ENU.exe which is the SQL express advance edition (with reporting service), use command line and goto to the folder that the exe file exist, then use the command
SQLEXPRADV_x86_ENU.exe /x
Then it will prompt a box to extract the files contained in the .exe
Then follow the instruction as this article says. Just copy the extracted file to the bin\debug folder with the name SQLEXPR2008 while the previous name in this article is SQLEXPR2005, due to this changes in visual studio, go to JohnKenedy.DataAccess Project (you must include my project in your solution not the dll, because you need to change a class), find the file name BusinessSQLEXPRInstaller.cs
edit this file, by changing the following :
protected string _SQLEXPRSourcePath = "SQLEXPR2005";
protected string _SQLEXPRInstallPath = Environment.GetFolderPath(Environment.SpecialFolder.ProgramFiles).Trim() + "\\SQLEXPR2005";
and change it to
protected string _SQLEXPRSourcePath = "SQLEXPR2008";
protected string _SQLEXPRInstallPath = Environment.GetFolderPath(Environment.SpecialFolder.ProgramFiles).Trim() + "\\SQLEXPR2008";
By doing this you will enable your Setup and Deployment project to install SQL Express 2008 automatically like mentioned in this article.
|
|
|
|
 |
|
 |
Hi John,
I tried with SQL Express 2008 basic one (just the database). In fact I added yourJohnKenedy.DataAccess
project to my test project (a small windows application) I made the above chages and built the project.
While building, it gave some error related to x64 files and I excluded those files. Also it prompted me
if I would want to use the MergeModules instead of some of the SQLExpress files when adding the SQLExpress setup files to the setup project. After excluding those files I could build
the setup project. And the application install went fine.
When I try to run the application, after the first form when I click Next, it throws the following error:
"Retrieving the COM class factory for component with CLSID {10020200-E260-11CF-AE68-00AA004A34D5} failed due to the following error: 80040154."
Not sure if it has something to do with SQLDMO.dll. Thoughts??
HK
|
|
|
|
 |
|
 |
Hi John Kenedy S. Kom.
First congratulations by your library. Is there a way to get this code in vb.net?
|
|
|
|
 |
|
 |
The above code in VB.NET should look like this
Public Sub New()
InitializeComponent()
Dim _ins as Installation = new Installation("Food", "JOHN", "MenuMakanan", "Food", "JOHNKENEDYDAL", "FOOD_Data.MDF")
If (_ins.IsDone = False) Then _ins.ShowDialog()
If (_ins.IsRestart = True) Then
Application.Exit()
Close()
Exit Sub
End If
End Sub
Then the VB project must add reference to JohnKenedy.DataAccessModule, although the DataAccessModule is in C# it will work with your VB project. If you prefer to have JohnKenedy.DataAccessModule in VB.NET you can use free tools on the web like http://www.dotnetspider.com/convert/Csharp-To-Vb.aspx[^] to convert C# version of DataAccessModule to VB.NET version, its just some code is in .NET 3.5 you need to carefully translate it.
|
|
|
|
 |
|
 |
In eliminating db deployment issues.
Depending on the nature of the project, of course.
|
|
|
|
 |