vb.net and sql database application installer - sql

Bit newbie to this but, I am trying to develop an application with vb.net and sqlexpress. My application works perfect it connects to database and shows data on datagrids and all. Now, i wanted to install this application on another computer..... so i added .net freamework and sql express 2012 in prerequisites and have added set up project to main project as well. when i built setup and used on another computer, installing process works with no errors but it does not install sql express at all. thus application does not work. I have seen lots of pages related to one click install with prerequisites and applied solutions but it seems it just does not work.
Any help is greatly appreciated.

Related

How can I create an installation file in vb. Net

I created my project with ms access database and it worked well in the visual studio environment. When I created an installation file/set up and installed it, the system is no longer saving data into the database. How can i overcome this problem?
First of all, check if database is working and linked properly?
2nd, If your User Interface is developed in .Net?
3rd, Use InstallShield to compress your Application data to install it.

debugging .NET application loading slowness

I have an application written using Windows Forms and complied against Visual Studio 2010.
We recently upgraded the solution to Visual Studio 2013 and changed to using hard references to using NuGet to manage dependencies.
The application runs on a terminal server.
When running the application on the terminal server using a version compiled using 2010, it opens instantly. When running a version compiled using 2013, it takes many minutes to open.
How can I find out why the application takes so long to open the initial form?
Any thoughts or ideas about why changing these two things have made the application so slow?
Thank you.
After a lot of debugging, I found out that the MySql.Data.dll component is executing queries twice as slow as previous versions. I downgraded to version 6.3.8 in Nuget and this has increased the speed dramatically.
I hope this helps someone with similar slowness - and using the MySql component set.

SQL DB Deployment

The scenario:
I have written a software application that includes an installer, that is to be used by Mr Layman to install the system on to a single computer.
The system is a simple C# winforms application with an SQL Express database. The target machine would be a standard installation of Windows XP with SQL Express and .NET 3.5 installed.
I am able to create the installer for the winforms app, that would check the version, create all the directories and copy over all the necessary executable's etc. I have also an SQL script that will create the database and populate it with the necessary data. However I do not know how to go about creating a stand alone installer for the database on the target machine.
I have an SQL script that will create the database etc, but how do I make the installer run this script? I've had a google and I don't really know what I'm looking for, can someone point me in the right direction please.
Thank you in advance.
Create a custom action in the installer project that will take your SQL script and run it against the database. Here's an MSDN link that covers the basics.
An installer which runs SQL scripts can be created in 2 ways:
The very hard way:
create an installation with custom dialogs which retrieve the SQL connection information
save that information somehow (in an MSI package you can use installer properties)
write a custom action which uses that information to connect to SQL Server and run your script
The easy way:
use a setup authoring tool which supports SQL scripts
If you want a free solution, I recommend WiX. It has a steep learning curve, but it does what you need.

Can't install SQL Server after Visual Studio Express

I'm trying to re-install SQL Server Express from http://www.microsoft.com/express/Database/.
Visual Studio Web was installed previously, so I removed the SQL Server under add programs before installation, since I didn't get a server administration tool with the bundle.
Now, Microsoft (hello, haven't meet in five years), presents an interface to me (SQL Server Installation Center), with endless popups, progress bars, and eula checkboxes, but nothing more than "Setup Support Files" are being installed.
Are they pulling my leg? (Delicate humor if so, the loop is quite annoying, and finally ends with a crash).
Any way to fix this or should I fallback to a FOSS-db?
regards,
//t
Get the Web Platform Installer. Best case scenario is it will help you get what you need installed (inc. SQL EXPRESS) on top of what you have. Worst case it'll make the process a lot easier if you decide to do a clean build.

publishiing of vb.net application with setup procces

how can i keep the sqlserver install automatically when i install my project with attached my own database to sqlserver 2008 express after publish my project. what is the code i can write to in the setup project under vb.net to keep this happened thanks a lot
To get it to install Sql Server Express, just tick the appropriate box in the prerequisites screen as described here.
To attach your db look at this article for various ways of doing it: Detaching and Attaching Databases
I think the recommended way is to use CREATE DATABASE FOR ATTACH