NI Package Manager (NIPM)

cancel
Showing results for 
Search instead for 
Did you mean: 

Prevent Error -125071 when using nipkg.exe install package

Solved!
Go to solution

Hi there,

 

I guess the solution is already somewhere here, but I was too blind...

 

How can I prevent the error -125071 (A system reboot is needed to complete the transaction) after running

 

nipkg.exe install somepackage

?

 

-- prevent reboot only works for MSI installers it seems

 

Cheers

Oli

0 Kudos
Message 1 of 3
(534 Views)
Solution
Accepted by topic author Oli_Wachno

Hi Oli,

 

If you're doing it interactively, I think the answer is just ignore it.

Assuming this is probably as part of a script/build process, the answer is similar - tell your process to ignore it.

You can see an example of this for PowerShell (and Docker) here: https://github.com/oist/LabVIEW_Dockerfiles/blob/18832d03a5e9a56e7ad010fc493be99e49726115/Dockerfile...

 

I copied the lines below for reference:

if( $LASTEXITCODE.Equals(-125071) ) { `
	# Needs restart 
	Write-Output 'Exiting successfully' `
	exit 0 `
} else { `
	exit $LASTEXITCODE `
}

 

Here this is part of the previous line, which ends with the semicolon to separate the commands but runs as one "RUN" operation in the Dockerfile.

How you apply this to your use-case is I guess calling-code dependent?


GCentral
0 Kudos
Message 2 of 3
(518 Views)

Thanks Christian!

 

 

0 Kudos
Message 3 of 3
(498 Views)