创建30天的试用期 [英] Create 30 day trial period

查看:127
本文介绍了创建30天的试用期的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经看过这个网站,但是也许我没有正确输入搜索内容.我正在尝试为软件应用程序创建30天的试用期.我现在有一些代码,但是它似乎不适用于Windows 7和Vista UAC,因为它必须写入Windows目录.我不希望dat文件位于应用程序路径中.我试过了
environment.current目录,但是有点像应用程序路径.
关于我可以在没有管理特权的情况下允许文件读写的任何想法?这与UAC的vb net和vb 6似乎是问题所在.
我在XP上运行良好的代码.

I have looked around this site but maybe i am not entering it correctly to the search. I am trying to create a 30 day trial period for a software application. I have some code right now, but it doesn''t seem to work with the Windows 7 and Vista UAC because it has to write to the windows directory. I don''t want the dat file in the applications path. I have tried
environment.currentdirectory but that''s a bit like the app path.
Any ideas as to where I can allow a file to read and write to without administrative privileges? It''s vb net and vb 6 with the UAC on that seems to be the issue.
The code I have worked fine on XP.

推荐答案

您是否有任何特定原因希望使用文件存储试用期?
请记住,如果您确实使用此方法,则完全卸载并重新安装将重新允许试用期.

也许reg设置是更好的选择?另外,作为标准用户,应该具有足够的权限来读取注册表(可能需要管理员安装1st off).

这里有一个使用注册表的很好的例子.
使用VB.NET使用Windows注册表 [
Is there any particular reason you wish to use file to store the trial period?
Bearing in mind that if you do use this method, a complete uninstall and re-install would re-allow the trial period.

Perhaps a reg setting is a better alternative? Also, users as standard should have sufficient permissions to read the registry (may require a admin to install 1st off).

There is a pretty good example here for using the Registry.
Working with Windows Registry using VB.NET[^]

Hope this helps.


这篇关于创建30天的试用期的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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