I have an application using vb.net with MYSQL database in visual studio 2015 now i need to create a installation package to deploy the application to client computer.
I don't have any idea how to do this please anyone give tips how i can do this, im new with MYSQL.
It depends, what technology are you using? If you are using entity framework you should have a .config file in your project, usually it's called app.Config, you can specify your <connectionStrings> there. Else if you use SqlConnection, you'll have to change that string.
Related
Im creating a project on visual studio using .net and im going to need to create a setup to install the project on another computer but i have no ideia how to include the database that is on my localhost
I created the database with MySQL workbench.
Use Install Shield to create exe/setup file.
here you can download
https://info.flexerasoftware.com/IS-EVAL-InstallShield-Limited-Edition-Visual-Studio
If you want to more customization use Advance Installer
here you can download Advance Installer
https://www.advancedinstaller.com/
For Database you need install SQL Server or MYSQL workbench. Just make sure correct server name.
I want to use SQL 2008 R2 on the server where I run VS 2012, so I created the "membership" database (using Aspnet_regsql tool) and configured it to work with IIS7). Then I created ASP.NET Application and modified the web.config so that connection string points to this database.
Running this app with VS 2012 debugger results with my app creating the LocalDB ASPNETDB.MDF instance in app_data folder. VS ASP.NET Configuration tool when invoked from VS Tools menu shows the LocalDB based data and the running application access this database instead of SQL Server 2008 R2 server - which runs on the same server.
I believe that this is some side-effect of the VS generated web.config file, but despite looking hard, I found nothing suspicious.
Note: this same scenario works just fine with Visual Studio 2010 if I am using it's own generated web.config file.
I would hate to dismiss VS 2012 for this as I am pretty sure that I did something wrong.
I had the same problem as this and needed to change more than just the connection string. I was targeting .NET 4.0 framework not 4.5, not sure how much difference this makes. I had a look on MSDN http://msdn.microsoft.com/en-us/library/6e9y4s5t(v=vs.100).aspx
You need to change not just the connection string but also the membership defaultProvider so that it is a SqlProvider
I need some help here.
I am using VS 2010 Pro. When I create an empty ASP.NET Website and add users to it either through:
Asp.Net Configuration Wizard or
through a Register.aspx page with createuser wizard
everthing works fine. I get an ASPNETDB.MDF in my App_Data folder. The membership and roles, login and logout all work as expected.
The problem is that the web.config file does not show the connection string to SQL Server Express database file. Also the membership element etc are also missing.
However, if I create an ASP.NET Website (not an empty ASP.NET website), then web.config file carries all the information.
I have tried this on
Windows 7 Ultimate with VS 2010 Pro and IIS 7.5
Windows XP Professional with VS 2010 Pro with VS builtin development server
Same results.
Any ideas?
Thanks for the help
I have found the answer.
The connection string for the ASPNETDB.MDF does not appear in web.config.
The application uses a machine wide connection string defined in the machine.config file.
For more details check my answer here.
I'm using the WebDeploy tool from Visual Studio 2010 since a few weeks and really like it. I was now trying to deploy my database as well using the 'Package/Publish SQL' tab. However, my current project uses a MySQL database and it seems that web deploy from VS is only compatible using MSSQL (sigh).
So my question is: can I get it to deploy my MySQL database? I know there is a custom 'dbFullMySql' provider, but not sure if this can integrate into VS2010. Thanks.
could this be of help to you http://blogs.iis.net/msdeploy/archive/2009/04/29/changes-to-the-custom-provider-for-mysql-dbfullmysql.aspx
What is the best practice for creating an installer for a winform application.
The application is supposed to install the following without connecting to internet.
.Net Framework 3.5sp1
MySQL Server
My SQL Connector
Restore Mysql db
Update Config file with the MySQL uname/pwd.
I have all the msi files for installing the above mentioned items. But am wondering about the best practice to create the installer.
Thanks in advance,
Hi I came up with a similar situation. Firstly you should have .NET framework offline installer which can be downloaded from http://www.microsoft.com/downloads/en/details.aspx?FamilyID=992cffcb-f8ce-41d9-8bd6-31f3e216285c. I assume you are using visual studio installer. There are couple of choices but I prefer to copy the offline .NET installer to the setup projects output directory and from requirements on target machine tab I set the install URL property of .NET framework the exact name of offline setup file. As described in the figure.
So the installer does not try to connect to a remote computer to download .NET framework and install it however I think it is more appropriate that it connects to a Microsoft server and installs it. Anyways the next step is to configure the MySQL server. MySQL is really generous for me since they support a fully documented noinstall files. You can find the document here: http://dev.mysql.com/doc/refman/5.5/en/windows-install-archive.html
Using a noinstall zip archive you can copy the dbengine core files to any folder on the clint machine. And change the configuration parameters of MySQL. You can name the MySQL service anything you want. Start the the service and create tables. You can do all of this stuff from custom actions tab of the setup project choosing the appropriate script files or you can write code for it. The beautiful thing is that your customer does not need to know that he/she is installing a database engine on the target machine. I hope this helps. Thanks.