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!

gwardell
Posts: 3
Joined: Sat Jul 09, 2016 10:09 am

Installing a file

Hi,

Is it possible to not overwrite an already installed file? Such as a database file.

I don't see conditional options on the file properties.

Gary
Advanced Installer 7.6.1
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Installing a file

Hi Gary,

In order to achieve this you can simply check the "Do not overwrite existing file" option from the "Operation" tab of the file's properties. Unfortunately, I'm afraid that this option is not available in Advanced Installer 7.6.1.

In your version of Advanced Installer, you can use on of the following solutions:
1. If the database file is installed by your package and you do not want to overwrite it during the upgrade, you can go to its related component in the "Organization" page and check the "Permanent" and "Never Overwrite" flags for it.

2. If the file is already on the target machine before installing your application, you can go in the "Search" page and create a new file search. You can rename the search to something more suggestive (i.e. "FILE_EXIST").

Assuming you added your files to "File and Folders", you will select the file's related component from "Organization" page and set the following condition for it: NOT FILE_EXIST

Let me know if this helped, otherwise give me more details about your scenario.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”