Click here to Skip to main content
15,886,199 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello

I am developing a POS application on C#, which I will be going to give multiple companies on a rental basis.

I will complete this application soon but the problem I am facing is that I don't know how to manage it on rental basis.
When the month is completed and if the client hasn't paid rent then my app gets blocked and shows error.

Please help me in this matter I will thankful to you people.

Regards
Posted
Updated 22-Jan-12 21:55pm
v2

Yes, we can accomplish your task by tracking date of installation and encrypted key
follow th stpes,

1. Provide a encrypted key while installation
2. This encrypted key will contains software end date, say for 1 month.
4. on each login, check "is system date is equal to lessthan encrypted key date" if No then application EXIT
3. on every login, store system date in database , check previous dates should be less or equal than system date
4. if user backs system date or If the day suddenly gone back in time, you will know, user have cheaten and you close the program.
 
Share this answer
 
v2
Comments
fjdiewornncalwe 23-Jan-12 10:53am    
A reasonable solution. +5.
Also be mindful not to alienate good customers.
Whatever method you use I would suggest a phased removal of service.
ie, for the first 3 days after the month end, merely use a nagging screen, then remove a small section of usability, then a larger etc until it becomes completely useless.

Remember that people generally can google for alternatives, so don't go giving them the excuse to ditch your product.
 
Share this answer
 
Comments
fjdiewornncalwe 23-Jan-12 10:53am    
+5. Good advice.
Dalek Dave 23-Jan-12 10:55am    
Thanks Marcus.
This question is already answered. Please refer to

How To create the trial version setup my windows application use vb.net[^]

[The solution mentioned here is actually done in C#]

or Direct link is here :

Application Trial Maker[^]
 
Share this answer
 
by getting login and installation date idea given by you i have done it partially in this way


i have created an table named "Trial" in my db that have
1-LogDate
2-Logtype --login or logout
3-days

on login i m getting the last logdatetime and comparing it with datetime.now if its lessthan '0' (if user have changed time or date) then i m showing error "System outdated "
else user logon. and i subtract lastlogdate with date.now and add in days.

on application exit i m again checking lastlogin which i saved in static class and comapring it with datetime.now and same thing done on login, if date time is lessthan 1 it show error if not than easily logout.

On login i m checking days from db if days>=31 than user can't login.

Now plz tell me that i have done it correctly or not if not plz give me suggestion( the logdatetime is saving in encrypted text)

and also tell me when user pay me rent then how i should reactivate his application by giving him some serial, and if i have 100 customer than how the serial should identical each time for each customer

Regards
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900