MAKEMSI quickly and reliably creates MSI files in a non-programmatic way
Have your say! Join the MAKEMSI discussion list or view archive! Suggest improvements. No question too simple or too complex.
[Bottom][Contents][Prev]: Useful Macros[Next]: The 'CRLF' Macro
Have your say! Join the MAKEMSI discussion list or view archive! Suggest improvements. No question too simple or too complex.
\->Source Code->Commands->Useful Macros->The 'AnyDir' Macro

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>


Microsoft awarded me an MVP (Most Valuable Professional award) in 2004, 2005, 2006, 2007, 2008 & 2009 for the Windows SDK (Windows Installer) area.Please email me any feedback, additional information or corrections.
See this page online (look for updates)

[Top][Contents][Prev]: Useful Macros[Next]: The 'CRLF' Macro


MAKEMSI© is (C)opyright Dennis Bareis 2003-2008 (All rights reserved).
Saturday May 28 2022 at 3:11pm
Visit MAKEMSI's Home Page
Microsoft awarded me an MVP (Most Valuable Professional award) in 2004, 2005, 2006, 2007, 2008 & 2009 for the Windows SDK (Windows Installer) area.