That's correct. This is alluded to in the documentation for ICE warning 69 at 
http://msdn.microsoft.com/en-us/library/aa369019(VS.85).aspx:

"If the component referenced with the [$componentkey] property is already 
installed and is not being changed during the current installation (for 
example, being reinstalled, moved to source, and so forth), the expression 
[$componentkey] evaluates to null, because the action state of the component in 
[$componentkey] is null. Similar problems can occur during upgrade and repair 
operations."

I would expect that you're getting ICE69 warnings given the snippet below, 
since you are doing a cross-component reference using #.

Neil

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED]
Sent: Wednesday, August 13, 2008 2:46 PM
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] Problem with [#fileid] reference.




Am I correct to assume that using [#fileid] syntax to refer to a file
does not work if that files' component is marked with
Permanent="yes" and/or NeverOverwrite="yes"?

I.e. it will only be correctly evaluated if the installer actually
"processes", e.g. installs, the file.

Example:

...
 <Component Id="SystemSettings"
Guid="{GUID}" Permanent="yes"
NeverOverwrite="yes">
   <File
Source="SystemSettings.xml"/>
 </Component>

 <Component Id="Component"
Guid="{GUID}">
    <File
Source="Config.xml"/>

    <util:XmlFile
Id="SetSystemSettingsFile" Action="setValue"
File="[#Config.xml]"

ElementPath="reference/systemsettignsfile"

Value="[#SystemSettings.xml"/>
 </Component>
...

The "[#SystemSettings.xml]" reference will only work the
first time the install is run. When uninstalling, the SystemSettings.xml
file will not be uninstalled (due to the Permanent attribute) and when
re-installed it will not be overwritten (due to the
NeverOverwrite="yes" attribute). But at the same time it will
evaluate [#SystemSettings.xml] to blank/empty so that referenced may not
get what is expected (or what?).

Is this by design or a bug?

/Michael
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Sample disclaimer text

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to