File versioning rules - 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!

mikd
Posts: 42
Joined: Fri Aug 15, 2008 6:09 pm

File versioning rules

Hi!

Is it possible to overwrite file (dll) during install, if the file being installed has the same version as already existing on target computer, but has newer date. Or version change is required for the file to be updated?

Regards,
Mikhail
canhuth
Posts: 241
Joined: Thu Jun 19, 2008 9:03 am

Re: File versioning rules

Hello Mikhail,

in my experience Windows Installer does not care about file version information and will overwrite/update the existing file in any case.



With best regards

Clemens Anhuth
Ionut
Posts: 605
Joined: Tue Nov 22, 2005 11:29 am
Contact: Website

Re: File versioning rules

Hi,

Windows Installer uses several File Versioning Rules when it decides whether to overwrite an existing file.

The Creation and Modification dates are used as a criteria only when the files do not have a version. You can override a file's version information by specifying a custom version in the "Version" tab of the "Edit File" dialog (double-click on a file in order to open this dialog).

You can also select the option "Ensure that this file overwrites any installed target file", which automatically sets all the version fields to the highest possible values.

Regards,
Ionut
Denis Toma
Advanced Installer Team
http://www.advancedinstaller.com/
mikd
Posts: 42
Joined: Fri Aug 15, 2008 6:09 pm

Thanks!

I've also found this topic on MSDN. I had to increase all DLL file versions. That was new for me, because Wise Installer (not msi-version), that we used earlier, used file date for comparison if versions were equal.

Best regards,
Mikhail
canhuth
Posts: 241
Joined: Thu Jun 19, 2008 9:03 am

Re: File versioning rules

Hello everyone.

If you really can't live with the default behavior outlined in the file versioning rules (see link above) you can look into the REINSTALLMODE property.

http://msdn.microsoft.com/en-us/library ... S.85).aspx

Also see this discussion about it (and scan the net for further information, esp. on unwanted side effects):

http://community.acresso.com/archive/in ... 58788.html



With best regards

Clemens Anhuth

Return to “Common Problems”