LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Installer build error

During build an installer, I got error saying "Cannot Cache Products", see attached error message. I searched online and NI provided suggestions 

https://knowledge.ni.com/KnowledgeArticleDetails?id=kA00Z000000kJP2SAM&l=en-US

I tried the new directory, it still has the error. I cannot open LabVIEW as administrator. 

 

The process kept going after clicking OK, I tried the built installer and cannot see anything wrong (I haven't tested every detail yet). Anyone can tell is it okay without the cache file?

 

 

0 Kudos
Message 1 of 8
(4,222 Views)

Can you try setting the build destination to be your desktop? There are a bunch of places on your computer that programs can't write to without admin access. The desktop is usually a safe place to try things to see if the problem persists.

0 Kudos
Message 2 of 8
(4,202 Views)

I tried to change the directory to desktop, but there's other problem, it's asking me for driver, I don't know what it's asking for. I know Windows 10 doesn't allow to place file/folder in the C directory, but the destination directory here is created by ourselves and it's few levels from C.

0 Kudos
Message 3 of 8
(4,197 Views)

An Installer is potentially dangerous, as it can "inject" code that might have bugs and do harmful things to the computer on which it is installed.  If you are running without Administrator privileges, then someone in your organization doesn't want you to do such "dangerous" things without going through the proper channels.  I would take this up with your supervisor(s).

 

Bob Schor

0 Kudos
Message 4 of 8
(4,154 Views)

Bob, thanks for your post. This is a big organization, network here is tightly controlled and engineers usually don't get administrator's privilege, I'm trying to work it out without going through the process without applying for administrator's privilege. I have applied for NI tech support and I will post the result here after I get solution from NI.


@Bob_Schor wrote:

An Installer is potentially dangerous, as it can "inject" code that might have bugs and do harmful things to the computer on which it is installed.  If you are running without Administrator privileges, then someone in your organization doesn't want you to do such "dangerous" things without going through the proper channels.  I would take this up with your supervisor(s).

 

Bob Schor


 

0 Kudos
Message 5 of 8
(4,152 Views)

@guangdew1 wrote:

Bob, thanks for your post. This is a big organization, network here is tightly controlled and engineers usually don't get administrator's privilege, I'm trying to work it out without going through the process without applying for administrator's privilege. I have applied for NI tech support and I will post the result here after I get solution from NI.



I'm not sure how NI is going to help you -- if you don't have Admin rights on another machine, you can't "install" software (and there's no "magic switch" that NI can provide that grants you Admin rights).

If this is something that you really need to do, and your organization is so tightly controlled, the simplest solution may be to license the target machine for LabVIEW and get the Admins to install LabVIEW on it.  You can then safely move the LabVIEW "source" code (the Project and its VIs) to the Target machine, rebuild the Executable, and run it on the Target.  Alternatively, you could get the Admins to install the correct LabVIEW Run Time Engine and have them put the Executable files from the Build in the Target's Public Documents, with a shortcut on the Public Desktop pointing to the LabVIEW .exe file (be sure to create a nice Icon for the .exe).

 

Bob Schor

0 Kudos
Message 6 of 8
(4,144 Views)

@guangdew1 wrote:

During build an installer, I got error saying "Cannot Cache Products", see attached error message. I searched online and NI provided suggestions 

https://knowledge.ni.com/KnowledgeArticleDetails?id=kA00Z000000kJP2SAM&l=en-US

I tried the new directory, it still has the error. I cannot open LabVIEW as administrator. 

 

The process kept going after clicking OK, I tried the built installer and cannot see anything wrong (I haven't tested every detail yet). Anyone can tell is it okay without the cache file?

 

 


This is a warning, not an error. 

 

What it is telling you is that the additional installers that you need cannot be saved on your PC (because your IT department did not give you local administrative rights)  

 

This means that you will need to provide media that contains those installers every time you build an installer.   Ideally, you would "cashe" those additional installers on your PC and only need the media the first time you build.

 

So, you need the DVD, USB drive, or a download of the NI software product to build your installer.  OH,... and tell your IT department that your employment arrangement requires you to produce applications so, you require local administrative privileges to do your job. 


"Should be" isn't "Is" -Jay
0 Kudos
Message 7 of 8
(4,138 Views)

The target computers are dedicated test systems, we do have admin privilege. The built installer doesn't have problem install and run, just I haven't tested everything yet, and I may not be able to test everything. I want to see the potential issues.

0 Kudos
Message 8 of 8
(4,136 Views)