Get a files last updated time using pascal (innosetup)
In the uninstall portion of an innosetup script, I'd like to add a check to see if a specific file's last update datetime occured within the last 10 mins. Does anyone know the innosetup compatable pascal code for this? Treb You can use the Windows API function GetFileAttributesEx to get the last modification date. Putting this in your [CODE] section should work: const GetFileExInfoStandard = $0; type FILETIME = record LowDateTime: DWORD; HighDateTime: DWORD; end; WIN32_FILE_ATTRIBUTE_DATA = record FileAttributes: DWORD; CreationTime: FILETIME; LastAccessTime: FILETIME; LastWriteTime: FILETIME;