Bugs item #1753724, was opened at 2007-07-13 11:31
Message generated for change (Settings changed) made by pmarcu
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: Pending
>Resolution: Fixed
Priority: 5
Private: No
Submitted By: MaxIvanov (maxivanov)
Assigned to: pmarcu (pmarcu)
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: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
WiX-devs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wix-devs

Reply via email to