I have an Inno installer for my main application. A feature can also be separately installed with another Inno installer, but I want it to copy its files into the main application's install folder. To do this, {app} for both installers is set to the exact same hardcoded value.

My problem is that the second installer will fail either due to an access denied error on the {app} directory, or it will totally obliterate the contents of the {app} directory.

Is there a way for two installers to share the same {app} folder? Note that it is important that the feature be a separate installer so it shows up in Control Panel, and I need them to share the same {app} folder for design reasons. It would also be nice if the feature could be installed before the main application, and if the feature is uninstalled last, it will delete the install folder.