Jump to content


This is a ready-only archive of the InstallSite Forum. You cannot post any new content here. / Dies ist ein Archiv des InstallSite Forums. Hier können keine neuen Beiträge veröffentlicht werden.
Photo

Bug In Signature Table MinDate & MaxDate


4 replies to this topic

MSIB

MSIB
  • Members
  • 13 posts

Posted 17 September 2003 - 12:43

Hello
I write my self installer MSIBuilder and I implement a file (also registry and ini file ) search with AppSearch ,Signature and DrLocator tables .

Problem is that If I want to make a search for file , based on creation file time , result is wrong .
If I set MaxDate never I get a result.
If I set MinDate i allways find the file .


Thanks in advance!



Stefan Krueger

Stefan Krueger

    InstallSite.org

  • Administrators
  • 13,269 posts

Posted 18 September 2003 - 09:20

Maybe you're not using the correct format?

MSIB

MSIB
  • Members
  • 13 posts

Posted 18 September 2003 - 10:21

I attached a sample : one test package and a file(date.txt) created today.
I want to search the file named date.txt (must be on root or in directories of root )who is created before 1/1/2004
(=12321 in MS-DOS format)


PS.From MSDN:
The entries in the MinDate and MaxDate columns must be in the MS-DOS® date format, as shown in the following table.

Bits Contents
0-4 Day of the month (1-31)
5-8 Month (1 = January, 2 = February, and so on)
9-15 Year offset from 1980 (add 1980 to get actual year)

Attached Files


Edited by MSIB, 18 September 2003 - 10:29.


Stefan Krueger

Stefan Krueger

    InstallSite.org

  • Administrators
  • 13,269 posts

Posted 18 September 2003 - 10:46

There's indeed a documentation error in MSI help. This article will show you how to do it right:
http://www.installsi...05/SearchIE.htm

MSIB

MSIB
  • Members
  • 13 posts

Posted 18 September 2003 - 10:57

Thanks a lot!