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]: (un)Installation Time Problems[Next]: Bugs, Features and Issues (NON-MAKEMSI)
Have your say! Join the MAKEMSI discussion list or view archive! Suggest improvements. No question too simple or too complex.
\->Troubleshooting->(un)Installation Time Problems->Altering one folder unexpectedly also effects others

Altering one folder unexpectedly also effects others

Please consider this code:

<$DirectoryTree Key="MAYCHANGE"  Dir="[ProgramFilesFolder]\a\b">
<$DirectoryTree Key="INSTALLDIR" Dir="[ProgramFilesFolder]\a\b\c\d">

In the above MAKEMSI only creates those directories it needs and so for the "INSTALLDIR" tree it first created the folder "d" then "c" then works out it already knows the rest as "MAYCHANGE". This means that the "INSTALLDIR" subtree has become "rooted" to "MAYCHANGE".

At install time if you alter "MAYCHANGE" then you will also effect "INSTALLDIR"!

It may be better to use the "Directory" command to define the directory that may change as MAKEMSI doesn't keep track of these, if the value actually also gets overriden at run time then this is an example of how the directory could be defined:

<$Directory Key="ALWAYSCHANGED" PARENT="<$AnyDir>" Dir="ALWAYSCHANGED">


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]: (un)Installation Time Problems[Next]: Bugs, Features and Issues (NON-MAKEMSI)


MAKEMSI© is (C)opyright Dennis Bareis 2003-2008 (All rights reserved).
Sunday February 28 2016 at 3:45pm
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.