I developed a C# application which needs several data files. I want to
install them in a subdirectory of my install directory. In addition, I want
to set some registry strings to point to these files. I can get setup to
install the files fine. I can set the registry string values to the correct
paths if I use something like:
[ProgramFilesFolder][Manufacturer]\[ProductName]\WaveFiles\InvalidInput.wav
However, if, at the time of install, I specify a different directory then
the proposed default then this still sets my registry key to the c:\program
files... directory.
How do I set a registry string value from setup to contain the actual
location my location was installed too?
Thanks!
Grant Schenck
carion1 - 15 Dec 2005 19:03 GMT
Don't use the registry. Use a config file.

Signature
Derek Davis
ddavis76@gmail.com
>I developed a C# application which needs several data files. I want to
> install them in a subdirectory of my install directory. In addition, I
[quoted text clipped - 17 lines]
>
> Grant Schenck
Grant Schenck - 15 Dec 2005 19:27 GMT
Never mind... found it [TARGETDIR].
> I developed a C# application which needs several data files. I want to
> install them in a subdirectory of my install directory. In addition, I want
> to set some registry strings to point to these files. I can get setup to
> install the files fine. I can set the registry string values to the correct
> paths if I use something like:
[ProgramFilesFolder][Manufacturer]\[ProductName]\WaveFiles\InvalidInput.wav
> However, if, at the time of install, I specify a different directory then
> the proposed default then this still sets my registry key to the c:\program
[quoted text clipped - 6 lines]
>
> Grant Schenck