views:

1356

answers:

1

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?

+3  A: 

The one you are looking for is [TARGETDIR]

Magnus Johansson
I can't believe I didn't think of that one. Thanks!
Alex Lyman
Isn´t it always the case? ;)
Magnus Johansson