4 Replies Latest reply on Jun 17, 2011 5:41 PM by Catalysttgj

    Installation result 80070001 when trying to push a .bat file to computers

    Rookie

      Please help me solve this issue with a batch file push

       

      1. I have downloaded and modified a batch file, that that I want to remove old java versions on all systems at my site.

      2. I can execute the file manually with no issues, but when i attempt to push it I get the following error

         Processing package : Java Uninstall old versions
      Thu, 16 Jun 2011 15:38:38 Checking preferred server path \\hcpLDCSw01/ldmain\java 6\Uninstall\Java Uninstall.bat instead of \\HCPLDCSW01/ldmain\java 6\Uninstall\Java Uninstall.bat
      Thu, 16 Jun 2011 15:38:41 File (\\HCPLDCSW01/ldmain\java 6\Uninstall\Java Uninstall.bat) is not in cache
      Thu, 16 Jun 2011 15:38:41 Checking preferred server path \\hcpLDCSw01/ldmain\java 6\Uninstall\Java Uninstall.bat instead of \\HCPLDCSW01/ldmain\java 6\Uninstall\Java Uninstall.bat
      Thu, 16 Jun 2011 15:38:44 Batch file Client Thread
      Thu, 16 Jun 2011 15:38:44 PackagePath:     [\\HCPLDCSW01/ldmain\java 6\Uninstall\Java Uninstall.bat]
      Thu, 16 Jun 2011 15:38:44 Checking preferred server path \\hcpLDCSw01/ldmain\java 6\Uninstall\Java Uninstall.bat instead of \\HCPLDCSW01/ldmain\java 6\Uninstall\Java Uninstall.bat
      Thu, 16 Jun 2011 15:38:45 Checking preferred server path \\hcpLDCSw01/ldmain\java 6\Uninstall\Java Uninstall.bat instead of \\HCPLDCSW01/ldmain\java 6\Uninstall\Java Uninstall.bat
      Thu, 16 Jun 2011 15:38:46 Adding '\\HCPLDCSW01/ldmain\java 6\Uninstall' to the path
      Thu, 16 Jun 2011 15:38:49
      Thu, 16 Jun 2011 15:38:49 Installation result 80070001

      Thu, 16 Jun 2011 15:38:49 processing of package is complete, result -2147024895 (0x80070001 - code 1)


      3. It complains about the UNC, but I checked the UNC and it is correct. Then it goes on to complain about the file not bein in the cache. It does this a few times and bombs out with an error code so it kind of threw me off. It is complaining about the file not beind in the cache

       

       

      Copy of my bat file

       

      @echo off & cls
      Rem List all Installation subkeys from uninstall key.
      echo Searching Registry for Java Installs
      for /f %%I in ('reg query HKLM\SOFTWARE\microsoft\windows\currentversion\uninstall') do echo %%I | find "{" > nul && call :All-Installations %%I
      echo Search Complete..
      goto :EOF
      :All-Installations
      Rem Filter out all but the Sun Installations
      for /f "tokens=2*" %%T in ('reg query %1 /v Publisher 2^> nul') do echo %%U | find "Sun" > nul && call :Sun-Installations %1
      goto :EOF
      :Sun-Installations
      Rem Filter out all but the Sun-Java Installations. Note the tilda + n, which drops all the subkeys from the path
      for /f "tokens=2*" %%T in ('reg query %1 /v DisplayName 2^> nul') do echo . Uninstalling - %%U: | find "Java(TM) 6" && call :Sun-Java-Installs %~n1
      goto :EOF
      :Sun-Java-Installs
      Rem Run Uninstaller for the installation
      MsiExec.exe /x%1 /qn
      echo . Uninstall Complete, Resuming Search..
      goto :EOF

       

       

       

      Please assist Thanks