Check if the existing file is older than 1 week
I want to check if the given file is at least 1 week old and if so offer user an additional option.
How to do it in NSIS?
Thanks.
Archive: Check if the existing file is older than 1 week
Check if the existing file is older than 1 week
I want to check if the given file is at least 1 week old and if so offer user an additional option.
How to do it in NSIS?
Thanks.
You can get the creation date with the GetTime function from the File Functions Header (chapter E1.6 from the NSIS manual).
Yeah, then I would need to convert it to number of seconds, then get current local time and convert it to number of seconds and then subtract current time from filetime and see if the difference is greater than 604800. Sounds like a plan.