Bugs item #1753724, was opened at 2007-07-13 11:31
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=642714&aid=1753724&group_id=105970

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: extensions
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: MaxIvanov (maxivanov)
Assigned to: Scott Kurtzeborn (scotk)
Summary: XmlFile action doesn't work with redirected folders on x64

Initial Comment:
The following code suppose to deploys the file into System32 folder and updates 
it using XmlFile action:

    <?if $(env.BUILDTARGET) = "i386"?>
        <?define IsWin64  = no?>
        <?define WinSystemFolder = SystemFolder?>
    <?else ?>
        <?define IsWin64  = yes?>
        <?define WinSystemFolder = System64Folder?>
    <?endif ?>
    <Directory Id="TARGETDIR">
        <Directory Id="$(var.WinSystemFolder)">
            <Component Win64="$(var.IsWin64)">
                <File Id=”fileConfig” Name="file.config" />
                <util:XmlFile File="[# fileConfig]" Action="setValue" 
ElementPath=" " Name="value" Value=" " />
            </Component>
      </Directory>
    </DirectoryRef>

It works on x86, but breaks on x64 with the following error:
Failed to open XML file D:\WINDOWS\system32\file.config, system error: 
-2147024786
where -2147024786 stands for 0x8007006E: The system cannot open the device or 
file specified.

Looks like XmlFile custom action is 32bit only and doesn't work with redirected 
folders, like System32

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=642714&aid=1753724&group_id=105970

-------------------------------------------------------------------------
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-devs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wix-devs

Reply via email to