?
Solved

Creating trial expire on a exe using vb.net

Posted on 2004-10-12
14
Medium Priority
?
1,458 Views
Last Modified: 2010-05-18
Hi All
          I have created a exe using vb.net. I want that if I will copy that exe into some system that sould not run more than 15 days in that system. How will i do that. Shall I have to write into registry or what i have to do. Can u plz some one help n this.
   Thanking U All
waiting for reply

Arun Kumar Sabat
0
Comment
Question by:arun_sabat
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 7
  • 6
14 Comments
 
LVL 1

Expert Comment

by:maykut
ID: 12295221
Just Create a Registry Setting
0
 

Author Comment

by:arun_sabat
ID: 12295244
But I don't  Have Idea More on How to create a Registry Setting. Can U plz tell About this. Or Do u have a proper URL such that I can go through that


Thanking U
Bye

Arun Kumar Sabat
0
 
LVL 1

Expert Comment

by:maykut
ID: 12295264
what you would do is when the program launches it will read get the current date, then on the current date at 15 days, which is your limit. Then write both of these to the registry and when the program launches reload both of these entries and compare for example get the difference bewteen the current date and expiry date and if the difference bewteen both dates is a negative value then your program shuts down. Do you need the code. i can provide it for you?
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Author Comment

by:arun_sabat
ID: 12295274
Yes Dude I need the code that will helpfull to me. Becasuse for the First time I am going to code on registry.
Thanking U
Bye
Arun Kumar Sabat
0
 
LVL 1

Expert Comment

by:maykut
ID: 12295294
Ok I've created a class of my own so I need to email it to you. All my coding is based on my class whats your email address?
0
 

Author Comment

by:arun_sabat
ID: 12295325
Yes U can Mail Me to
rc_arun@hotmail.com

or
arun_sabat@rediffmail.com
or
arun_sabat@yahoo.com

Moment U will Send to me just Buzz me in Expert Exchange Only.

Such that I will check My mail.

Thanking U

Bye

Arun Kumar Sabat
0
 
LVL 1

Expert Comment

by:maykut
ID: 12295372
Ok I've sent it.
0
 

Author Comment

by:arun_sabat
ID: 12316107
Hi Michael. h r u? have u remember me.

I have a issue that, If I am writing into registry If Some one will search in his registry. he will get my key name and he can change the date there.

Or else If also I am putting some countdown value in the registry also he can change the value.
So It is not secure one. Can u tell me how will I make it secure.

Or Is there any other way to resolve it.

Thanking U

Bye
Arun Kumar Sabat

0
 
LVL 1

Expert Comment

by:maykut
ID: 12316151
what you can do is use wmi to generate a random value based on CPU ID, Machine ID, IP Address etc, depending on your choice. You then convert this into a Hex format, which you use as a registration key. Basically the customer provides you with this key and you provide a code to unlock the application. When you design this procedure design it so that if the customer deletes the key on the next time it boots up it generates a random value again. I've done this procedure and its hard for customers to try and crack my programs.
0
 
LVL 1

Expert Comment

by:maykut
ID: 12316160
you can hide the registry values to. But a better way would be to generate random Registration numbers based on computer id.
0
 

Author Comment

by:arun_sabat
ID: 12316198
Ok If I will generate a random number According that I will store it in Registry. But If I am writting into registry. Nest time when I will check How will I find the Random Value  again to go there and check the date.  I can't store that to in database also. So I thing hiding a key will be better way to resolve this issue. But How to hide a regustry key Is there any function or property.

let I have hided also can i test that one it is there or not .

0
 
LVL 1

Accepted Solution

by:
maykut earned 60 total points
ID: 12316206
I've can give you a sample code of mine that will show you how to generate the random values and validate if its correct. Hiding registry, I've got a code for that to I'll have to find it.
0
 

Author Comment

by:arun_sabat
ID: 12316235
yes dude u can send me the code. Here I am trting for that only. If i will get i will inform u.

0
 

Expert Comment

by:whittlephilip
ID: 13666511
Wow, looks like I'm behind times here since this is an old thread. I sure would like to know how to do what you've discussed. Is there a chance someone will share this knowledge with me?
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Article by: jpaulino
XML Literals are a great way to handle XML files and the community doesn’t use it as much as it should.  An XML Literal is like a String (http://msdn.microsoft.com/en-us/library/system.string.aspx) Literal, only instead of starting and ending with w…
Introduction When many people think of the WebBrowser (http://msdn.microsoft.com/en-us/library/2te2y1x6%28v=VS.85%29.aspx) control, they immediately think of a control which allows the viewing and navigation of web pages. While this is true, it's a…
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…
Suggested Courses

801 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question