The difference is <CreateFolder/> What's going on here is that MSI will never create a directory if there are no files to be installed there - unless you add the directory to the CreateFolders table by adding <CreateFolder/> under a component in that directory. Yes, that's right you need a component per empty folder so that MSI can use that to decide *when* the folder should be created - what features it belongs to, when to remove it, and so on.
HTH John 2009/6/24 Jirong Hu <jirong...@gov.ab.ca>: > I tried the following, the last four directories are not created, why? > > <!-- Temp folders --> > <Directory Id="Root" Name="Root"> > <Directory Id="Temp" Name="Temp"> > <Directory Id="Exceptions" Name="Except" > LongName="SFS Exceptions Trace Output"> > <Component Id="TempFolderExcept" > Guid="0A809D08-5518-11DE-8B06-BA3956D89593"> > <CreateFolder > Directory="Exceptions"/> > </Component> > <Directory Id="ExCONNX" Name="CONNX"> > <Component > Id="TempFolderCONNX" Guid="BFAC81A5-5165-45e5-AA6E-0800331C464C"> > <CreateFolder/> > </Component> > </Directory> > <Directory Id="ExBridge" Name="Bridge"> > <Component > Id="TempFolderBridge" Guid="D1F1514A-375D-4d70-803E-50C151A65011"> > <CreateFolder/> > </Component> > </Directory> > <Directory Id="TempWebServices" > Name="SFSWebSe" LongName="SFSWebServices"/> > <Directory Id="TempInternal" > Name="Internal"/> > <Directory Id="TempStudent" > Name="Student"/> > <Directory Id="TempInstitution" > Name="Institut" LongName="Institution"/> > </Directory> > </Directory> > </Directory> > > > -----Original Message----- > From: Jirong Hu [mailto:jirong...@gov.ab.ca] > Sent: Wednesday, June 24, 2009 9:41 AM > To: 'General discussion for Windows Installer XML toolset.' > Subject: [WiX-users] About <Directory>, what's the difference? > > Hi > > Both of these two methods will create directories, what's the difference? > > ------------------------------- > <Directory Id="WebRoots" Name="WebRoots"> > <Directory Id="WebServices" Name="SFSWebSe" > LongName="SFSWebServices"/> > <Directory Id="Internal" Name="Internal"/> > <Directory Id="Student" Name="Student"/> > <Directory Id="Institution" Name="Institut" > LongName="Institution"/> > </Directory> > -------------------------------- > > ~~~~~~~~~~~~~~~~ > <Directory Id="ExBridge" Name="Bridge"> > <Component Id="TempFolderBridge" > Guid="D1F1514A-375D-4d70-803E-50C151A65011"> > <CreateFolder/> > </Component> > </Directory> > ~~~~~~~~~~~~~~~~~~~~ > > Thanks > Jirong Hu > Build Master > 780-644-5488 > > > This communication is intended for the use of the recipient to which it is > addressed, and may contain confidential, personal, and or privileged > information. Please contact us immediately if you are not the intended > recipient of this communication, and do not copy, distribute, or take action > relying on it. Any communication received in error, or subsequent reply, > should be deleted or destroyed. > ------------------------------------------------------------------------------ > _______________________________________________ > WiX-users mailing list > WiX-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wix-users > > This communication is intended for the use of the recipient to which it is > addressed, and may contain confidential, personal, and or privileged > information. Please contact us immediately if you are not the intended > recipient of this communication, and do not copy, distribute, or take action > relying on it. Any communication received in error, or subsequent reply, > should be deleted or destroyed. > > ------------------------------------------------------------------------------ > _______________________________________________ > WiX-users mailing list > WiX-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wix-users > ------------------------------------------------------------------------------ _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users