Click here to Skip to main content
15,895,011 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi ,
I wanna assign value to variable after compiling .
As example I wanna save computer information and date of starting and ... .

It saves this information into the .exe file and if user copy this file to another computer , Program will be automatically compare this information and current computer information (And disable to run).

Is it possible ? How can I save this data in .exe file without using database , or file or registry ?!

I am using C#

Thank u for read .
Posted

1 solution

I don't know of any way to save it into the .Exe file because that would include you recompiling it. What is often done is you have a license file where you encrypt the data you need to store. Then if the license file is not there you can disable the app. Or, if some of the information in the license file is not valid you can disable the app.
 
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