NI Package Manager (NIPM)

cancel
Showing results for 
Search instead for 
Did you mean: 

NIPM rebbot required - how to configure

Solved!
Go to solution

Hello, 

 

I have package that installs windows service. It is required to reboot after install/uinstall.

If remember correctly some NI packages have nice window - reboot displayed. IS there an option to somehow configure this in package definition?

0 Kudos
Message 1 of 4
(520 Views)
Solution
Accepted by pawhan11

Paweł, my understanding is the an instructions file in a File package does not yet support specifying that a reboot is required, nor does NIPM interpret the return code from a File package custom execute that suggests a reboot is required.

 

However,

  1. NIPM does support WinInst packages that install MSIs and if an MSI returns a exit code of 3010 or 1641, I believe NIPM see this and display the prompt that you are interested in. You should be able to create a simple MSI that just returns that error code. I package builder applications do not support building WinInst packages, but you could use WiX Toolset to create a simple MSI, and then use NIPM's nipkg.exe to build the package: https://www.ni.com/docs/en-US/bundle/package-manager/page/assemble-wininst-package.html.
  2. NIPM also documents that WinInst (MSI) packages can call custom executes and if the instructions file specifies to interpret return code like an installer, a return code of 3010 or 1641 will trigger the same prompt. See https://www.ni.com/docs/en-US/bundle/package-manager/page/instructions-xml-wininst-packages.html
Scott Richardson
https://testeract.com
Message 2 of 4
(493 Views)

That’s pretty solid and swift support on NIPM you’re giving there Scott. Thank you!

CLA, CTA, CLED & LabVIEW Champion
0 Kudos
Message 3 of 4
(482 Views)

thanks. issue solved

0 Kudos
Message 4 of 4
(450 Views)