Click here to Skip to main content
15,897,187 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have created a website in C#.net and Created ASP.NET deployment package using Web Deployment and Web Setup project (MSI installer file)

I want now that created exe or msi file should run only once on any particular machine or different machince .

i,e EXE should be installed only one once in its life time(one time execution)

For example: I downloaded an exe from website i have installed the exe for first time , the same downloaded exe should not install in the same machine or different machine for second time.

This the urgent requirnment please help me.
Posted
Comments
Sandeep Mewara 10-May-12 5:23am    
Kind of licensing?

its an security related issue, so you need to write your own security program that will attached with that exe and when it will run first time it will make changes in that exe so it will not run again on any of the system.
and also you need to modified your setup/deployment project logic as per that security you implement.
 
Share this answer
 
v2
Comments
santosh Jog 10-May-12 5:48am    
Thanks for the reply .
Please can you tell the security program or procedure which will update the same exe during installation
member60 16-Jun-12 7:53am    
my 5!
Will your PC allow you to install same copy of software more than once? I don't think windows will allow it unless you set "removepreviousversion = true".

Then, If you want to check the presence of your application manually, think
about writing an entry in registry while your installation and read it when you try to install it again...

Regards
Sebastian
 
Share this answer
 
Comments
santosh Jog 10-May-12 5:53am    
Thanks for the reply .
writing an entry in registry during installation is fine in particular machine ,if the user tries to install the same exe in different machine
Sebastian T Xavier 10-May-12 9:24am    
OK, in that case, what about using custom action of installer to save a value to any other machine (to a server for example) and referring that value before installation?

http://msdn.microsoft.com/en-us/library/d9k65z2d(v=vs.80).aspx

this may help you
member60 16-Jun-12 7:53am    
my 5!

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