FileDateCondition for new files only

113 views
Skip to first unread message

Carlos Eduardo

unread,
Apr 14, 2016, 11:35:38 PM4/14/16
to NAppUpdate
How can I specify to update only if is newer them current datetime ? 
Here is my update.xml 
I try every conditions and I cant fix it. 
If I dont use conditions all files are updated 

<?xml version="1.0" encoding="utf-8" ?>
<Feed>
  <Tasks>
    <FileUpdateTask hotswap="false" updateTo="file://192.168.1.13/Build/AEmpresa.exe" localPath="AEmpresa.exe">
      <Description>UPDATE-1</Description>
      <Conditions>
        <FileDateCondition what="older" timestamp="20191212T160000" />
      </Conditions>
    </FileUpdateTask>
    <FileUpdateTask updateTo="file://192.168.1.13/Build/Leiame.txt" localPath="Leiame.txt">
      <Description>UPDATE-2</Description>
      <Conditions>
        <FileDateCondition what="newer" timestamp="20191212T160000" />
      </Conditions>
    </FileUpdateTask>
    <FileUpdateTask updateTo="file://192.168.1.13/Build/SimplesEmpresa.txt" localPath="SimplesEmpresa.txt">
      <Description>UPDATE-3</Description>
      <Conditions>
        <FileDateCondition  type="not" what="older" timestamp="20161404T232708" />
      </Conditions>
    </FileUpdateTask>
    <FileUpdateTask hotswap="false" updateTo="file://192.168.1.13/Build/AppConfig.dll" localPath="AppConfig.dll">
      <Description>UPDATE-4</Description>
      <Conditions>
        <FileDateCondition  type="not" what="older" timestamp="20160414T232708" />
      </Conditions>
    </FileUpdateTask>
    <FileUpdateTask hotswap="true" updateTo="file://192.168.1.13/Build/AppData.dll" localPath="AppData.dll">
      <Description>UPDATE-5</Description>
      <Conditions>
        <FileDateCondition  type="not" what="newer" timestamp="20160504T232708" />
      </Conditions>
    </FileUpdateTask>
    <FileUpdateTask hotswap="false" updateTo="file://192.168.1.13/Build/AppDomains.dll" localPath="AppDomains.dll">
      <Description>UPDATE-6</Description>
      <Conditions>
        <FileDateCondition  type="not" what="newer" timestamp="20161404T232708" />
      </Conditions>
    </FileUpdateTask>
    <FileUpdateTask hotswap="true" updateTo="file://192.168.1.13/Build/AppFuncoes.dll" localPath="AppFuncoes.dll">
      <Description>UPDATE-7</Description>
      <Conditions>
        <FileDateCondition  type="not" what="newer" timestamp="20161404T232708" />
      </Conditions>
    </FileUpdateTask>
    <FileUpdateTask hotswap="false" updateTo="file://192.168.1.13/Build/AppHerda.dll" localPath="AppHerda.dll">
      <Description>UPDATE-8</Description>
      <Conditions>
        <FileDateCondition  type="not" what="newer" timestamp="20161404T232708" />
      </Conditions>
    </FileUpdateTask>
    <FileUpdateTask hotswap="false" updateTo="file://192.168.1.13/Build/AppSplash.dll" localPath="AppSplash.dll">
      <Description>UPDATE-9</Description>
      <Conditions>
        <FileDateCondition  type="and-not" what="newer" timestamp="20111212T160000" />
      </Conditions>
    </FileUpdateTask>
    <FileUpdateTask updateTo="file://192.168.1.13/Build/AppUpdate.dll" localPath="AppUpdate.dll">
      <Description>UPDATE-110</Description>
      <Conditions>
        <FileDateCondition  type="and-not" what="older" timestamp="20111212T160000" />
      </Conditions>
    </FileUpdateTask>
  </Tasks>
</Feed>





Reply all
Reply to author
Forward
0 new messages