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!

istrasoft
Posts: 13
Joined: Sat Nov 02, 2013 3:08 am

Setting files date and time to specific values

Hi,

we are building an MSI setup with AI Pro and wonder what is the recommended method to use if we wish to set the file date and time for some of the installed files, to a specific constant value ?

We actually imported an InnoSetup project, which supports this feature via the "touch" directive, so we wonder how to achieve the same with A.I.

Thanks
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Setting files date and time to specific values

Hello,

I'm afraid we don't have predefined support for this in Advanced Installer. However, in order to achieve what you want you can create your own custom exe which will edit the date and time for all of your files included in the project. Then, you can add the custom EXE as a pre-build event in your project. Also, as another option you can create a custom action which will edit the date and time for the installed files at install time after the files are installed. You should schedule the custom action as deferred after "Install Execution Stage -> Add Resources" actions group.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
istrasoft
Posts: 13
Joined: Sat Nov 02, 2013 3:08 am

Re: Setting files date and time to specific values

Thanks. It's quite unfortunate because if the setup has a lot of files, it means that a long list of custom actions need to be added to perform this operation..

Return to “Building Installers”