how to get the default install folder in the registry

  • Thread starter Thread starter Christopher Pragash
  • Start date Start date
C

Christopher Pragash

hello all,

I'm using the windows installer tool to package a VB6 application. I need to
add a custom registry entry after the applciation files are copied. The
value of the entry needs to point to an exe inside the default install
folder. How do I retrieve this value dynamically? I tried using
"<DefaultInstallFolder>\App.exe" and "%DefaultInstallFolder%\App.exe"...but
this literally gets added to the registry. Any help is greatly appreciated.

thanks,
chris
 
[TARGETDIR]App.exe should work. TARGETDIR is the name of the actual Windows Installer property for
the installation folder.
 
Back
Top