NI Package Manager (NIPM)

cancel
Showing results for 
Search instead for 
Did you mean: 

Custom Package with Custom Executes for installing an MSI responds with Error -125432

Solved!
Go to solution

I created a package in NI Package Builder for installing Microsoft SQL Local Database using the MSI file from Microsoft. I have the MSI install in the temp directory and I run an "Custom executes": 

al_g_0-1679604958971.png

 

When I run this package it returns error -125432 An error occurred while creating a process to run command '"C:\Users\Admin\AppData\Local\Temp\NIPackageManager\971848db-479d-4bc8-a20f-304d965c9dc9\SqlLocalDB.msi" "IACCEPTMSODBCSQLLICENSETERMS=YES /qn"' 

 

0 Kudos
Message 1 of 4
(2,547 Views)

The below page in the NI Package Builder help documents how to run an MSI using a custom execute. The topic says to call msiexec.exe and you do not appear to be doing that.

 

Running Non-Package MSI Distributions

Scott Richardson
https://testeract.com
0 Kudos
Message 2 of 4
(2,535 Views)

Thanks for the reply. I followed the help document and I'm still not getting the MSI to install. I now have the custom execute setup as follows:

al_g_0-1679668333486.png

 

The error log has the following entry:

 

Additional error information:
-125440: An error occurred while running the custom execute queue 'postall'.
File: C:\dev\_r\23\nipkg\source\shared_agents\Base/ErrorHandler/ErrorInfo.h
Line number: 320
-125409: A file does not exist at the path 'C:\Users\Admin\AppData\Local\Temp\NIPackageManager\9db107ac-fbb1-472e-a067-4795e456edd6\msiexec.exe'.
File: source\shared_agents\File\CustomExecuteHandler\CustomExecuteHandler.cpp
Line number: 84
-125411: An error occurred in OnTransactionEnd.
File: C:\dev\_r\23\nipkg\source\shared_agents\Base/ErrorHandler/ErrorInfo.h
Line number: 171

 

I am able to run msiexec.exe from a cmd window in the temp directory.

0 Kudos
Message 3 of 4
(2,493 Views)
Solution
Accepted by topic author al_g

I had some issues posting to this topic causing duplications. I requested that my duplicate post be removed which they were. Unfortunately it looks like the post from CL_eisenwr was also removed. His post contained the solution to my problem which was to run the installer from the [System (32-bit)] directory. 

 

Thank you CL_eisenwr.

0 Kudos
Message 4 of 4
(2,339 Views)