需要为我的vb应用程序创建安装文件 [英] Need to create a setup file for my vb application

查看:126
本文介绍了需要为我的vb应用程序创建安装文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用visual studio 2010,MSSQL server 2008 R2



a web配置文件包含以下数据



 <   configuration  >  
< configSections >
< / configSections >
< connectionStrings >
< add 名称 = MyConnectionString

< span class =code-attribute> connectionString = 数据源= SMS-PC;初始目录= DBNAME;用户ID = sa;密码= PASSwORD

< span class =code-attribute> providerName = System.Data.SqlClient / >
< / connectionStrings >
< startup >
< ; supportedRuntime version < span class =code-keyword> =
v 4.0 sku = 。NETFramework,Version = v4.0,Profile = Client / >
< / startup >
< / configuration >







i需要创建一个设置,以便



1)EXE和其他文件应该被复制到一个位置

2)数据库自动插入到新系统中

3)应该将app.config文件重写为系统的当前连接字符串。



请一步一步给我解决方案

感谢你...



Sid

解决方案

希望这会对你有所帮助:

http://aspalliance.com/622_StepbyStep_Process_of_Creating_a_Setup_and_Deployment_Project.all [ ^ ]

http://social.msdn.microsoft.com/Forums/vstudio/en-US/29e71b3d-5afa-44bc-af37-2a650e8591f3/deploying-vb-net-desktop-application-with-sql-server-express- as-backend-db-on-a-local-area-network?forum = vbgeneral [ ^ ]

I am using visual studio 2010 , MSSQL server 2008 R2

a web config file contains the below data

<configuration>
    <configSections>
    </configSections>
    <connectionStrings>
        <add name="MyConnectionString"

            connectionString="Data Source=SMS-PC;Initial Catalog=DBNAME;User ID=sa;Password=PASSwORD"

            providerName="System.Data.SqlClient" />
	</connectionStrings>
    <startup>
        <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0,Profile=Client" />
    </startup>
</configuration>




i need to create a setup such that

1) the EXE and other files should gets copied to a location
2) the database gets automatically inserted to the new system
3) app.config file should be rewritten to the current connection string of the system.

please get me the solution step by step
thanking you ...

Sid

解决方案

Hope this will help you:
http://aspalliance.com/622_StepbyStep_Process_of_Creating_a_Setup_and_Deployment_Project.all[^]
http://social.msdn.microsoft.com/Forums/vstudio/en-US/29e71b3d-5afa-44bc-af37-2a650e8591f3/deploying-vb-net-desktop-application-with-sql-server-express-as-backend-db-on-a-local-area-network?forum=vbgeneral[^]


这篇关于需要为我的vb应用程序创建安装文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆