tags:

views:

218

answers:

1

I need to be able to copy a file that exists on the target machines hard-drive based on a registry setting that holds the folder path.

I have been trying to get this going for a day or two and am having difficulty, can anyone help?

Thanks,

B

+1  A: 

Try something along these lines:

<Component Id="MyComponent" Guid="E5FF53DE-1739-42c4-BE37-60F810C9CD69">  
 <Condition>MYTESTDIR</Condition>
 <CopyFile Id="fileToCopy.datCopy" SourceName="[MYTESTDIR]fileToCopy.dat" DestinationProperty="WEBSERVICEBINFOLDER" /> 
</Component>

You can populate MYTESTDIR with a value from the registry using a RegistrySearch.

Bryan Batchelder