07-04-2024 06:41 AM
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
Solved! Go to Solution.
07-04-2024 07:47 AM
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?
07-04-2024 09:14 AM
Thanks Christian!