This is an example of how to use Advanced INF Installer to prompt the user to specify a destination directory for your application. If the MS Office registry key and value name exist, and the registry key value is a valid directory on the user's system, Advanced Pack displays a dialog box asking the user if he would like to install in the office directory.
Note:
The flag value used is 1. To not prompt the user to accept the default destination,
a flag value of 5 can be used instead.
[CustomDestinationSection]
49000=CustomLDIDSection,1
[CustomLDIDSection]
HKLM,"SOFTWARE\Microsoft\Microsoft
Office\95\InstallRoot","","Would you like to install this template in
your office directory?","C:\MSOFFFICE"