我将如何在C#中使用注册表来验证1年桌面软件的试用期 [英] How I will use registry in C# for putting validation of trial period of 1 year of desktop softwares

查看:216
本文介绍了我将如何在C#中使用注册表来验证1年桌面软件的试用期的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Plz帮助我并发送电子邮件(电子邮件ID已删除)

如果你的答案或任何其他方式将1年的验证用于桌面软件。

Plz help me and email on(email-id removed)
if you the answer or any other way to put the validation of 1 year for a desktop software.

推荐答案

我认为根据你的问题,这个技巧可能会奏效。假设您在桌面上安装软件时创建文本文件,此文件可以保存安装日期,就像今天日期一样。当您的软件在系统上运行时检查页面加载事件上的日期。如果日期超过,则消息显示您的试用期限已过期。
I think may be this trick is worked, as per your problem. Suppose when you install the software in desktop, Create a Textfile, this file can hold of the Installation Date like that Today Date. When your software is Run on System check Date on Page Loading Event. If Date is exceed then message show your trial Period is Expired.


当您第一次运行您的应用程序时,在注册表中显示一个显示安装日期的条目,然后下次比较此条目使用当前日期,如果日差小于365,则运行您的应用程序,您可以在program.cs文件中执行此操作



此链接显示如何编写条目并从注册表中读取



使用C#从注册表中读取,写入和删除 [ ^ ]
When u run your application for the first time make an entry in the registry which shows installation date, then next time compare this entry with current date, if the day difference is only below 365 then run your application you can do this in the program.cs file

This link shows how to write an entry and read it from registry

Read, write and delete from registry with C#[^]


这篇关于我将如何在C#中使用注册表来验证1年桌面软件的试用期的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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