Instead of installing a file you don't want, copying it to where you do want 
it, and then removing
the original, why don't you just install the file to where you want it in the 
first place?

Rob

Xu nanxuan wrote:
> 1 <Component Id...
> 
> 2 <File Id="f1" Name="n1.txt"/>
> 
> 3 <CopyFile Id="cp1" FileId="f1" DestinationName="d1.txt" 
> DestinationProperty="T1"/>
> 4 <RemoveFile Id="r3" Name="n1.txt" On="both"/>
> 
> 5 </Component>
>  
> Question 1:
>  
> Is it possible to just CopyFile without installing file? I mean can i 
> remove Line 2? I've tried the following, but it fails
> <CopyFile Id="cp1" SourceName="n1.txt" DestinationName="d1.txt" 
> DestinationProperty="T1"/>
>  
> Question 2:
>  
> I use RemoveFile because n1.txt in Line 1 is useless to my 
> customization. But Line 4 didn't work. I mean n1.txt is still there 
> until executing uninstall. So, how to remove n1.txt just after installation?
>  
> Thanks!
> 
> ------------------------------------------------------------------------
> Express yourself instantly with MSN Messenger! MSN Messenger 
> <http://clk.atdmt.com/AVE/go/onm00200471ave/direct/01/>
> 
> 
> ------------------------------------------------------------------------
> 
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2008.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to