5
Answers

Exe is used only 10 times after open the exe application expired message is shown


Hi All,

EXE will be opened 10 times only. After that click the EXE "Application is Expired" message will be shown.

I am trying this using Registry - Its working. But If find the Registry Key Location, change(I'm tried with encryption) the Key value or Delete the Registry Folder means after that the EXE will be run.

So, I need Nobody hack the Registry Location/Some heavy Encryption will do.

Anybody know the Solution.

Please reply immediately...

By
MsHema.

Answers (5)

0
Photo of Roei Bar
NA 7.8k 0 15y
why dont you use a date Expiration insted its much easier

http://www.csharphelp.com/archives2/archive320.html

if you want to encrypt the registry its ok but can also be hacked very easily by capturing the memory point of the application and checking out the Key Used for Decrypt.
Accepted
0
Photo of MEHA SHANMUGASUNDARA
NA 49 96.6k 15y

Hi,
Thank you very much for ur reply.
If I use the resources means the exe will be delete or unistall & install again the resources will be reassigned.
But I want the user will use the exe in number of times only.
But i dont know how can i use the resource to my application.
Any other Option for the First time the EXE will be installed means create one file in OS.
Give me a solution to me,Please !
Thanx & regardsm
MsHema
 
 
0
Photo of Master  Billa
NA 2.7k 0 15y
Hi,

For this we can do this way,

1. just a create class lib  porject and there add a resource file.then create key and value there so when you are open your application update count with in the resource file  with encryption.

2.see now when you are deploy the project with that dll make sure resource file as embbed. so no can;t know the where you are keeping count.

if they delete the dll, it will be probs, but other way no issues in this way

thank you
0
Photo of Roei Bar
NA 7.8k 0 15y
it is very unlikely that the user will mess around with his Calander for this since a lot of things will stop working.

then again, you can do another thing,

call a web Service to authenticate, send over the currentDate and current machine information.

if no access to the Web, then stop the application, and same if the server will say it is faulty.

again you can try to manipulate the registry with some fancy Crypt:

here is a good post :

http://www.obviex.com/samples/Encryption.aspx

good luck
0
Photo of Jagjit Saini
NA 4 0 15y
Date expiration is ok. But what if the user changes the system date?.
Registry is ok but it can be hacked.