how to get the default install folder in the registry

  • Thread starter Christopher Pragash
  • 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
 
P

Phil Wilson

[TARGETDIR]App.exe should work. TARGETDIR is the name of the actual Windows Installer property for
the installation folder.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top