Dear group,

We are creating an install program that allows the user to install the 
application files into three changeable locations, EXEROOT, PROGDATAROOT, and 
USERDATAROOT as shown below. These locations are given some default values at 
the beginning of the UI sequence before the Welcome dialog. If we put the file 
component directly inside the Directory structure, say GUI, the file gets 
installed correctly to the location specified by the user.

    <Directory Id="TARGETDIR" Name="SourceDir">
       <Directory Id="ProgramFilesFolder">
          <Directory Id="ABC" Name="ABC">

             <Directory Id="EXEROOT" Name=".">
                <Directory Id="FolderA" Name=" FolderA ">
                   <Directory Id ="GUI" Name ="GUI"/>
                </Directory>
             </Directory>

             <Directory Id="PROGDATAROOT" Name=".">
                <Directory Id="FolderB" Name=" FolderB "/>
             </Directory>

             <Directory Id="USERDATAROOT" Name=".">
                <Directory Id="FolderC" Name=" FolderC "/>
             </Directory>

           </Directory>
        </Directory>
    </Directory>


However, if we put the file component under the DirectoryRef GUI in a fragment 
as shown below, the file always gets installed to the default location, 
regardless of the location the user selects for EXEROOT.

<?xml version="1.0" encoding="utf-8"?>
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi";>
    <Fragment>
        <DirectoryRef Id="GUI">
            <Component Id="cmpAA043A2E0E94B5B1D3F9FC2857040361" Guid="*">
                <File Id="filBA1A10EA0CBD1AB16B03EBA1ED273369" 
Name="GUI_File.rtf" KeyPath="yes" Source=".\License.rtf" />
            </Component>
        </DirectoryRef>
    </Fragment>
</Wix>

Below is part of the install logging where you can see that even though the 
user selects C:\SimSci\ for EXEROOT and GUI is its subdirectory, the GUI is 
still set to the default target location.

Action 20:08:24: ExecuteAction.
Action start 20:08:24: ExecuteAction.
MSI (c) (38:74) [20:08:24:953]: PROPERTY CHANGE: Adding SECONDSEQUENCE 
property. Its value is '1'.
MSI (c) (38:74) [20:08:24:953]: Grabbed execution mutex.
MSI (c) (38:74) [20:08:24:953]: Incrementing counter to disable shutdown. 
Counter after increment: 0
MSI (c) (38:74) [20:08:24:953]: Switching to server: GUI="C:\Program 
Files\SimSci\FolderA\GUI\" EXEROOT="C:\SimSci\" PROGDATAROOT="C:\SimSci\" 
USERDATAROOT="C:\SimSci\"

Please let me know if you have any idea on how to resolve this issue. Your 
input will be highly appreciated.

Thanks a lot,
Miaohsi




*** Confidentiality Notice: This e-mail, including any associated or attached 
files, is intended solely for the individual or entity to which it is 
addressed. This e-mail is confidential and may well also be legally privileged. 
If you have received it in error, you are on notice of its status. Please 
notify the sender immediately by reply e-mail and then delete this message from 
your system. Please do not copy it or use it for any purposes, or disclose its 
contents to any other person. This email comes from a division of the Invensys 
Group, owned by Invensys plc, which is a company registered in England and 
Wales with its registered office at 3rd Floor, 40 Grosvenor Place, London, SW1X 
7AW (Registered number 166023). For a list of European legal entities within 
the Invensys Group, please go to 
http://www.invensys.com/legal/default.asp?top_nav_id=77&nav_id=80&prev_id=77.

You may contact Invensys plc on +44 (0)20 3155 1200 or e-mail 
recept...@invensys.com. This e-mail and any attachments thereto may be subject 
to the terms of any agreements between Invensys (and/or its subsidiaries and 
affiliates) and the recipient (and/or its subsidiaries and affiliates).

------------------------------------------------------------------------------
WhatsUp Gold - Download Free Network Management Software
The most intuitive, comprehensive, and cost-effective network 
management toolset available today.  Delivers lowest initial 
acquisition cost and overall TCO of any competing solution.
http://p.sf.net/sfu/whatsupgold-sd
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to