jmace
Posts: 55
Joined: Thu Jul 01, 2010 4:46 pm

MSI Naming

Is there a way that I can format the MSI name to include the date in which it was built? I tried the Date property, but all I got was an empty string. Consequently, my name looks like Tracker-3.1.4-.msi. I would like it to read Tracker-3.1.4-2013-12-05 11:22:15.MSI.

I would like to use some kind of formatting like:

Code: Select all

Function setInstallDateTime()

strStringValue = Year(Now()) & "-" & Month(Now()) & "-" & Day(Now()) & " " & Hour(Now()) & ":" & Minute(Now()) & ":" & Second(Now())
Session.Property("INSTALLDATE") = strStringValue

End Function
I know how to create custom actions and all that stuff. I'm just not sure where in the process the function would get called.
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: MSI Naming

Hi,

You can take a look on the Need to the installation filename include creation datetime thread which debates a similar scenario.

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

Return to “Common Problems”