LabVIEW 2021 Public Beta

cancel
Showing results for 
Search instead for 
Did you mean: 

[New Feature] "Run When Opened" Security Warning

LabVIEW will warn the user when opening VIs that have “Run when opened” behavior:

Christina_R_0-1618886744306.png

 

The intention is to protect users from malicious code disguised as examples. Note that LabVIEW will not prompt for VIs in “trusted” locations such as the LabVIEW folder.

 

Known Issue

  • The ability to configure this security warning using Tools»Options»Security is not in this Beta, but in the released version you will be able to disable the prompt universally or for specific VIs.

Christina Rogers
Principal Product Owner, LabVIEW R&D
Message 1 of 11
(2,764 Views)

Hi,

 

great that NI recognizes this problem and implements countermeasures 🙂

 

- will it also be possible to add new folders to the trusted locations?

- will it be possible to completely turn off this feature (LabVIEW.ini tokens ?)

 

Background: my CI build tool-chain runs a vi from console (not using LabVIEW-CLI yet since my build tools predate these recent developments)

 

Or I finally might have to rework my CI build tools ...

 

Thanks, Benjamin

_________________________
CLA
0 Kudos
Message 2 of 11
(2,550 Views)

There is an INI token that disables the dialog completely, and this will be accessible via Tools»Options in the release (but this setting isn't in this Beta).

 

We aren't currently planning to add trusted folders; however, you can add specific trusted VIs.


Christina Rogers
Principal Product Owner, LabVIEW R&D
0 Kudos
Message 3 of 11
(2,525 Views)

Hi Is this option of editing the INI file released yet?

0 Kudos
Message 4 of 11
(1,685 Views)

It seems so.

I can find it in the Options as described.

The token is called "RunWhenOpened.Behavior"

_________________________
CLA
0 Kudos
Message 5 of 11
(1,683 Views)

Is there any way to edit the ini file for this purpose?

Thanks

0 Kudos
Message 6 of 11
(1,672 Views)

Could you please share how to find this option?

0 Kudos
Message 7 of 11
(1,668 Views)

Christina_R_0-1647377403627.png

The Tools»Options dialog has a Security category with options that affect "Run When Opened" VIs.


Christina Rogers
Principal Product Owner, LabVIEW R&D
0 Kudos
Message 8 of 11
(1,613 Views)

Hi,

 

Let me confirm the token setting of INI file. Is this correct?

RunWhenOpened.Behavior=<Number>

0: Display warning dialog

1: Open VI, but do not run

2: Run VI without warning

 

Junichi

0 Kudos
Message 9 of 11
(1,562 Views)

Yes, those INI token values are correct.


Christina Rogers
Principal Product Owner, LabVIEW R&D
0 Kudos
Message 10 of 11
(1,483 Views)