Windows Develop Bookmark and Share   
 index > ClickOnce and Setup & Deployment Projects > creating trail version of c# application and expiring setup
 

creating trail version of c# application and expiring setup

Hi all

Recently i have created an application in c# using visual studio 2008 and deployed it by adding a new setup and deployment project.


Now i want to do two more things

1) i want my application to expire after a certain period of time e.g 30 days.

2) i want my setup to be executed only once.i.e once the application is installed the setup should no longer to executable after the first installation.This might not be a very good approach but i have a situation where this is my one of the most important requirement.


Plzz must reply and with detail because i am not very good at understanding thing pretty quickly and also not good in setup and deployment.


C# lover
sohail Khaliq  Friday, July 10, 2009 8:17 AM
Hi sohail Khaliq,

There is no well known method to expire your application. Microsoft Windows Activate technology has patent. We even don't know how it is made. Here is some way I think you can take.
1. When your application is run, check a special register key. If it doesn't exist, write the key into the register with the current date time.
2. If the key is there but the date time is 30 days ago, tell your user to buy a new product ID. If he can enter the correct id, update that register key to the currect day.
3. Don't tell your user where the register key is, otherwise they can make one by themselves.
4. Setup project cannot restrict user from installing it only once.

If you have anything unclear, please feel free to tell me.

Sincerely,
Kira Qian
Please mark the replies as answers if they help and unmark if they don't.
Kira Qian  Monday, July 13, 2009 7:14 AM
Hi sohail Khaliq,

There is no well known method to expire your application. Microsoft Windows Activate technology has patent. We even don't know how it is made. Here is some way I think you can take.
1. When your application is run, check a special register key. If it doesn't exist, write the key into the register with the current date time.
2. If the key is there but the date time is 30 days ago, tell your user to buy a new product ID. If he can enter the correct id, update that register key to the currect day.
3. Don't tell your user where the register key is, otherwise they can make one by themselves.
4. Setup project cannot restrict user from installing it only once.

If you have anything unclear, please feel free to tell me.

Sincerely,
Kira Qian
Please mark the replies as answers if they help and unmark if they don't.
Kira Qian  Monday, July 13, 2009 7:14 AM

You can use google to search for other answers

Custom Search

More Threads

• C# Service Project and Installservice
• Impossible to publish with prerequesites
• How to automate the process of creating MSI
• Deploying resource files from other referenced projects, as is
• URGENT: Install from CD and update from Internet
• Dialogs display in Setup project
• Running CustomAction as TrustedInstaller
• Crystal Report Does not Support in Vista
• Help with bootstrap installation
• Deploy 2 projects into 1 Setup package