2
Answers

registry operation

Administrator

Administrator

22y
1.4k
1
In .net I want to develop a install solution which install my program into a path and the path is used in the program,so I think I can write the install path into the registry file when install the program,and in my program ,I read the specifi ed key value in the registry file.But how to write the install path into the regi stry file in the intall solution?
Answers (2)
0
Administrator
Admin 2.3k 1.3m 22y
See Tutorials section on how to read and write from/to the registry
0
Administrator
Admin 2.3k 1.3m 22y
You can get the application path without having to write the path to the registry, try using System.Windows.Forms.Application.ExecutablePath to get the path of your application. Is there any specific reason why you want to write this to the registry?