AKR
Posts: 29
Joined: Tue Jan 22, 2013 1:31 pm

Need to the installation filename include creation datetime.

Need to the installation filename include creation date and time.
How to do it?

Tried in (Builds Page - Configuration Settings Tab - Output-EXE Name) set:

Code: Select all

ApplicationSetup [|ProductVersion] [|Date] - [|Time]
but it does not work, after the assembly it turns

Code: Select all

ApplicationSetup 4.0.0 - .exe
Please help who knows. Quickly needed.
Thanks!
Eusebiu
Posts: 4931
Joined: Wed Nov 14, 2012 2:04 pm

Re: Need to the installation filename include creation datet

Hi and welcome to Advanced Installer forum.

Thank you for your interest in Advanced Installer.

As you can see in the Date, Time Properties article these properties are set by Windows Installer at run time and they cannot be used at build time.

In order to achieve what you want you can go in the "Build Events" tab from the Builds page and create a Post-build event to rename your package after it was built.

Let us know if this helped, otherwise give us more details about your scenario.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
AKR
Posts: 29
Joined: Tue Jan 22, 2013 1:31 pm

Re: Need to the installation filename include creation datet

I think it should work.

Could you describe step by step how to do it.
Which parameters to specify a Post-Build Events for renaming with the date and time in the file name.

Thanks!
Eusebiu
Posts: 4931
Joined: Wed Nov 14, 2012 2:04 pm

Re: Need to the installation filename include creation datet

Hi,

In order to rename your package file name with date and time, you must first create your own vbscript or batch file with this functionality.

Then, go in the "Build Events" tab, use "Add->Post-Build Event->New" and in the "Command" text field from the newly appeared dialog write the path to your vbscript or batch file that must be executed as a Post-Build event.

Please keep in mind that characters like '/' and ':' that are usually contained by the date and time are not allowed by the operating system in a file name.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”