I have developed an application in C# using WPF. I want to publish the software to my website so users can download the installer and it will automatically update when I release a new version.
我使用WPF在c#中开发了一个应用程序。我想把软件发布到我的网站上,这样用户就可以下载安装程序,当我发布新版本时,它会自动更新。
I am having a couple of problems with the publishing of the project.
我在这个项目的出版上有一些问题。
First of all, the software is using an embedded SQLite Database. When I run the installer from the website, it downloads fine but does not include the database file that the software needs. How can I include the database file in to the installer.
首先,该软件使用的是嵌入式SQLite数据库。当我从网站运行安装程序时,它下载的很好,但是不包括软件需要的数据库文件。如何将数据库文件包含到安装程序中。
The second problem is how to choose where the program installs to on the users PC. When I installed it I expected it would install to C:\Program Files\Company Name\Project Name but it doesn't put it there. How can I do this as well.
第二个问题是如何选择程序在用户PC上安装的位置。当我安装我期望它会安装C:\Program Files\Company名称\项目名称但并不把它放在那里。我该怎么做呢?
Thanks for any help you can provide with this.
谢谢你的帮助。
1 个解决方案
#1
0
- include your db file into project and restore db from it when application start
- 将您的db文件包含到项目中,并在应用程序启动时从它恢复数据库。
- you are using clickonce, so you deal with sandbox application/ So you have 2 options - do not use clickonce (google for dday project for example or use windows installer) or use clickonce paths to found your files (take a look)
- 您正在使用clickonce,所以您需要处理沙箱应用程序/因此您有两个选项—不要使用clickonce(例如,dday项目的谷歌或使用windows安装程序)或使用clickonce路径来找到您的文件(请查看)
#1
0
- include your db file into project and restore db from it when application start
- 将您的db文件包含到项目中,并在应用程序启动时从它恢复数据库。
- you are using clickonce, so you deal with sandbox application/ So you have 2 options - do not use clickonce (google for dday project for example or use windows installer) or use clickonce paths to found your files (take a look)
- 您正在使用clickonce,所以您需要处理沙箱应用程序/因此您有两个选项—不要使用clickonce(例如,dday项目的谷歌或使用windows安装程序)或使用clickonce路径来找到您的文件(请查看)