I have seen this several times as well. It seems to have something to do
with using an ALLCAPS directory id (COMBINEDPRODUCTFOLDER). Try putting
at least one lower case letter in and it will work. I do not know why
this happens. COuld it have something to do with the ALLCAPS directory
ID being treated as a public property?
 
- Brett


  _____  

        From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Nick
Meredith
        Sent: Wednesday, June 20, 2007 4:24 AM
        To: wix-users@lists.sourceforge.net
        Subject: [WiX-users] ConfigurableDirectory being ignored
        
        

        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" />

-------------------------------------------------------------------------
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

Reply via email to