0

我用 C# 创建了一个在登录时启动的应用程序,以跟踪通过数千台计算机安装的软件。维护几乎是不可能的,因为可执行文件是从网络共享启动的,并且经常按预期锁定。

使用另一个可执行文件可以通过在访问主可执行文件之前查看 xml 文件的真/假布尔值来解决此问题:

AccessManager.exe --> XML, if true --> main.exe
                           if false, exit!

但我将不得不创建另一个项目。有没有办法避免这种情况?

编辑:数据库文件(SQLite)与主应用程序位于同一文件夹中。

4

1 回答 1

1

Why not have a command script that copies the app to the user's appdata folder and then runs it from there? Then nobody ever has a lock on the executable and when you update it the users will get the newest version when they log in again.

BTW, if the user loses network when running from a network share.... Not good.

于 2015-12-04T16:56:23.063 回答