Copy in search found file - Advanced Installer Community

We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

schnandr
Posts: 1
Joined: Mon Oct 01, 2007 10:53 am

Copy in search found file

Hi,

I have defined a file search which successfully finds a file in the ProgramFilesFolder from another application. Now I want to copy this file into the CommonAppDataFolder/MyCompany/Product/Version.

Can anybody tell me how I can do that? I have tried to define the search result as Property Based Folder using File copy/move. But then the installer tries to create it. The creation fails of course, because the file already exists.
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Hi,

When you create a file search, the RESULT_PROPERTY property will return the path to the file.
In order to use the File copy/move operation with the property-based folder you can create a custom action that will extract the path of the folder that contains that file.

For example: if your file search returns C:\Program Files\Test\a.exe you need to create a property which has the value C:\Program Files\Test\. This property will be used for the property-based folder.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”