如何正确更新现有的应用程序?
我正在开发的应用程序即将完成,但我们已经走到了十字路口。将来,我们将不得不多次更新该应用程序。我们可以轻松地用新版本以及 SQLite 数据库替换应用程序,但同时我们不想这样做。本质上,我们的应用程序由三个部分组成:
1. Application
2. Reports DLL (used by the Application)
3. SQLite database.
我们对应用程序的更新频率将低于 Reports DLL 和 SQLite 数据库的更新频率。我们可能需要添加报告,这意味着我们需要向数据库添加记录并替换 DLL。但是,我在 Visual Studio 2008 中没有找到允许您向其添加逻辑的安装包(不确定是否存在)。我可能可以创建自己的,但如果有 90% 是由 Microsoft 构建的东西,我宁愿使用它。所以我的简单问题是:
- 您可以在 Visual Studio 2008 中添加屏幕/逻辑来设置项目吗?
1a。如果可以的话,有人有我可以使用的好的教程或链接吗?谢谢。
我们不想更换数据库的原因是因为那里可能有他们正在处理的信息。
The application I'm working on is almost finished but we've come to a crossroads. At multiple times in the future, we'll have to update the application. We could easily just replace the application with the new version as well as the SQLite database, but at the same time we don't want to do that. Essentially, our application has three parts:
1. Application
2. Reports DLL (used by the Application)
3. SQLite database.
Our updates to the application are going to be less frequent than that of the Reports DLL and SQLite database. We may need to add a report, meaning we need to add records to the database and replace the DLL. However, I'm not finding an install package in Visual Studio 2008 that allows you to add logic to it (not sure one even exists). I could probably create my own but if there's something 90% built by Microsoft, I'd rather use that. So my simple questions are:
- Can you add screens/logic to setup projects in Visual Studio 2008?
1a. If you can, does anyone have a good tutorial or link that I may be able to use? Thanks.
The reason we don't want to replace the DB is because there may be information in there that they are working on.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
是的,您通常可以向 Visual Studio 设置项目添加新对话框。 这里来自 codeproject 的有关如何执行此操作的教程。
建议您将安装包迁移到 WIX,它是免费的、开源的,还有更多功能灵活的。
Yes you can normally add new dialogs to visual studio setups projects. Here's a tutorial from codeproject on how to do this.
As an advice you can migrate your setup packages to WIX, it's free, open source and a lot more flexible.
您还可以在应用程序启动时处理报告和数据库的更新。
因此,通过安装程序升级后,应用程序第一次运行时,它将更新数据库,添加任何新记录等。
在应用程序中添加升级逻辑通常比在安装程序中更容易,因为它只需要执行一次升级,不会对您的应用程序的一般启动时间产生负面影响。
You can also handle the updates to the reports and database when the application starts.
So after an upgrade via the installer, the first time the application is run, it will update the database, add any new records etc.
Its often easier to add upgrade logic in the application rather than in the installer, and as it only needs to perform the upgrade once, it will not have a negative effect on your applications general startup time.