1. Create a registry item with the value [TARGETDIR] in it.
2. That's just programming, Registry classes like RegistryKey, assuming
that's what your question is about.

Signature
Phil Wilson
[Microsoft MVP-Windows Installer]
Definitive Guide to Windows Installer
http://apress.com/book/bookDisplay.html?bID=280
> In the "Registry on Target machine" in my setup program (visual studio
> .net)
[quoted text clipped - 8 lines]
> thanks
> Newbie