How to create a Visual Studio Setup project registry value using the application installation path?

I have a very simple application installer that needs to add an action to the shell menu of all files (HKCR * \ shell), and I came across a brick wall: how to insert the installed application path into the registry value? I tried everything I could think of:

  • [Path]
  • [ApplicationFolder]
  • [ApplicationPath]
  • [InstallPath]
  • [InstallRoot]
  • [InstallFolder]
  • [InstallTarget]
  • [TargetPath]

I even tried to add one that I know works in other places ( [Manufacturer] ) to make sure that the syntax of the brackets really works in the registry (it does).

Does anyone know or at least have some ideas that I have not tried?

+4
source share
1 answer

The one you are looking for is [TARGETDIR]

+9
source

All Articles