Re: [WiX-users] CreateFolder and CopyFile elements

2008-06-24 Thread ramya ragupathy

Hi All,
 Component Id=ProductComponent1
Guid={4971CCA6-FE16-4a1d-8E03-9925F2EF85EA}
 File Id='File1' Name='test' LongName='test.txt'
DiskId='1'   Source='test.txt' Vital='yes'
/File

CopyFile Id='FileCopy71' DestinationProperty='DEST'
DestinationLongName ='test.dll'   DestinationName='t.dll'
FileId='File1'/

  /Component
 Property Id='DEST'C:\Sample/Property

This code was able to create a folder called Sample in C:\ (the folder did
not exist previously) and copy the specified file to the destination. The
filecopy was succesful with the path specified as a property. i faced
problems when i used the DestinationDirectory and SourceDirectory
Attribute.It would be gud if someone could help me with this issue


Ramya
-- 
View this message in context: 
http://www.nabble.com/CreateFolder-and-CopyFile-elements-tp17983049p18089198.html
Sent from the wix-users mailing list archive at Nabble.com.


-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


[WiX-users] CreateFolder and CopyFile elements

2008-06-18 Thread Natxo Mateos
Hi,

I have stored in a property a path where I need to create a folder and 
afterwards copy in it some files.

I've played a bit with the CreateFolder element, but I don't know how 
to parse the information stored in my property to correctly create the 
directory.

I've also tried to use the CopyFile element, but I've been unable to 
move the file copied in the INSTALLOCATION to my desired new location 
stored in the property. That's a code snippet of what I try, but seems 
that I couldn't specify the Delete attribute if the FileId is defined :

Component...
File Id=TestFile Name=test.txt Source=test.txt 
Vital='yes' DiskId='1' /
CopyFile Id=copyFile FileId=TestFile Delete=yes 
DestinationProperty=[COPY_FOLDER]/
...
/Component

How could this be achieved? There are some samples?
   
Another problem is that my installer have to copy a bunch of files to 
diferent folders (not all to the INSTALLLOCATION path), and I'm not sure 
how to achieve this. The better way would be defining diferent modules 
or fragments in diferent wix files? Or it would exist a better option?

Thanks in advance.
-- 

Regards,

*Natxo Mateos*
[EMAIL PROTECTED]

*Asuni CAD* - _www.asuni.es http://www.asuni.es_ - 93 319 6868 - 91 
541 6439
*Especialistas en el desarrollo de aplicaciones a medida sobre AutoCAD*

-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users