-1

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

Matt
  • 14,906
  • 27
  • 99
  • 149
Akshay Mahure
  • 181
  • 1
  • 1
  • 6

1 Answers1

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?

What's a good way to uniquely identify a computer?

Generating a unique machine id

Community
  • 1
  • 1
blogprogramisty.net
  • 1,714
  • 1
  • 18
  • 22