Take a look at this line: <Property Id="WIXUI_INSTALLDIR" Value="COMBINEDPRODUCTFOLDER" />
That will set the value of the WIXUI_INSTALLDIR property to "COMBINEDPRODUCTFOLDER", not the value of the COMBINEDPRODUCTFOLDER property. To set a property with the value of other properties, you need to use a Type 51 custom action. Here is a working example from my current project, it sets the property CAKE_WRITE_TSB_INI to a combination of 3 other properties: <CustomAction Id="CAKE_SETUP" Property="CAKE_WRITE_TSB_INI" Value="[TSBDIR]---[IVIDIRPROP]---[WindowsFolder]" Execute="immediate" /> ... <InstallExecuteSequence> <Custom Action='CAKE_SETUP' After='AppSearch'>TSBDIR</Custom> </InstallExecuteSequence> That may or may not fix the original problem, but it should fix some problem. Julie Campbell [EMAIL PROTECTED] ----------------------------- Message: 3 Date: Wed, 20 Jun 2007 10:24:14 +0100 From: "Nick Meredith" <[EMAIL PROTECTED]> Subject: [WiX-users] ConfigurableDirectory being ignored To: <wix-users@lists.sourceforge.net> Message-ID: <[EMAIL PROTECTED]> Content-Type: text/plain; charset="us-ascii" Hi all, I have a problem changing an existing installer. Orginially the user could specify the value of INSTALLDIR via the UI to choose the location of the install (which defaulted to C:\Program Files\...). This was all working fine. Then we reaised that we actually needed to control the install location at a higher level in the tree (COMBINEDPRODUCTFOLDER - see code extract below) so that we could fix the structure of directories below this level. We changed the ConfigurableDirectory on the Feature to the new directory and changed the UI to set this value instead. The installer still runs through okay and defaults the directory for the user at the right level, then goes ahead and installs. The problem is that the files are still created under the default C:\Program Files\... location regardless of what the user enters in the UI. Can anyone explain what I'm doing wrong - I'm sure you should be able to do this? Thanks, Nick <Directory Id="TARGETDIR" Name="SourceDir"> <Directory Id="ProgramFilesFolder" Name="PFiles"> <Directory Id="CompanyFolder" Name="$(var.CompanyName83)" LongName="$(var.CompanyName)"> <Directory Id="COMBINEDPRODUCTFOLDER" Name="$(var.ProductGroupName83)" LongName="$(var.ProductGroupName)"> <Directory Id="ModuleFolder" Name="$(var.ModuleName83)" LongName="$(var.ModuleName)"> <Directory Id="INSTALLDIR" Name="$(var.ProductName83)" LongName="$(var.ProductName)"> <Component Id="InstallDirFolder" Guid="746F3BEC-75DF-417a-9BF8-027464B5180A" KeyPath="yes"> <CreateFolder /> </Component> </Directory> </Directory> </Directory> </Directory> </Directory> </Directory> ... <Feature Id="DefaultFeature" Level="1" ConfigurableDirectory="COMBINEDPRODUCTFOLDER"> <ComponentRef Id="InstallDirFolder" /> ... </Feature> ... <Property Id="WIXUI_INSTALLDIR" Value="COMBINEDPRODUCTFOLDER" /> _____________________________________________________________________________ Scanned by IBM Email Security Management Services powered by MessageLabs. For more information please visit http://www.ers.ibm.com _____________________________________________________________________________ ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users