how can get the path from installer and how set in my app?
i am writing a win app and now i want to make setup for my app,my code is: Microsoft.Win32.RegistryKey rk = Microsoft.Win32.Registry.LocalMachine.OpenSubKey(@"SOFTWARE\Microsoft\Windows\CurrentVersion\Run"); rk.SetValue("MyAppName", @"C:\WhereMyAppIs\MyApp.exe"); now how can get the path from installer to set it??? thanks. swissben If you use Visual Studio, you can right click on the setup project -> View -> Registry and then set the registry key you like. Check out this sites: msi - Set InstallPath registry key Registry Settings Management (MSDN) If it was installed using Windows Installer (