Topic
  • 5 replies
  • Latest Post - ‏2014-03-24T02:59:04Z by YMC
YMC
YMC
6 Posts

Pinned topic Windows 7 - Modification Date

‏2014-03-19T10:15:20Z |

Hi,

With Windows 7 OS, the modification date/time would be updated even though there is no amendment to content of files.

So wonder how you guys out there overcome this?

  • jgstew
    jgstew
    47 Posts

    Re: Windows 7 - Modification Date

    ‏2014-03-19T12:44:26Z  

    Do you mean just any file?

    What is the issue you are having more specifically?  There might be a way around it.

  • YMC
    YMC
    6 Posts

    Re: Windows 7 - Modification Date

    ‏2014-03-20T07:01:56Z  
    • jgstew
    • ‏2014-03-19T12:44:26Z

    Do you mean just any file?

    What is the issue you are having more specifically?  There might be a way around it.

    To simplify:

    Action 1- Bigfix deploy an old 2012 application A if not found in client
    Action 99- Bigfix update old application A config file if file is before 2013 Jan 01.
     
    If new computer is setup today without application A installed.
    Bigfix would install the application A, but the config file date modified date would be today date.
    Thus Action 99 would not be executed.
     

     

  • MattPeterson
    MattPeterson
    29 Posts

    Re: Windows 7 - Modification Date

    ‏2014-03-21T18:11:42Z  
    • YMC
    • ‏2014-03-20T07:01:56Z

    To simplify:

    Action 1- Bigfix deploy an old 2012 application A if not found in client
    Action 99- Bigfix update old application A config file if file is before 2013 Jan 01.
     
    If new computer is setup today without application A installed.
    Bigfix would install the application A, but the config file date modified date would be today date.
    Thus Action 99 would not be executed.
     

     

    I would suggest looking at something besides the modification date of a file, as can be changed for a number of reasons. Is there an uninstall key created when this app is installed (HKLM\software\microsfot\windows\currentversion\uninstall)? If so you should be able to retrieve a version from it. If you really need to look at that configuration file you could look at the sha1 value of that file, if it's different than what's deployed with the updated application then your update task would be applicable.

  • jgstew
    jgstew
    47 Posts

    Re: Windows 7 - Modification Date

    ‏2014-03-21T18:41:28Z  

    I would suggest looking at something besides the modification date of a file, as can be changed for a number of reasons. Is there an uninstall key created when this app is installed (HKLM\software\microsfot\windows\currentversion\uninstall)? If so you should be able to retrieve a version from it. If you really need to look at that configuration file you could look at the sha1 value of that file, if it's different than what's deployed with the updated application then your update task would be applicable.

     

    I would look at the contents of the config file if it is txt or xml to see that the settings are not in the desired state in relevance, then replace it if that is the case.  I would not recommend using SHA1 since you may have multiple configurations and they may change over time.

     

    Otherwise I agree, I would not look at modification date of the config file as helpful, though the creation date of the file might be more helpful... and even then I would validate the contents / settings in the file.

     

    Here is an example of an Analysis that pulls back the config of Firefox:  http://bigfix.me/analysis/details/2994642

    Here is a fixlet that changes the Firefox Config:  http://bigfix.me/fixlet/details/2572

  • YMC
    YMC
    6 Posts

    Re: Windows 7 - Modification Date

    ‏2014-03-24T02:59:04Z  
    • jgstew
    • ‏2014-03-21T18:41:28Z

     

    I would look at the contents of the config file if it is txt or xml to see that the settings are not in the desired state in relevance, then replace it if that is the case.  I would not recommend using SHA1 since you may have multiple configurations and they may change over time.

     

    Otherwise I agree, I would not look at modification date of the config file as helpful, though the creation date of the file might be more helpful... and even then I would validate the contents / settings in the file.

     

    Here is an example of an Analysis that pulls back the config of Firefox:  http://bigfix.me/analysis/details/2994642

    Here is a fixlet that changes the Firefox Config:  http://bigfix.me/fixlet/details/2572

    The config file is in machine language, not simple readable text format

     

    Wonder why MS changes the why file handled in Win 7 versus Win XP :(