vb.net db应用程序-部署 [英] vb.net db application - deployment

查看:49
本文介绍了vb.net db应用程序-部署的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

取得了胜利。使用access.accdb后端的表单vb.net db应用程序。我正在努力寻找最佳的部署策略。过去,我已经从/ bin / debug文件夹分发了.exe和access.accdb。可以,但是我不确定这是否是最好的方法。

developed a win. form vb.net db app that uses an access.accdb backend. I am struggling to find the best deployment strategy. In the past, I have distributed the .exe and access.accdb from the /bin/debug folder. This works, but Im not sure if it's the best method.


  1. 此数据库应用程序。将供5-10 ppl,非同时使用的人

  2. 我目前的计划是将.exe和access.accdb放在网络共享驱动器上,用户将从网络共享启动

  3. 用户没有管理员权限,计算机具有严格安全设置

  1. this db app. will be used by 5-10 ppl, non-simultaneous
  2. my current plan is to put the .exe and access.accdb on a network share drive, users will launch from network share
  3. users do not have admin privs, the computers have strict security settings



<我注意到从网络共享启动.exe时,会收到未知的发布者警告;从本地驱动器启动时,此消息不会出现。由于用户安全方面的限制,我知道仅点击发布者警告上的继续/运行是不可行的。没有继续/运行按钮。

I have noticed that when launching the .exe from network share, you get the unknown publisher warning; this message does not appear when launching from local drive. Due to users security restrictions, I know that simply hitting 'continue/run' on the publisher warning is NOT an option. There is no 'continue/run' button.

因此,我假设我必须购买代码签名证书并使用强名对程序集签名?

So, I assume I have to buy a code signing cert and strong name sign the assembly?

我也在这里阅读 http://msdn.microsoft.com/zh-cn/library/142dbbz4%28v=vs.80%29.aspx ,即单击一次部署不需要管理员权限,并且可以从网络共享启动并从缓存运行。

I also read here http://msdn.microsoft.com/en-us/library/142dbbz4%28v=vs.80%29.aspx that clickonce deployment does not require admin privs, and can be launched from network share and ran from cache.

在这种情况下,我购买了Authenticode证书并签署了clickonce清单?

In this case, I buy Authenticode cert and sign the clickonce manifest?

有什么建议吗?

编辑
我遗漏了应用程序的一项关键功能,它将影响部署。

edit I left out a key function of the app that will affect deployment.

用户可以选择文件并上传。 basePath /文件名存储在数据库中。通过openFileDialog和datagridview.cellContentClick上传和检索文件都是相对于从(application.startupPath)启动.exe的位置。我不想将完整路径硬编码到db中,因为我相信它会随着时间的推移(应用程序和文件)移动到新位置。

Users can select files and upload them. The basePath/filename is stored in the db. uploading and retrieving the file via openFileDialog and datagridview.cellContentClick is all relative to where the .exe is launched from (application.startupPath). I didn't want to hard code full paths into the db, because I'm sure it will be moved, (both app and files) over time to a new location.

推荐答案

ClickOnce部署是解决之道。

ClickOnce deployment is the way to go here.

您不必购买任何东西,可以自签名您的程序集时要使用强名称

You do not have to buy anything, you can self sign your assembly with a strong name.

对于内部应用程序应该没问题

This should be fine for an internal application

这篇关于vb.net db应用程序-部署的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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