使用Visual Studio安装程序 [英] Using Visual Studio Installer

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

问题描述

大家好,


我希望我能找到合适的论坛,但我有一个关于创建.msi文件以分发我的应用程序的问题。此时,我的解决方案正在使用附加的localdb(SQL Server 2012 Express Localdb)。 Connectionsring:


数据源=(LocalDB)\ MSSQLLocalDB; AttachDbFilename =" | DataDirectory | \ bcp.mdf" ;; Integrated Security = True; Connect Timeout = 30


完全没问题。我将Visual Studio 2015安装程序安装到Visual Studio。我在我的解决方案中添加了一个安装程序添加了我的localdb(mdf,ldf)。检查了从供应商的网站
等添加SQL Server 2012 Express localDB的先决条件。在构建之后,我能够在干净的计算机上安装我的应用程序。我可以看到安装了SQL Server 2012 Express Localdb,之后我的应用程序安装在progran文件(x86)目录中,包括我的mdf和ldf文件。但是在
启动我的应用程序并打开带有DGV的表单后,我收到一条错误消息:发生网络相关或实例特定错误等。本地数据库运行时错误发生。


此刻我不知道该怎么办,出了什么问题。有什么建议吗?


问候,


Mark Hofland

解决方案


嗨Mark,



欢迎来到MSDN论坛。



此论坛正在讨论Visual Studio WPF / SL Designer,Visual Studio Guidance Automation工具包,开发人员文档和帮助系统以及Visual Studio编辑器。 
会将您的主题移至正确的论坛 
Windows
表格
 >  ClickOnce
和设置和部署项目
 获得专业支持。感谢您的理解。



祝你好运,



乔伊斯


Hi All,

I hope I'm at the right forum, but I have a question about creating an .msi file for distributing my application. At this moment my solution is working with an attached localdb (SQL Server 2012 Express Localdb). Connectionsring:

Data Source=(LocalDB)\MSSQLLocalDB;AttachDbFilename="|DataDirectory|\bcp.mdf";Integrated Security=True;Connect Timeout=30

No problem at all. I installed the Visual Studio 2015 Installer to Visual Studio. I added an installer project to my solution. Added my localdb's (mdf, ldf) to it. Checked the prerequistes to add SQL Server 2012 Express localDB from the vendor's website etc. After the build, I'm able to install my application on a clean computer. I can see the SQL Server 2012 Express Localdb is installed and after that my application is installed in the progran files (x86) directory including my mdf and ldf file. But after starting my application and opening a form with a DGV, I get an error message: A network related or instance specific error occured, etc. Local database runtime error occured.

At this moment I don't know what to do, and what went wrong. Any suggestions?

Regards,

Mark Hofland

解决方案

Hi Mark,

Welcome to MSDN forum.

This forum is discussing Visual Studio WPF/SL Designer, Visual Studio Guidance Automation Toolkit, Developer Documentation and Help System, and Visual Studio Editor. I will move your thread to the correct forum Windows Forms > ClickOnce and Setup & Deployment Projects for a professional support. Thank you for understanding.

Best regards,

Joyce


这篇关于使用Visual Studio安装程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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