It's recommended you actually search where your application was installed. Perhaps you store that path in the registry in which case you can retrieve it from there. Then manipulate that path using a custom action to obtain the path required for your property-based folder.
- you have your application installed at 'c:\program files\yourapp'
- a property holds the above path, let's assume the property's name is MYFOLDERPATH
- a custom action would eliminate the 'yourapp' part from the path and replace it with 'somefoldername', then store it in MYFOLDERPATH
- the folder would then install to that path
If you know for sure your application is always installed inside program files, you can use a Property Set with Formatted custom action to set MYFOLDERPATH to [ProgramFilesFolder]. Place this custom action right after Begin standard action in the InstallUISequence then hold Shift and drag it under the Begin standard action in InstallExecuteSequence.
Same suggestion applies for the My Documents location, except you use [PersonalFolder] instead of [ProgramFilesFolder].
The following page describes all properties containing paths to known locations in Windows:http://www.advancedinstaller.com/user-g ... paths.html