All the CommonFilesFolder values in merge modules are by convention appended 
with a mangled guid, but as far as I can tell the mechanism that rationalizes 
all the folder name properties from merge modules (such as 
CommonFilesFolder.guid) at merge time is indiscriminate. If the folder name 
from the merge module *starts* with a standard folder property then the merge 
generates a CA to set it to the actual CommonFilesFolder. So when it gets 
merged into the MSI file it generates that type 51 custom action to set 
CommonFilesFolder<anything at all> to [CommonFilesFolder]. 

So yes, you're right, it is a really bad thing to use folder names in merge 
modules that start exactly like an actual folder name.

Phil Wilson 


-----Original Message-----
From: John Aldridge [mailto:j...@jjdash.demon.co.uk] 
Sent: Wednesday, December 09, 2009 4:13 AM
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] Reserved directory Id names?

I'm getting some behaviour which surprised me... if I have the following 
in a merge module

<Directory Id="CommonFilesFolder">
     <Directory Id="CommonFilesFolder_A" Name="A">
         <Directory Id="CommonFilesFolder_B" Name="B">
             <Component Id="test.txt" Guid="*">
                 <File Id="test.txt" Source="d:\temp\test.txt"/>
             </Component>
         </Directory>
     </Directory>
</Directory>

then when I build an installer using this merge module, I get a number 
of messages like

    light.exe(0,0): warning LGHT1076: ICE82: This action
    CommonFilesFolder_B.E2FF78A9_BB72_4A5F_A259_16A004F2BFDF
    has duplicate sequence number 1 in the table InstallExecuteSequence

and the file test.txt is installed directly in the CommonFilesFolder 
(rather than in the subdirectory A\B below it).

If I change the Ids of the subfolder Directory elements to

<Directory Id="CommonFilesFolder">
     <Directory Id="XCommonFilesFolder_A" Name="A">
         <Directory Id="XCommonFilesFolder_B" Name="B">
             <Component Id="test.txt" Guid="*">
                 <File Id="test.txt" Source="d:\temp\test.txt"/>
             </Component>
         </Directory>
     </Directory>
</Directory>

(i.e insert an 'X' at the start), then I get no warning messages, and 
the file test.txt is installed in the correct location.

Are there some Id name rules I'm not aware of?

-- 
Cheers,
John

------------------------------------------------------------------------------
Return on Information:
Google Enterprise Search pays you back
Get the facts.
http://p.sf.net/sfu/google-dev2dev
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users



*** 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 Portland House, Bressenden Place, London, 
SW1E 5BF (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 7821 3848 or e-mail 
inet.hqhelpd...@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).



------------------------------------------------------------------------------
Return on Information:
Google Enterprise Search pays you back
Get the facts.
http://p.sf.net/sfu/google-dev2dev
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to