Jan Bouma
Posts: 33
Joined: Fri Jul 13, 2007 11:27 am

date and time of many dll's is changed.

my dll's are installed on the target machine with date and time of the moment of installation.
I want the original date and time of the dll.
How do i do that ?

I used the always overwrite existing file option.
But still i want the date and time of the source dll on the target machine.
Jan Bouma
Posts: 33
Joined: Fri Jul 13, 2007 11:27 am

Re: date and time of many dll's is changed.

some extra info.

I removed all dll file from the AdvancedInstaller project.
Added them a gain from 1 source location by adding the source folder and checking the "install to parent folder" option.

this set of dll's is also installed in to a second folder on the Target machine also with the "install to parent folder" option on.

When i run this msi, the dll's in the first destination folder keep their original date and time.
But in the second destination folder they get the installation date and time minus 1 hour.
Daniel
Posts: 8276
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: date and time of many dll's is changed.

Hello,

I'm afraid the file created, modified and accessed date are automatically set by Windows Installer at install time and we cannot influence this behavior. If you want to overwrite the created, modified or accessed date of an installed file, then you can use your own custom action. The custom action should be scheduled after "Install Execution Stage -> Add Resources" action group and should run as deferred. For example you can use the SetFileTime function.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”