04-19-2021 09:49 PM
LabVIEW will warn the user when opening VIs that have “Run when opened” behavior:
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
05-03-2021 06:39 AM
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
05-03-2021 05:21 PM
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.
03-07-2022 02:42 AM
Hi Is this option of editing the INI file released yet?
03-07-2022 02:59 AM
It seems so.
I can find it in the Options as described.
The token is called "RunWhenOpened.Behavior"
03-07-2022 03:39 AM
Is there any way to edit the ini file for this purpose?
Thanks
03-07-2022 03:57 AM
Could you please share how to find this option?
03-15-2022 03:51 PM
The Tools»Options dialog has a Security category with options that affect "Run When Opened" VIs.
03-17-2022 10:14 PM
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
03-31-2022 03:21 PM
Yes, those INI token values are correct.