The 'AnyDir' Macro |
This macro is can be used to clearly indicate situations where any directory key will do. By default its value is "TARGETDIR" which is fine except if you are creating a merge module.
If you are creating a merge module it is best to override this value with one of your own directory keys as it is not valid for tables other than "Directory" table to reference "TARGETDIR". The "TryMeCreateMergeModule.mm" sample does this. Example(s):
<$Component "INSTALLDIR_PERUSER" Create="Y" Directory_="<$AnyDir>" CU="Y"> ;--- Create a per-user directory --- <$DirectoryTree Key="INSTALLDIR_PERUSER" Dir="[AppDataFolder]\MAKEMSI" MAKE="Y" REMOVE="Y"> <$/Component>