Hi,
I took the following method to make a registry key in my setup project. When I run setup, it says
Could not write value MyValue to the key MyKey. Verify that you have the sufficient access to that key, or contact your support personnel. "
Please advise how to fix this. Thanks
Below I have copied the code that I took from the forum
After you have built your own application project, Right Click the "Solution" to "Add a New Project", of cource the project type is Setup and Deployment Project.
Add the "Project Outputs" into the setup project, here, it can be the your own application,
Most of important step: Open the "Regstry" view of the setup project, then add new keys in "HKEY_LOCAL_MACHINE" according to the information I just mentioned. Below the key "Run", you can add a new string value. Then in the value's "Properties" view, enter "[TARGETDIR]YourApplicationName.exe" .
Install your application using the msi file created by setup project, then restart your computer, you can see the result.