2 Replies Latest reply on Jan 31, 2013 7:57 AM by Lawrence Garvin

    Pre package exe install fails, but same exe works fine if created in its own package

    ascoyne

      I am trying to run a .exe installer as a pre-install using Package Boot, but fails.

       

      To test that the exe does work with the switch I have used I created a seperate package and it deployed fine.

       

      The package is vcredist_x86 with the switch /q.

       

      When I add vcredist_x86 as a pre Run Program with a command line /q to my main package it fails.

       

      Below is an extract from the log file:

       

      2013/01/30 10:41:49:252 PID: 2220 TID: 176 installer::uninstallpackage MsiConfigureProduct() called for Product ID: {F2B059F7-59B4-4CBD-8F85-7AD64603C361}. Exit Code: 1605

      2013/01/30 10:41:49:267 PID: 2220 TID: 176 programobject::execute(msi) uninstall completed for program name: C:\WINDOWS\SoftwareDistribution\Download\Install\{F2B059F7-59B4-4CBD-8F85-7AD64603C361} and process exit code was: 0x645

      2013/01/30 10:41:49:267 PID: 2220 TID: 176 ewException caught: Failed to execute process File: ExecutionEngine.cppLine: 1184

      stack trace :

       

       

      2013/01/30 10:41:49:267 PID: 2220 TID: 176 programobject::execute(exe) called for program name: C:\WINDOWS\SoftwareDistribution\Download\Install\vcredist_x86.exe

      2013/01/30 10:41:49:283 PID: 2220 TID: 176 installer::runexepackage called for path: C:\WINDOWS\SoftwareDistribution\Download\Install\vcredist_x86.exe with command line: /q.

      2013/01/30 10:41:49:283 PID: 2220 TID: 176 installer::runexepackage CreateProcess called with fqcommandline: C:\WINDOWS\SoftwareDistribution\Download\Install\vcredist_x86.exe /q.

      2013/01/30 10:41:49:283 PID: 2220 TID: 176 installer::runexepackage() failed with pathtoexe with command line (C:\WINDOWS\SoftwareDistribution\Download\Install\vcredist_x86.exe /q). Error Code: 2

      2013/01/30 10:41:49:298 PID: 2220 TID: 176 programobject::execute(exe) completed for program name: C:\WINDOWS\SoftwareDistribution\Download\Install\vcredist_x86.exe and process exit code was: 0x2

      2013/01/30 10:41:49:298 PID: 2220 TID: 176 ewException caught: Failed to execute process File: ExecutionEngine.cppLine: 1184

      stack trace :

        • Re: Pre package exe install fails, but same exe works fine if created in its own package
          ascoyne

          This is an extract from the package that just contains the exe.

           

          2013/01/30 11:03:47:295 PID: 1428 TID: 3108 programobject::wassuccessexitcode() indicates the program exitcode: 0x0 is considered a success code

          2013/01/30 11:03:47:295 PID: 1428 TID: 3108 programobject::wassuccessexitcode() indicates the program exitcode: 0x0 is considered a success code

          2013/01/30 11:03:47:295 PID: 1428 TID: 3108 executionengine::executeitem() total filesinuse objects: 2

          2013/01/30 11:03:47:295 PID: 1428 TID: 3108 filesinuseobject::execute() is disabled

          2013/01/30 11:03:47:311 PID: 1428 TID: 3108 filesinuseobject::execute() is disabled

          2013/01/30 11:03:47:311 PID: 1428 TID: 3108 executionengine::executeitem() total service objects: 0

          2013/01/30 11:03:47:311 PID: 1428 TID: 3108 executionengine::executeitem() total process objects: 0

          2013/01/30 11:03:47:311 PID: 1428 TID: 3108 executionengine::executeitem() total program objects: 1

          2013/01/30 11:03:47:311 PID: 1428 TID: 3108 programobject::execute(exe) called for program name: C:\WINDOWS\SoftwareDistribution\Download\Install\vcredist_x86.exe

          2013/01/30 11:03:47:326 PID: 1428 TID: 3108 installer::runexepackage called for path: C:\WINDOWS\SoftwareDistribution\Download\Install\vcredist_x86.exe with command line: /q.

          2013/01/30 11:03:47:326 PID: 1428 TID: 3108 installer::runexepackage CreateProcess called with fqcommandline: C:\WINDOWS\SoftwareDistribution\Download\Install\vcredist_x86.exe /q.

          2013/01/30 11:03:47:358 PID: 1428 TID: 3108 installer::runexepackage() CreateProcess succeeded with with command line (C:\WINDOWS\SoftwareDistribution\Download\Install\vcredist_x86.exe /q).

          2013/01/30 11:04:40:015 PID: 1428 TID: 3108 installer::runexepackage() GetExitCodeProcess() indicates process exit code was (0).

          2013/01/30 11:04:40:015 PID: 1428 TID: 3108 installer::runexepackage() completed with process exit code: 0x0

          2013/01/30 11:04:40:015 PID: 1428 TID: 3108 programobject::execute(exe) completed for program name: C:\WINDOWS\SoftwareDistribution\Download\Install\vcredist_x86.exe and process exit code was: 0x0

          2013/01/30 11:04:40:030 PID: 1428 TID: 3108 programobject::wassuccessexitcode() indicates the program exitcode: 0x0 is considered a success code

          2013/01/30 11:04:40:030 PID: 1428 TID: 3108 executionengine::executeitem() total filesinuse objects: 2

          2013/01/30 11:04:40:030 PID: 1428 TID: 3108 executionengine::executeitem() total service objects: 1

          2013/01/30 11:04:40:030 PID: 1428 TID: 3108 serviceobject::execute() called for service: someservice

          2013/01/30 11:04:40:046 PID: 1428 TID: 3108 serviceobject::execute() not enabled for service: someservice

          2013/01/30 11:04:40:046 PID: 1428 TID: 3108 executionengine::executeitem() total process objects: 0

          2013/01/30 11:04:40:046 PID: 1428 TID: 3108 executionengine::executeitem() total program objects: 2

          2013/01/30 11:04:40:046 PID: 1428 TID: 3108 programobject::wassuccessexitcode() indicates the program exitcode: 0x0 is considered a success code

          2013/01/30 11:04:40:046 PID: 1428 TID: 3108 programobject::wassuccessexitcode() indicates the program exitcode: 0x0 is considered a success code

          2013/01/30 11:04:40:061 PID: 1428 TID: 3108 executionengine::executeitem() total filesinuse objects: 2

          • Re: Pre package exe install fails, but same exe works fine if created in its own package
            Lawrence Garvin

            2013/01/30 10:41:49:283 PID: 2220 TID: 176 installer::runexepackage() failed with pathtoexe with command line (C:\WINDOWS\SoftwareDistribution\Download\Install\vcredist_x86.exe /q). Error Code: 2


            Did you include the vcredist_x86.exe in the Additional Included Files specification for the package defined with packageboot?

            Looks to me like it couldn't find the executable in the .\Install folder.