bjk68
Posts: 55
Joined: Tue Dec 01, 2009 12:45 pm

Additional Date and Time predefined Properties

Please consider adding the following addtional predefined properties:

YYYYMMDD returning 20091204 for December, 4th 2009
HHMM returning 1604 for 4:04 PM

You offer the [Date] and [Time] properties, but these cannot be used as part of a file or directory name because they contain invalid characters.

We now use the following "Inline Script" Custom Action to create the YYYYMMDD property:
Session.Property("YYYYMMDD") = CStr(YEAR(Date()) * 10000 + MONTH(Date()) * 100 + DAY(Date()))
Last edited by bjk68 on Wed Jan 27, 2010 11:46 am, edited 2 times in total.
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Additional Date and Time predefined Properties

Hi,

I added this improvement on our TODO list and it will be available in a future version. Thank you for your suggestion.

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

Return to “Feature Requests”