vb.net - Adding entry to Registry for startup of application -


i took following method make registry key in setup project. when run setup, says

could not write value run key. verify have sufficient access key, or contact support personnel. "

please advise how fix this. thanks

below have copied code took forum

  1. after have built own application project, right click "solution" "add new project", of cource project type setup , deployment project.

    1. add "project outputs" setup project, here, can own application,

    2. most of important step: open "regstry" view of setup project, add new keys in "hkey_local_machine" according information mentioned. below key "run", can add new string value. in value's "properties" view, enter "[targetdir]yourapplicationname.exe" .

    3. install application using msi file created setup project, restart computer, can see result.

you try write registry under current user instead of local machine. end result similar , won't error.


Comments

Popular posts from this blog

ruby - When to use an ORM (Sequel, Datamapper, AR, etc.) vs. pure SQL for querying -

php - PHPDoc: @return void necessary? -

c++ - Convert big endian to little endian when reading from a binary file -