Replacing Non Versioned Files - 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!

Lee Bornstein
Posts: 23
Joined: Sat Feb 11, 2006 5:44 am
Location: Las Vegas, NV
Contact: Website

Replacing Non Versioned Files

Is there a way to tell Advanced Installer (Version 4.3) when working with non-versioned files to ALWAYS REPLACE or NEVER REPLACE certain files?

In the past we've had to write a pre-install utility to force Create Date=Modified Date of files always to be replaced and Create Date<Modified Date for files never to be replaced. We've found that over the years, various copying, backups and restores have altered file dates to a point where we've seen data files with same Create and Modify date and we do not want to overwrite these files ever.

Also, any suggestions on how to remove obsolete DLL and OCX files that were installed before we started using Advanced Installer for our projects?

Thanks,

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

Re: Replacing Non Versioned Files

Hi Lee,
Is there a way to tell Advanced Installer (Version 4.3) when working with non-versioned files to ALWAYS REPLACE or NEVER REPLACE certain files?
You can make sure that the unversioned file in your package will replace the one already installed by setting a custom version for it in the project. This can be done in the "Version" tab of the "Edit File" dialog (double-click the file to show it). Please note that this version will be used only during the installation, it will not affect the file.

For not replacing a file you can use the "Never overwrite" attribute for the component of the file (in the "Organization" page). However, this attribute will affect only future versions. Another approach is to backup the files when the installation starts and restore them at the end. Please note that the User Guide contains the Preserve File on Install how-to which may help you.
any suggestions on how to remove obsolete DLL and OCX files that were installed before we started using Advanced Installer for our projects?
This can be done by using File Removal operations or a custom action. For more details please see the Remove a file or a folder during installation how-to.

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

Return to “Common Problems”