NI Package Manager (NIPM)

cancel
Showing results for 
Search instead for 
Did you mean: 

how to upgrade package manager through command line

I've got a bunch of systems that have NI package manger 19.0 installed, and I want to upgrade them to 19.5 through a command line process (*.bat file).

I've tried just installing the standalone 19.5 installer, but that won't update the version.  I try upgrading a package that requires the new package manager (and has it as a dependency) but it fails saying I need the new NI package manager.

 

What's the process to cause a NI package manager update through command line?

Thanks!

0 Kudos
Message 1 of 24
(5,546 Views)

Hi warren_scott,

 

"I've tried just installing the standalone 19.5 installer, but that won't update the version."

Can you confirm where you got the standalone installer from? Also, can you elaborate more on the error or issue you saw (screenshots would be great). This should work, so the issues you're having are concerning to me.

 

Thanks.

Aaron Peña

Product Owner, Package and License Management

National Instruments

0 Kudos
Message 2 of 24
(5,510 Views)

standalone installer came from NI product software downloads page

https://www.ni.com/en-us/support/downloads/software-products/download.package-manager.html#322516

I had downloaded this a few months back and installed as 19.0.  Used that and linked to a my own feed to install packages.  locked (nipkg.exe lock) ni package manager to prevent updates.

Downloaded ni package manager 19.5 standalone installer as linked above.  Tried installing it (command line install of .exe above) and get nothing -- ends with no error, no change.

issued an unlock command against NI package manager (nipkg.exe unlock) and tried installer again (double click on EXE as administrator).  get message saying package already installed and will do nothing.

verified version is still at 19.0 per command line. 

see attached image.

0 Kudos
Message 3 of 24
(5,502 Views)

I have found that if I open up NI package manager itself (the already installed 19.0 version by going through start menu) and go to the update screen, it does see that there is a 19.5 version to update to, and I get a message along the top of NI package manager saying my version is out of date and to update.  I click the update link at the top of the screen expecting to update just ni pkg manager, but it then went through and updated all my other software packages that were also out-of-date (but NOT desired to be updated, and NOT checked to update).  Not expected update behavior.

 

 

0 Kudos
Message 4 of 24
(5,497 Views)

Have you had a chance to look at the screenshot?  is there any additional information I can provide to help figure out what is (not) happening?

 

 

0 Kudos
Message 5 of 24
(5,420 Views)

Hi warren_scott,

 

Apologies for the delay. I've tried to reproduce this behavior per your instructions, but I have not been successful in doing so. A few more questions:

  1. When you say "it then went through and updated all my other software packages that were also out-of-date", can you give some examples of the other software packages that you are referring to?
  2. Did you lock any other packages other than ni-package-manager?
  3. Did you change any of the default configuration settings?

Thanks.

 - Aaron

0 Kudos
Message 6 of 24
(5,407 Views)

1) it updated from LabVIEW 2019 to LabVIEW 2019f2 patch

2) when I set the lock, I just called "nipkg lock" with the hope/assumption that it would lock all/everything (did not specify any package in particular).  same with "nipkg unlock"

3) other settings were left alone other than adding a custom feed

 

Warren

0 Kudos
Message 7 of 24
(5,397 Views)

Hi Warren,

 

I can't seem to replicate this issue either.  Since you're having so many issues with the NIPM update, I think we should take a deeper look at the situation.  The first thing is to get logs: https://knowledge.ni.com/KnowledgeArticleDetails?id=kA00Z000000P6FcSAK&l

 

Then, I would suggest that you open a service request at ni.com/ask and speak to one of our technical support engineers. They'll be able to work with you more quickly on this.  If you'd like to post the logs to this thread as well, I'd be happy to take a look also.

 

Thanks,

 

Michael B.
Product Support Engineer
National Instruments
0 Kudos
Message 8 of 24
(5,352 Views)

I think I figured out what was causing the problem.

Turns out I had a package installed that had a dependency on "NI Package Manager" = "19.0" and that caused package manager to not want to install. 

0 Kudos
Message 9 of 24
(5,337 Views)

Is there a way to issue a command line command that will cause the NI Package Manager to update itself like you do through the GUI? Or do you just need to run the stand-alone installer?

__________________________________
Bill Eisenhower
Certified LabVIEW & TestStand Developer
0 Kudos
Message 10 of 24
(5,258 Views)