deployment - How to store login Information from within setup dialog -


i have created 1 windows desktop application using visual studio 2010. @ time of creating setup this, in user interface able add dialog textboxes (for storing username, password, email id, , contact number), how store them, can use these values user can login application using username , password?

i searched, didn't doing first time, don't have in-depth idea of it.

you have two options:

1. files

you can store application login information in file structure want like xml or etc.

if want store data more 1 person, must create logic desired structure reading/writing data in file every one.

then, can add in application setup project copy in application install , use values.

2. windows os registry

you can store application login information in subkey of windows os registry structure want.

if want store data more 1 person in every windows os user account, must create logic desired structure reading/writing data in value of subkey in windows os registry.

if want have different information every windows os user account, it's better write data in hkey_current_user root of windows os registry. in other hand, if want same information windows os user accounts, it's better write data in hkey_local_machine root of windows os registry.

it's better add application subkey in software (in *hkey_current_user* root) or software (in *hkey_local_machine* root) subkey.

  • remember must encrypt data prevent access them malicious persons.
  • you can encrypt them , write them binary in file or binary type value of subkey in windows os registry.

Comments

Popular posts from this blog

java - activate/deactivate sonar maven plugin by profile? -

python - TypeError: can only concatenate tuple (not "float") to tuple -

java - What is the difference between String. and String.this. ? -