So what I need to do? How can I use a custom action to change the file on the 
network folder?

I could use the PermissionEx to give the permission to the PersonalFolders? 
<DirectoryRef Id="PersonalFolder">
   <Component Id="PersonalFolder_Permission" Guid="*">
       <CreateFolder>
           <util:PermissionEx User="Users" GenericAll="yes"/>
        </CreateFolder>
    </Component>
</DirectoryRef>

I have tried mapping to local drive:
If I have the UNC path \\myserver\myUser$\Documents to map the User Documents 
to a network folder, I could create logical link to a drive for example I could 
map \\myserver\myUser$ to local drive X:\ so the Documents folder could be 
X:\Documents
I could call the c++ API to add the connection and remove
[DllImport("mpr.dll")]static extern UInt32 WNetAddConnection2(ref NETRESOURCE 
lpNetResource, string lpPassword, string lpUsername, uint 
dwFlags);[DllImport("mpr.dll")]static extern uint WNetCancelConnection2(string 
lpName, uint dwFlags, bool bForce);


> Date: Wed, 26 Nov 2014 12:05:50 -0800
> From: phildgwil...@gmail.com
> To: wix-users@lists.sourceforge.net
> Subject: Re: [WiX-users] UNC path can't modify a file
> 
> If this is a deferred CA in a per machine install the code will be
> running with the system account which usually has not network access
> privileges.  What does "mapping to a local folder" mean?
> ---------------
> Phil Wilson
> 
> 
> On Wed, Nov 26, 2014 at 9:16 AM, Marco Tognacci <mark...@live.it> wrote:
> > I need to modify an xml file located uding UNC path on the network.
> > I tried XmlFile but it report an error "failed to open the file".
> > IS there any way For doing this? I could use a custom action but I have the 
> > same problem accessing the file.
> > I need to map the UNC path to a local folder? How to do thid?
> >
> >
> >
> >
> > Inviata dal mio Windows Phone
> > ------------------------------------------------------------------------------
> > Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
> > from Actuate! Instantly Supercharge Your Business Reports and Dashboards
> > with Interactivity, Sharing, Native Excel Exports, App Integration & more
> > Get technology previously reserved for billion-dollar corporations, FREE
> > http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk
> > _______________________________________________
> > WiX-users mailing list
> > WiX-users@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/wix-users
> 
> ------------------------------------------------------------------------------
> Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
> from Actuate! Instantly Supercharge Your Business Reports and Dashboards
> with Interactivity, Sharing, Native Excel Exports, App Integration & more
> Get technology previously reserved for billion-dollar corporations, FREE
> http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk
> _______________________________________________
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users
                                          
------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to