2 Replies Latest reply on Sep 18, 2014 8:51 AM by SitzRieSe

    DSM 2014.1 Patch Templates

    SitzRieSe Expert
      Hi Leute...

      mir ist glaub ich ein Bug aufgefallen, habe dafür schon ein Ticket und wollte mal hören ob das wer bestätigen kann:

      Ich habe eine Patch Vorlage für die Firefox Pakete erstellt. Dabei wollte ich die Benutzerbezogenen Befehle testen und habe ein CreateLink auf den User Desktop mit eingebaut. Das eScript sieht wie folgt aus:

      !Default Advanced Patch Management patch template.
      !
      !Add pre-deployment commands here
      !
      !Main execution
      !Default Advanced Patch Management patch template.
      Set('result','0')
      Set('comment','')
      AdvPmInstallPatch('result','comment')
      !
      !Add post-deploymnet commands here
      Copy('.\Extern$\conf\mozilla.cfg','%programfiles%\Mozilla Firefox\mozilla.cfg')/TS
      Copy('.\Extern$\conf\local-settings.js','%programfiles%\Mozilla Firefox\defaults\pref\local-settings.js')/TS
      Copy('.\Extern$\conf\override.ini','%programfiles%\Mozilla Firefox\browser\override.ini')/TS
      CreateLink('test','%windir%\explorer.exe','%windir%','%windir%\explorer.exe,0','Desktop\','',)/TL
      !
      !Handle execution result
      If %result%='0'
      ExitProcEx(Done,'%comment%')
      If %result%='1'
      ExitProcEx(Failed,'%comment%')
      If %result%='2'
      ExitProcEx(Undone,'%comment%')



      Das Template wird auch angewendet! Beim Client ist dann für die Installation der Service Installer losgelaufen und ich kann folgendes im NISRV32_3.log entnehmen.


      17:15:40.179 2              ---->Starting installation of "FF14-009 for Firefox 25.0.1 German"

      17:15:40.179 2              -> Set('result','0')

      17:15:40.195 2              -> Set('comment','')

      17:15:40.195 2              -> AdvPmInstallPatch('result','comment')
      17:15:40.195 1               xniSPD.DLL: Installation timeout is 240 [min]
      17:15:40.195 2               xniSPD.DLL: Installing patch. See PatchInstallationFixVulnerabilities.log for details.
      17:16:06.964 2               xniSPD.DLL: Installation of patch succeeded (result code is 0)
      17:16:06.979 2               xniSPD.DLL: Successfully installed patch for policy instance 1294
      17:16:06.995 1               xniSPD.DLL: MissingPatchObject COMPUTERMISSINGPATCH.10417 was set to fixed: 0

      17:16:06.995 2              -> Copy('C:\Program Files (x86)\Common Files\enteo\RepositoryCache\5521\rev\1\Extern$\conf\mozilla.cfg','C:\Program Files (x86)\Mozilla Firefox\mozilla.cfg')/TS
      17:16:07.057 0               xniFPS: Number of files that match the filter 'C:\Program Files (x86)\Common Files\enteo\RepositoryCache\5521\rev\1\Extern$\conf\mozilla.cfg': 1
      17:16:07.057 0                xniFPS: C:\Program Files (x86)\Common Files\enteo\RepositoryCache\5521\rev\1\conf\mozilla.cfg
      17:16:07.073 2               Copying C:\Program Files (x86)\Common Files\enteo\RepositoryCache\5521\rev\1\Extern$\conf\mozilla.cfg to C:\Program Files (x86)\Mozilla Firefox\mozilla.cfg
      17:16:07.073 2               DstFile exists : C:\Program Files (x86)\Mozilla Firefox\mozilla.cfg
      17:16:07.073 0               FPS.dll: 'Extern$\conf\mozilla.cfg': File size: 649 bytes, date: 12.02.2014 - 15:30:08, version: 0.0.0.0
      17:16:07.089 0               File has to be overwritten always
      17:16:07.089 0               FPS.dll: Path to file: '\\?\C:\Program Files (x86)\Common Files\enteo\RepositoryCache\5521\rev\1\Extern$\conf\mozilla.cfg'
      17:16:07.089 1               xniFPS: Loading file 'C:\Program Files (x86)\Common Files\enteo\RepositoryCache\5521\rev\1\Extern$\conf\mozilla.cfg'

      17:16:07.089 2              -> Copy('C:\Program Files (x86)\Common Files\enteo\RepositoryCache\5521\rev\1\Extern$\conf\local-settings.js','C:\Program Files (x86)\Mozilla Firefox\defaults\pref\local-settings.js')/TS
      17:16:07.104 0               xniFPS: Number of files that match the filter 'C:\Program Files (x86)\Common Files\enteo\RepositoryCache\5521\rev\1\Extern$\conf\local-settings.js': 1
      17:16:07.104 0                xniFPS: C:\Program Files (x86)\Common Files\enteo\RepositoryCache\5521\rev\1\conf\local-settings.js
      17:16:07.104 2               Copying C:\Program Files (x86)\Common Files\enteo\RepositoryCache\5521\rev\1\Extern$\conf\local-settings.js to C:\Program Files (x86)\Mozilla Firefox\defaults\pref\local-settings.js
      17:16:07.104 2               DstFile exists : C:\Program Files (x86)\Mozilla Firefox\defaults\pref\local-settings.js
      17:16:07.104 0               FPS.dll: 'Extern$\conf\local-settings.js': File size: 89 bytes, date: 23.05.2013 - 13:52:15, version: 0.0.0.0
      17:16:07.104 0               File has to be overwritten always
      17:16:07.120 0               FPS.dll: Path to file: '\\?\C:\Program Files (x86)\Common Files\enteo\RepositoryCache\5521\rev\1\Extern$\conf\local-settings.js'
      17:16:07.120 1               xniFPS: Loading file 'C:\Program Files (x86)\Common Files\enteo\RepositoryCache\5521\rev\1\Extern$\conf\local-settings.js'

      17:16:07.120 2              -> Copy('C:\Program Files (x86)\Common Files\enteo\RepositoryCache\5521\rev\1\Extern$\conf\override.ini','C:\Program Files (x86)\Mozilla Firefox\browser\override.ini')/TS
      17:16:07.120 0               xniFPS: Number of files that match the filter 'C:\Program Files (x86)\Common Files\enteo\RepositoryCache\5521\rev\1\Extern$\conf\override.ini': 1
      17:16:07.120 0                xniFPS: C:\Program Files (x86)\Common Files\enteo\RepositoryCache\5521\rev\1\conf\override.ini
      17:16:07.120 2               Copying C:\Program Files (x86)\Common Files\enteo\RepositoryCache\5521\rev\1\Extern$\conf\override.ini to C:\Program Files (x86)\Mozilla Firefox\browser\override.ini
      17:16:07.120 2               DstFile exists : C:\Program Files (x86)\Mozilla Firefox\browser\override.ini
      17:16:07.136 0               FPS.dll: 'Extern$\conf\override.ini': File size: 34 bytes, date: 16.02.2012 - 12:44:43, version: 0.0.0.0
      17:16:07.136 0               File has to be overwritten always
      17:16:07.136 0               FPS.dll: Path to file: '\\?\C:\Program Files (x86)\Common Files\enteo\RepositoryCache\5521\rev\1\Extern$\conf\override.ini'
      17:16:07.136 1               xniFPS: Loading file 'C:\Program Files (x86)\Common Files\enteo\RepositoryCache\5521\rev\1\Extern$\conf\override.ini'

      17:16:07.136 2              -> CreateLink('test','C:\Windows\explorer.exe','C:\Windows','C:\Windows\explorer.exe,0','Desktop\','',)/TL
      17:16:07.136 1               Skipping user-cmd.

      17:16:07.151 1              Evaluating condition "_result_='0'"
      17:16:07.151 0               Comparing '0' with '0'
      17:16:07.151 2              Condition TRUE                    -> entering IF part

      17:16:07.151 2              ->  ExitProcEx(Done,'')
      17:16:07.151 0              ExR status report is disabled for FF14-009 for Firefox 25.0.1 German
      17:16:07.151 2              xniFPS: '{2D3701CF-413F-4F46-AD1C-512A8150233F}' is installed

      17:16:07.151 2              ---->Installation of FF14-009 for Firefox 25.0.1 German complete.



      Soweit so gut… Der Service Installer kann bekannter Weise ja keine benutzerbezogenen Befehle verarbeiten. Meine Erwartung war jetzt, das bei dem nächsten Lauf des AutoInstaller der benutzerbezogene Befehl verarbeitet wird. Dem ist aber nicht so! Im nächsten AutoInstall Lauf ist folgendes zu finden:


      09:32:38.542 1    SWMSRT: -------- Processing PolicyInstance POLICYINSTANCE.1294 ------------------------
      09:32:38.605 1    SWMSRT: TARGET[COMPUTER.955]: POLICYINSTANCE[POLICYINSTANCE.1294]->POLICY[PATCHPOLICY.700]->PACKAGE[VMWPPATCHPACKAGE.5521(FF14-009 for Firefox 25.0.1 German)]
      09:32:38.667 1     SWMSRT: ExecutionMode is 'Install', ClientRolloutState is 'Implemented', InstallationState is 'Installed'
      09:32:38.730 1      SWMSRT: The PolicyInstance is already implemented
      09:32:38.792 1     SWMSRT: Checking if direct handling is allowed
      09:32:38.855 0      SWMSRT: Check ExecutionRestriction passed for Package 5521: Allowed in service or user context
      09:32:38.917 0      SWMSRT: No software or shop policy, skipping include/exclude-check (PatchPolicy)
      09:32:38.980 2      SWMSRT: TargetProviderExtender SwmsTpExtenderAdvSpd denies direct Execution for PolicyInstance POLICYINSTANCE.1294
      09:32:39.042 0      niMW: Installation is already in progress, so maintenance window settings are ignored -> installation possible
      09:32:39.105 0      SWMSRT: Direct handling of PolicyInstance POLICYINSTANCE.1294 is currently not allowed. PolicyInstance will not be added to job list.


      Sonst erscheint kein weiterer Eintrag im AutoInstaller Log zu dem Patch Paket.
      Auch das erneute Anschubsen des AutoInstallers bringt mir keine Verknüpfung...

      Gruß

      SitzRieSe