NI Package Manager (NIPM)

cancel
Showing results for 
Search instead for 
Did you mean: 

Can't Install or Uninstall Update Service via Command Line

EDIT: Figured it out, the install command also needed --allow-uninstall.  I tried this on the uninstall but it showed dozens of packages I didn't want uninstalled.

 

So I have never found the NI Update Service to be anything other then a nuisance.  Luckily NI has a knowledge article on how to disable it since the setting in the application aren't always followed.  NI provided a NIPKG file to install, and doing so appears to remove the NI Update Service package, and possibly block the install of it in the future.

 

I want to have the removal of the NI Update Service as part of a larger application suite installer and so I need to either uninstall the NI Update Service package, or install the provided "NI Update Service Block" package via the command line.  The problem is both the uninstall, and the install methods don't work, because of various dependencies.

 

If I try to uninstall it with the following command:

 

nipkg uninstall ni-update-service --suppress-incompatibility-errors --force-essential --force-locked -y

 

I get the following error:

 

Package 'ni-labview-2022-core-x86-en (22.3.1.49153-0+f1)' requires 'ni-update-service (>= 21.0.0)'.

 

If I try to install the package with the following command:

 

nipkg install "C:\Users\User2\Downloads\ni-update-service-block_1.0.1.49152-0+f0_windows_all.nipkg" --suppress-incompatibility-errors --force-locked

 

I get the following error:

 

Package 'ni-update-service (21.0.0.49243-0+f91)' conflicts with '11d580a9-caa9-4fae-acce-008751a7ae9f (< 16.1)' provided by 'ni-update-service-block (1.0.1.49152-0+f0)'.

 

But if I double click the package file, and go through the process, it removes the NI Update Service just fine.

 

How can I automate the install of this blocking package from NI, or alternatively how can I force the removal of the NI Update Service package?

0 Kudos
Message 1 of 3
(2,008 Views)

@Hooovahh wrote:

EDIT: Figured it out, the install command also needed --allow-uninstall.  I tried this on the uninstall but it showed dozens of packages I didn't want uninstalled.


I have noticed sometimes that NIPM's uninstall will remove some "orphaned" package on top of the dependencies. Orphaned packages being packages that the uninstalled package depended on, but no other package depends on as well.

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

@Hooovahh wrote:

How can I automate the install of this blocking package from NI, or alternatively how can I force the removal of the NI Update Service package?


If you can be bothered finding out (or already know, or can ask for) a feed that contains the package, you could run

 

nipkg feed-add https://download.ni.com/support/nipkg/products/<blah/blah/>released
nipkg install -y (--allow-uninstall?) --accept-eulas ni-update-service-block

 

I have a vague memory that it's possible to navigate around the NI download feeds, but I don't remember how and throwing it in a browser just now wasn't sufficient.

 

Alternatively, I guess

PS > iwr -Uri "https://natinst.my.salesforce.com/sfc/dist/version/download/?oid=00Di0000000jTAB&ids=0683q00000AdCoc&d=%2Fa%2F3q000000Cpsk%2FmSCdWCMKulqGN3jRcR3MqXppOXu1z5n.PWGDbYPRZak&asPdf=false" -OutFile "ni-update-service-block_1.0.1.49152-0+f0_windows_all.nipkg"

 (`iwr` is an alias for `Invoke-WebRequest`, `curl` and `wget` are also aliases on PowerShell). 

 

and then "nipkg install ./ni-update-service-block_1.0.1.49152-0+f0_windows_all.nipkg" should I think work (probably with similar flags as above).

 

Either of those can probably be scripted (nipkg.exe is on my path, if you haven't made that choice you'd need to extend "nipkg" to something like "C:\Program Files\National Instruments\NI Package Manager\nipkg.exe").


GCentral
0 Kudos
Message 3 of 3
(1,941 Views)