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!

piviruzom
Posts: 1
Joined: Thu Aug 15, 2019 3:17 pm

Install only after a given date?

Hello, I'm creating to create an installer that will only continue after a date is given.
I tried this, without any good results:
(Date = "08/21/2019") OR (Date = "21/08/2019")

When I set that condition in "Launch Conditions" - "Custom", the installer always exits, with the title I've given.
This happens whether I use the current date in the condition above or not.
I understand this will only help to execute on a given date, not after one. I wasn't able to understand how to compare it as a number instead of a string.

Has anyone solved this?
Catalin
Posts: 7853
Joined: Wed Jun 13, 2018 7:49 am

Re: Install only after a given date?

Hello and welcome to Advanced Installer forums,

In case your date format is like this: month/day/year, please keep in mind that the "Date" property returns the date as it follows:

m/dd/yyyy

For instance, if the month is less than "October", it will be displayed like this:

1 or 2 or 3 etc.

not like this

01 or 02 or 03 etc.

With that being said, your condition should look like this:

Code: Select all

Date = 8/21/2019
not like this

Code: Select all

Date = 08/21/2019
Hope this helps.

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”