NI Package Manager (NIPM)

cancel
Showing results for 
Search instead for 
Did you mean: 

NI Package Builder: Calling a NI created Installer in Package

Solved!
Go to solution

I am trying to use NI Package Builder (NIPB) to create a package to deploy some external software via a package. However one of the installers is a LabVIEW created Installer. When I try to call the setup.exe, it tells me that it cannot be run since another NI installation is running. I am assuming the other installer is NI Package Manager itself. Is it possible to call or include a NI Installer in package? Could the issue be I am trying to call setup.exe to automatically install (specfile /qb /AcceptLicenses yes)?

 

The NI Installer I am attempting to install via package

__________________________________
Bill Eisenhower
Certified LabVIEW & TestStand Developer
0 Kudos
Message 1 of 7
(3,553 Views)

I got the exact error message from when the NI Installer is run.

Installer running error.png

__________________________________
Bill Eisenhower
Certified LabVIEW & TestStand Developer
0 Kudos
Message 2 of 7
(3,497 Views)
Solution
Accepted by CL_eisenwr

Try passing a /noMutex flag to the LabVIEW setup.exe as one of its command-line parameters. This should work because both NIPM and the setup.exe installers normally block each other so that you can't run two installers at the same time. This command-line flag causes setup.exe to not raise its blocking mutex.

Message 3 of 7
(3,486 Views)

Thanks WesW. That did the trick and now it will install.

__________________________________
Bill Eisenhower
Certified LabVIEW & TestStand Developer
0 Kudos
Message 4 of 7
(3,472 Views)

I've been trying to do this as well and this thread helped me with the install process. Thanks 🙂

 

Now that the NI Package + LabVIEW-built installer are installed, what's the recommendation for uninstalling the LabVIEW-built installer when the user chooses to uninstall the NI Package?

I've made it work by creating an uninstall step in the instructions file and calling uninst.exe /qb /x "MyApp", however, it always pops up a loading window, which is annoying. I've tried using /q which doesn't work. Any recommendations?

 

Additionally, it would be great if there was an option to ignore specific error codes (like the 3010 error, which isn't actually an error) when calling these customExecute steps.

 

Thanks in advance!

________________________________
Nadine H.
Certified LabVIEW Developer | Certified TestStand Developer
0 Kudos
Message 5 of 7
(2,702 Views)

There is/was a bug about not being able to hide the console for uninstall custom actions. If you are referring to uninst.exe, I would run uninst.exe /? to see if there is more silent options that will suppress the GUI. I know msiexec.exe has options on the level of quiet.

 

I would recommend posting an idea about being able to ignore specific error codes to the NI Package Management Idea Exchange. I would kudo it 😁 as I have run across a case where a MSI reports back the you need to restart code.

__________________________________
Bill Eisenhower
Certified LabVIEW & TestStand Developer
0 Kudos
Message 6 of 7
(2,692 Views)

Thanks Bill!

________________________________
Nadine H.
Certified LabVIEW Developer | Certified TestStand Developer
0 Kudos
Message 7 of 7
(2,670 Views)