When I deploy winform application on machine and copy application files from program file folder and run on anther machine it runs .how to prevent this? I want to make setup that works for only one pc. Is their any way to do so
Asked
Active
Viewed 60 times
-1
-
Get it's MAC and check it before start – sujith karivelil Jan 22 '16 at 11:44
-
Normally you explicitly don't want that. If there is no technical reason, it should run on another computer. So I think, you are talking about some kind of licensing... – Dieter Meemken Jan 22 '16 at 11:47
-
write some pereferenece on registry – mehari Jan 22 '16 at 11:47
1 Answers
1
You must ask yourself what describe this particural PC? Is it hardaware? or User? or enviroment?
When You do this You can calculate the right checksum of this one PC
You can use system register with user name to calucultate checksum
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\ CurrentVersion\ProductId
is unique per machine/per windows install.
or simple some Environment varable like
Environment.UserDomainName
Environment.UserName
Environment.MachineName
Each position is some way very connect to one PC
Links:
What is a good unique PC identifier?

Community
- 1
- 1

blogprogramisty.net
- 1,714
- 1
- 18
- 22