4

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

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

I even tried adding one that I know works in other places ([Manufacturer]) to make sure that the bracket-values syntax actually works in the Registry (it does).

Anyone know, or at the least, have any ideas that I haven't tried?

CJM
  • 11,908
  • 20
  • 77
  • 115
Alex Lyman
  • 15,637
  • 3
  • 38
  • 42

1 Answers1

9

The one you are looking for is [TARGETDIR]

Magnus Johansson
  • 28,010
  • 19
  • 106
  • 164