How to refer to the set file path in a registry value?

I need something like the following:

    <RegistryValue Id="Command"
                 Root="HKCR"
                 Key="myProgram\shell\open\command"
                 Type="string"
                 Value='"[SERVER_DIRECTORY]myProgram.exe" "%1"'
                 Action="write">
    </RegistryValue>

      

Where [SERVER_DIRECTORY]

is the directory myProgram.exe

installed by ( ProgramFiles64Folder\MyProgram

). How can i do this?

+3


source to share


1 answer


It should work the way you tried. But you can refer to myProgram.exe

as [#myProgram]

(value myProgram

is Id

element File

). See the formatted type description for details .



+8


source







All Articles