I've seen people use that syntax as well, but have you tried something like
[INSTALLDIR]SystemSettings.xml, assuming the file is being laid down in
INSTALLDIR?

On Wed, Aug 13, 2008 at 5:46 PM, <[EMAIL PROTECTED]> wrote:

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