Checking if a file exists - 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!

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

Checking if a file exists

Hi,

I am an Advanced Installer newbie and I would like to know what I need to do in order to install a file on the target system ONLY if it does not already exist. I need to do this irrespective of the date/time of the source and destination files.

TIA :?

Tony
Quadiago
Posts: 71
Joined: Thu May 31, 2007 9:07 am

Two things you need to do:
1) Ensure the file is in its' own component. To check, select the file in File/Folders view and press F8. If not, right click on it here and choose "Move to New Component".

2) Check "Never Overwrite" in the component's Attributes section.

Press F1 on that page for more info
Quadiago
Posts: 71
Joined: Thu May 31, 2007 9:07 am

Quadiago wrote:If not, right click on it here and choose "Move to New Component".
That option may be disabled if the file is also the key-file for that component. Mark another file as the key-file (right-click) and it should solve the problem.

Return to “Common Problems”