Greg102
Posts: 6
Joined: Tue Sep 02, 2008 10:26 am

check date file in my setup

Hi

Is it possible to compare files (file can exist in destination path with file in setup) by date?
How can I check date file in my setup?

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

Re: check date file in my setup

Hi,

I'm afraid that this is not supported by Windows Installer. The date is compared automatically by Windows Installer only during an upgrade if the installed file has the same version as the file in the package.

However, what you need can be done by using a custom action. For example, you can use the GetDetailsOf method to get the date of the installed file. After this date is retrieved, you can compare it with the date of the file in your package (a hard-coded value).

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

Return to “Feature Requests”