Hi Ewan,
whenever I enter TARGETDIR into the 'Edit Registry Value' dialog AI resolves it to APPDIR
This is because TARGETDIR is not resolved to an actual folder. It is actually a link between the installation folder of the merge module and the installation folder of the package. If you used TARGETDIR instead of APPDIR, then after the merge the MSI would also use TARGETDIR.
However, what you need can be done in two ways:
1) Use APPDIR in the merge module like any other merge module property (append to its name the GUID of the merge module). Therefore, instead of writing into the registry [APPDIR]MyApp, you will write:
Code: Select all
[APPDIR.DCE47EB2_4B03_4ABD_AC05_FC71936A5DD0]MyApp
where you replace "DCE47EB2_4B03_4ABD_AC05_FC71936A5DD0" with the GUID of your merge module.
2) In the merge module project you can create a sub-folder for "Application Folder". This sub-folder will contain the merge module files and it will have the
Install folder content into the parent folder option set. Also, in the registry value you will use this sub-folder instead of TARGETDIR.
Regards,
Cosmin