Software Monkey
Posts: 2
Joined: Fri Dec 07, 2007 2:03 pm

Skipping file copy if file exists

Hi

During installation I would like to copy a configuration file to the target system only if it is not already there. I do not want to over-write the file if it already exists.

I am a newbie with Advanced Installer so please excuse the dumb question.

TIA

Tony
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Hi,

Note that if Windows Installer detects that the file is already installed it will not overwrite it.

However, if you need to make sure that the file will not be overwritten, you can create a search for the file by using the "Search" page:
http://www.advancedinstaller.com/user-guide/search.html

You can use the result of the search to condition the installation of the component of the file (usually the property of the search is RESULT_PROPERTY). This is done in the "Organization" page in the "Component Properties" section:
http://www.advancedinstaller.com/user-g ... rties.html

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

Return to “Common Problems”