I trying to copy a file in the following way: 1. Search registry to get the location, where a particular application installed(may be anywhere)- MYAPPLOC. 2. Search a particular file in the location found above-MYDLL (File exists) 3. Copy that file in a known location(installation dir)
Result: It cann't copy file. the launchcondition is failing even though the file exists. I have found it working for only one particular file, but it is failing all the other files although all the files exist. Please let me know if you have any clue about it. Below is the .wxs code: <?xml version='1.0' encoding='windows-1252'?> <Wix xmlns='http://schemas.microsoft.com/wix/2003/01/wi'> <Product Name='Sample Product' Id='866EDB68-1AA9-48BA-BD91-C3986D00368C' Language='1033' Codepage='1252' Version='1.0.0' Manufacturer='XYZ'> <Package Id='????????-????-????-????-????????????' Keywords='Installer' Description="Sample Installer" Comments=' All rights reserved.' Manufacturer='XYZ.' InstallerVersion='100' Languages='1033' Compressed='yes' SummaryCodepage='1252' /> <Property Id="SERVER"> <DirectorySearch Id='XDSearch' Path="[ProgramFilesFolder]\Company\TargetFolder"/> </Property> <Condition Message='This module can only be installed if App Server has been installed first.'> SERVER </Condition> <Property Id='MYAPPLOC'> <RegistrySearch Id='SCRegistry' Type='raw' Root='HKLM' Key='SOFTWARE\MyApp\Setup' Name ='InstallPath'/> </Property> <Condition Message='This module can only be installed if MyApp has been installed first.'> MYAPPLOC </Condition> <Property Id="MYDLL"> <DirectorySearch Id="CheckFileDir1" Path="[MYAPPLOC]bin" Depth="0"> <FileSearch Id="CheckFile1" Name="Utils.dll" /> </DirectorySearch> </Property> <Condition Message='DLL location is not found'> MYDLL </Condition> <Media Id='1' Cabinet='Sample.cab' EmbedCab='yes' DiskPrompt="Sample Installation" /> <Property Id='DiskPrompt' Value="Sample App Installation" /> <Directory Id='TARGETDIR' Name='SourceDir'> <Directory Id='ProgramFilesFolder' Name='PFiles'> <Directory Id='TestCompany' Name='Company'> <Directory Id='TargetFolder' Name='Manage' LongName='TargetFolder'> <Directory Id='INSTALLDIR' Name='Pro10' LongName='Providers'> <Component Id='TestCom' Guid='A4DA8997-8BDD-4394-82B4-4043CE15BA1A'> <File Id='ProviderFile' Name='MSSPI' LongName='MyApp.Test.dll' DiskId='1' Source='MyApp.Test.dll' Vital='yes'> </File> <CopyFile Id='FileCopy7' DestinationDirectory='INSTALLDIR' DestinationLongName ='Utils.dll' DestinationName='ut.dll' SourceProperty='MYDLL'/> <RemoveFile Id='FileRemove7' Directory='INSTALLDIR' LongName='Utils.dll' Name='ut.dll' On='uninstall'/> </Component> </Directory> </Directory> </Directory> </Directory> </Directory> <Feature Id='MYProvider' Title='Test App' Description='Test app' Level='1' ConfigurableDirectory='INSTALLDIR'> <ComponentRef Id='TestCom' /> </Feature> <FragmentRef Id='FragmentUI' /> <AdminExecuteSequence /> <InstallExecuteSequence> <LaunchConditions After='AppSearch' /> <RemoveExistingProducts After='InstallFinalize' /> </InstallExecuteSequence> </Product> </Wix> -- View this message in context: http://www.nabble.com/Problem-with-CopyFile-tf4707977.html#a13456619 Sent from the wix-users mailing list archive at Nabble.com. ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users