LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to repair NI software, such as package manager, if I mistakenly delete something in the National Instrument folder in Program files?

Solved!
Go to solution

Hi,

 

I made a stupid mistake by deleting something in the C:\Programs Files\National Instrument, which probably includes the NI Package Manager folder. Now when I run any NI installer, it will call NI package manager first and the following message will pop up. 

Chia0225_0-1715275180348.png

While I tried to reinstall the NI package manager, it told me the NI package manager has been installed as show in the follow. 

 

Chia0225_1-1715275321713.png

 

What should I fix this? I assume I have to completely clear up some register file of the NI package manager to be able to reinstall it.

 

Please help me with this issue. Thank you very much. 

 

0 Kudos
Message 1 of 7
(262 Views)

First, do a complete backup of your PC.  Windows is finicky, and deleting files or folders that should only be "touched" by Administrators (which is why MS recommends that you have a separate account for doing Admin work!) can often mean "Reformat the Hard Drive, reinstall Windows, reinstall all your Programs, restore all your "data" (such as your Profile).

 

If NIPM is still intact, you should try to use it (and only NIPM, not any software that tries to mess with the Registry, including RegEdit) to remove all NI software.  I like to use Control Panel, as it has (to my mind) the cleanest interface, so I'll use that here.  I forgot to say that in my almost two decades of LabVIEW experience, a situation like you described cannot be "repaired", it can only be "removed and re-installed".  Of course, that means that you need to be able to re-install whatever LabVIEW versions you need, which requires access to the installation media (now mostly via the Web) and appropriate License numbers.  Compared to a "Remove all and reinstall all", a "Repair all" will probably take 6-20 times longer (meaning hours, at least).

 

To remove LabVIEW safely,

  1. In the Windows Search bar, type "Control Panel", and when it comes up, do a "Run as Administrator".
  2. Open "Programs and Features".
  3. Search for National Instruments Software (or words to that effect).  (On my machine, I see "NI Package Manager" and "NI Software" -- you want "NI Software").
  4. Double-click NI Software.  It should launch NI Package Manager (and needs Admin Privileges to do so).
  5. [I'm not logged on as an Admin, so I'm going to say this from memory, hence it might not be 100% accurate.
  6. In NIPM, there should be a check box on the left side above all of the installed Packages.  You want to look at the top of the list to include as much as possible -- I don't remember the name of the button, but it will be something like "All features" or something similar.
  7. NIPM will ask if you want to remove all that is checked.  You do.  This will go reasonably quickly, but may take a significant part of an hour (or more).
  8. Reboot.
  9. Run the above steps again.  You should see only NI Package Manager in the list of NI Software to remove.  Go ahead and remove it.  You will get a warning, but since you've already removed everything else, it is safe to remove NIPM.
  10. Reboot.
  11. One more time -- see if any more NI Software appears.  Some older code might show up, so go ahead and remove this, as well.
  12. One more reboot, and you are ready to start re-installing NI Software.
  13. In the "Good Old Days", the rule was "Install the oldest version first".  Now, it seems "better" to install the newer versions first (and, in some cases I've encountered, it only works "Newest first").

If you've got a LabVIEW Guru in the vicinity, ask him or her to be present when you do this ...

 

Bob Schor

0 Kudos
Message 2 of 7
(232 Views)
Solution
Accepted by topic author Chia0225

Hi

 

If your action was related to NI Package Manager as indicated, I would :

 

1. Find another computer ( call it 'fresh' ) without any NI software on it.

 

2. Install the Package Manager and nothing else on the 'fresh' computer.

 

3. Copy missing content or everything 'National Instruments' related in the 'Program Files' folder from the 'fresh' computer to your computer.

 

To do step 3 in a sensible way you should use a file manage that allows you to compare folders and copy with administrative privilege. I highly recommend using 'Total Commander' for that.

 

Regards

0 Kudos
Message 3 of 7
(196 Views)

Hi softball

 

Thank you very much. I would like to make a comment additional to your solution. Copying NI package manager folder from another computer solved my problem. I can launch NI package manager and uninstall/reinstall the NI software with no problem except for the NI package manager itself. It was grey out and can't be selected to be uninstalled. My solution is to install the NI command line interface and uninstall all NI packages using the command lines. This enabled me to clean all NI packages including the package manager. Then I installed all the NI software back.

 

Best,

 

 

0 Kudos
Message 4 of 7
(149 Views)

Hi

 

Nice to see you solved your problem.

 

The Package Manager can un-install everything except itself. Therefore it is grayed out.

 

You un-install the Package Manager as normal programs, 'Control Panel' => 'Programs and Features'.

 

Regards

0 Kudos
Message 5 of 7
(122 Views)

@softball wrote:

Hi

 

Nice to see you solved your problem.

 

The Package Manager can un-install everything except itself. Therefore it is grayed out.


This is wrong, and potentially dangerous.  The NI Package Manager can uninstall itself, but only when it is the only thing left.  When you do this (as I explained in my earlier post), it will warn you and ask "Are you sure?", to which you can (safely) answer "Yes".

 

Bob Schor

0 Kudos
Message 6 of 7
(101 Views)

Sorry Bob, but I have to correct your correction.

 

You cannot just use the Package Manager to uninstall itself. You have to go through 'Programs and Features'. From there you can initiate the uninstall of the Package Manager.

 

When everything selectable NI is removed from the Package Manager, and after a reboot you will see this :

 

softball_0-1715943586440.png

 

But there You still cannot select the NI Package Manager. Its grayed out. Click on it. Nothing happens.

 

But if you select the marked line in 'Programs and Features' as shown below, then the Package Manager wakes up and will offer to uninstall itself in this special dialog box :

 

softball_1-1715943684769.png

 

To do a thorough uninstall thereafter, select the other line called 'NI Software' and uninstall that. It might surprisingly list 100+ packages to be removed.

 

I usually then use 'Everything' to search for 'National Instruments' and delete all folders and subfolders found. They are all in standard locations, and it s just my modus operandi. I have seen no downsides doing so.

 

Regards

0 Kudos
Message 7 of 7
(31 Views)