Click here to Skip to main content
15,922,696 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
Hi,
This is my first post here.
I have a c# application for windows desktop users. I want to be able to track the active users in real time. What will i
have to do? I thought that i will need to create a windows service running to do it.....

When i say active users i mean the users that have installed my application and have not uninstalled it.So i think that i need a service that will must call a url every 10 minutes and call my website http://www.mywebsite.com/countactiveusers.php ... and be able to retrieve the number after this with php(i can make this part).
I have not big experience and i really don't how to start it , so i will need help on how to start the application, i don't need any ready code.....

Someone can help me to start this?
Thank you all in advance!
Posted
Updated 1-Sep-13 2:04am
v2
Comments
Joezer BH 1-Sep-13 7:34am    
What do you mean by "Active Users"?

BTW:
"This is my first post here." ...
Welcome :) I hope you will enjoy CP and find it useful!
OriginalGriff 1-Sep-13 7:47am    
As Canny Brisk says, you need to tell us rather more about what you are trying to do - we can't see your screen, or access your HDD, or read you mind, so we can only work with what you give us. Remember, there are a huge number of ways to do anything, so the more you can narrow down what you need, the better your chances of a useful reply.
So, start with "what do you mean by Active Users?", move on to "what are you trying to track?", pass through what storage systems you can use, and end up with what you have tried and where you need help!

Help us to help you.
Use the "Improve question" widget to edit your question and provide better information.
dimos78 1-Sep-13 8:05am    
You are right... I have provided more information now.
ridoy 1-Sep-13 7:48am    
I am afraid whether this is possible in a desktop application!
[no name] 1-Sep-13 8:09am    
So.... what possible reason would you have to install a program on users computers for the sole purpose of spying on them?

That's not really anything we particularly want to be involved in, I suspect. It has a distinct flavour of malware, particularly when there is no obvious reason to do it - if I found that something I installed but wasn't using had added a ticker to talk to a website continually through the day, I would probably uninstall it - having Steam do something similar is bad enough, without your app doing the same, and transferring I-know-not-what information to a site I probably have never visited.

And what about people who connect through s 3G modem? They will get charged every ten minutes, potentially running up a huge bill! I suspect they will be very, very annoyed with you...

A much better approach is to count installation via a quick contact to the website (And check for updates at the same time) then count uninstallations via the uninstaller doing much the same. You can also check for updates (optionally, please!) once each time the software is run which confirms the installation status. It won't be as accurate, but it also won't annoy the heck out of any users...
 
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