LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Change source for distribution components

When you configure a Distribution kit, in the "Drivers & Components" tab you can select or deselect a lot of different components.

On the right side there is a box called "Component Source" where you can see the path of every component.

Below the path there is a "Change Source..." button which you can use to change the path. If I'm right this button is dimmed for every path inside C:\ drive, and so you can only change the source of components loaded from different drives (D:\, E:\, ...)

Unfortunately this gives me a lot of problems: some days ago I loaded one of the components from another CVI installer I had created, and saved in C:\ drive, and I select "Cache for future builds". I thought that with this options CVI would have copied this component to a "cache" location, so I deleted the original installer.

Since that moment, CVI has been asking me for that specific installer, and I can't change the source anymore (the button is dimmed for C:\ paths). I tried to use that component out of the installer, but CVI only searches for the whole installer.

 

I also noticed that the process of creating an installer needs a lot of improvement: one of the most problematic situations is when you move a whole project (source files, additional files, folders, ...) from a developing PC to another. You must be very lucky to rebuild the installer without errors....

  • Some of paths are absolute, so if you don't copy the project in the exact location you'll find a lot of troubles.
  • If on the other PC you don't have the exact version of components you could find some problems.

I think that if you move a whole project to a different machine you should be able to rebuild the installer;

if some files or components are missing, you should be notified with meaningful and clear messages.

If all the components are actually installed to a different location, it must be possible to change the paths...

When a component is cached, it should be copied into a CVI cache location, even if it has been loaded from somewhere in c:\

 

What do you tink about this issues?

Vix
-------------------------------------------
In claris non fit interpretatio

-------------------------------------------
Using LV from 7
Using LW/CVI from 6.0
0 Kudos
Message 1 of 4
(3,689 Views)

The problem with "Cache for future builds" hasn't been fixed yet in CVI 2010 SP1!

Moreover I found another annoying issue:

  • I select "Cache for future builds" IVI Compliance Package the first time I built the installer, and do the button "Change source" has been dimmed
  • After some months I upgraded DAQmx drivers and IVI Compliance Package
  • The first time I rebuilt the distribution kit it asked for the NI Device Driver CD ROM, and this is OK
  • ... but I can't select "cache for future builds" and so I must insert the CD ROM every time I rebuild the distribution kit

 

could you fix this issue, please?

Vix
-------------------------------------------
In claris non fit interpretatio

-------------------------------------------
Using LV from 7
Using LW/CVI from 6.0
0 Kudos
Message 2 of 4
(3,458 Views)

When you cache a component, it creates an copy in C:\Program Files (x86)\National Instruments\Shared\ProductCache. This is the reason for the dimmed path, it is not related to the drive that the installer is stored on. Some components are dimmed because an equivalent of a cached installer already exists in some other location (e.g. 3D Graph Control Support).

 

Do you have a directory for IVI or for the component in your original post at that location? If so, remove the corresponding directory (keep a backup just in case) and then restart the Edit Installer dialog. The Change Source option should no longer be dimmed.

National Instruments
0 Kudos
Message 3 of 4
(3,443 Views)

Hi D.

on my Win 7 machine most of the components are cached into C:\ProgramData\National Instruments\MDF\ProductCache.

Only few components (for example the run time engines) are cached into C:\Program Files (x86)\National Instruments\Shared\ProductCache

 

I solved my problem deleting the folder C:\ProgramData\National Instruments\MDF\ProductCache and then restarting Edit Installer dialog.

So I checked "cache for future builds" and now everything is OK.

Vix
-------------------------------------------
In claris non fit interpretatio

-------------------------------------------
Using LV from 7
Using LW/CVI from 6.0
0 Kudos
Message 4 of 4
(3,433 Views)