在试用应用程序中存储应用程序到期日期的位置 [英] Where to store application expiration date in a trial app

查看:109
本文介绍了在试用应用程序中存储应用程序到期日期的位置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好,


我想将申请截止日期存储在一个文件中,并将

文件存储在安全的地方,以便应用程序可以访问该计算机上所有

用户的文件。


IsolatedStorage是一项很好的技术,但它仅针对每个用户而且是

不是机器级别。注册表不好,因为用户可能无权访问

权限。应用程序目录不好,因为该文件可能被删除,因此应用程序试用模式不起作用。那么什么目录

是好还是windows有一个API来存储文件或数据?


-

Mike

Hello,

I would like to store application expiration date in a file and store that
file in a secure place, so the application can access the file for all the
users on that computer.

IsolatedStorage is a good technique but it is for the each user only and is
not machine level. Registry is not good because the user may not have access
permission. Application directory is not good because the file could be
deleted and so the application trial mode does not work. So what directory
is good or does windows has an API to store a file or data?

--
Mike

推荐答案

您可以随时对其进行加密并将其存储在配置文件中。那将

确保用户无法更改或删除它。只要确保

生产版本也需要输入,所以不能删除它。


-

Jeffrey Hornby

Hornby Consulting,Inc。


" Mike9900"写道:
You could always encrypt it and store it in the config file. That will
ensure that the user can''t change it or delete it. Just make sure that the
production version also requires an entry so it can''t just be deleted.

--
Jeffrey Hornby
Hornby Consulting, Inc.

"Mike9900" wrote:
您好,

我想将应用程序到期日期存储在一个文件中并将该文件存储在一个安全的地方,所以应用程序可以访问该计算机上所有
用户的文件。

IsolatedStorage是一种很好的技术,但它仅适用于每个用户,而不是机器级别。注册表不好,因为用户可能无权访问
权限。应用程序目录不好,因为该文件可能被删除,因此应用程序试用模式不起作用。那么什么目录
是好还是windows有一个API来存储文件或数据?

-
Mike
Hello,

I would like to store application expiration date in a file and store that
file in a secure place, so the application can access the file for all the
users on that computer.

IsolatedStorage is a good technique but it is for the each user only and is
not machine level. Registry is not good because the user may not have access
permission. Application directory is not good because the file could be
deleted and so the application trial mode does not work. So what directory
is good or does windows has an API to store a file or data?

--
Mike



应用程序配置文件?那是一个xml文件。用户可以卸载

应用程序,删除文件然后安装应用程序。

-

Mike

Jeffrey Hornby写道:
Application Config File? That is an xml file. The user could uninstall the
application, remove the file and then install the app.
--
Mike
"Jeffrey Hornby" wrote:
您可以随时加密并将其存储在配置文件中。这将确保用户无法更改或删除它。只要确保
生产版本也需要输入,所以不能删除它。

-
Jeffrey Hornby
Hornby Consulting,Inc。

Mike9900写道:
You could always encrypt it and store it in the config file. That will
ensure that the user can''t change it or delete it. Just make sure that the
production version also requires an entry so it can''t just be deleted.

--
Jeffrey Hornby
Hornby Consulting, Inc.

"Mike9900" wrote:
您好,

我想将应用程序到期日期存储在一个文件中并将该文件存储在一个安全的地方,所以应用程序可以访问该计算机上所有
用户的文件。

IsolatedStorage是一种很好的技术,但它仅适用于每个用户,而不是机器级别。注册表不好,因为用户可能无权访问
权限。应用程序目录不好,因为该文件可能被删除,因此应用程序试用模式不起作用。那么什么目录
是好还是windows有一个API来存储文件或数据?

-
Mike
Hello,

I would like to store application expiration date in a file and store that
file in a secure place, so the application can access the file for all the
users on that computer.

IsolatedStorage is a good technique but it is for the each user only and is
not machine level. Registry is not good because the user may not have access
permission. Application directory is not good because the file could be
deleted and so the application trial mode does not work. So what directory
is good or does windows has an API to store a file or data?

--
Mike



但由于您的生产代码需要应用程序配置文件为

,因此只能通过您的代码将特定条目添加到文件中

(因为它使用只有你知道的密钥加密)。如果他们只是删除了app.config中的
,那么此条目也会被删除。

-

Jeffrey Hornby

Hornby Consulting,Inc。


" Mike9900"写道:
But since your production code needs the application configuration file to be
there with a particular entry that can only be added to the file by your code
(because its encrypted using a key that only you know). If they just delete
the app.config, then this entry also gets deleted.
--
Jeffrey Hornby
Hornby Consulting, Inc.

"Mike9900" wrote:
应用程序配置文件?那是一个xml文件。用户可以卸载
应用程序,删除文件然后安装应用程序。
-
Mike

" Jeffrey Hornby"写道:
Application Config File? That is an xml file. The user could uninstall the
application, remove the file and then install the app.
--
Mike
"Jeffrey Hornby" wrote:
您可以随时加密并将其存储在配置文件中。这将确保用户无法更改或删除它。只要确保
生产版本也需要输入,所以不能删除它。

-
Jeffrey Hornby
Hornby Consulting,Inc。

Mike9900写道:
You could always encrypt it and store it in the config file. That will
ensure that the user can''t change it or delete it. Just make sure that the
production version also requires an entry so it can''t just be deleted.

--
Jeffrey Hornby
Hornby Consulting, Inc.

"Mike9900" wrote:
您好,

我想将应用程序到期日期存储在一个文件中并将该文件存储在一个安全的地方,所以应用程序可以访问该计算机上所有
用户的文件。

IsolatedStorage是一种很好的技术,但它仅适用于每个用户,而不是机器级别。注册表不好,因为用户可能无权访问
权限。应用程序目录不好,因为该文件可能被删除,因此应用程序试用模式不起作用。那么什么目录
是好还是windows有一个API来存储文件或数据?

-
Mike
Hello,

I would like to store application expiration date in a file and store that
file in a secure place, so the application can access the file for all the
users on that computer.

IsolatedStorage is a good technique but it is for the each user only and is
not machine level. Registry is not good because the user may not have access
permission. Application directory is not good because the file could be
deleted and so the application trial mode does not work. So what directory
is good or does windows has an API to store a file or data?

--
Mike



这篇关于在试用应用程序中存储应用程序到期日期的位置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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