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
after have built own application project, right click "solution" "add new project", of cource project type setup , deployment project.
add "project outputs" setup project, here, can own application,
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" .
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
Post a Comment