LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Build access web on startup

My build or executable is trying to access the web... My virus scan notifies me of this on each new build. and I allow it through the firewall...Macafee Virus Scan

How do I build executables that don't access the web.
0 Kudos
Message 1 of 12
(3,821 Views)

Hi richjoh,

There should be a setting in your firewall that will unblock LabVIEW.  If that option is not available, what are you trying to do in your program?

Regards,

James R.
National Instruments
0 Kudos
Message 2 of 12
(3,798 Views)

Hi richjoh,

      Try opening the INI for the EXE (they always create an INI with the same name) and set server.tcp.enabled=False.

      It may be that VI server is enabled when you're building your EXE.  I think the EXE inherits the Options so when it starts-up, it wants to allow TCP connections.  Try disabling the TCP option before building the EXE and maybe the "server.tcp.enabled" will default to false.

Cheers!

 

"Inside every large program is a small program struggling to get out." (attributed to Tony Hoare)
0 Kudos
Message 3 of 12
(3,789 Views)

Tbd,

I set all the network stuff in the ini file to False and the app still accesses web when I startup.

Still need ideas for this...

0 Kudos
Message 4 of 12
(3,779 Views)

Hi richjoh,

      Have seen this several times at work while distributing a specific EXE (always on XP machines) and thought I understood it - am not so sure now, sorry! Smiley Sad

The dialog I've seen looks like the Windows Firewall, but it's the same idea you've described, also described here where it was a ZoneAlarm msg.  If VirusScan builds a log of "allowed" connections, it might show the address and port LabVIEW is trying to connect to - this could help diagnose the source of the problem.  Zonealarm and Norton Internet Security have such logs, will check a machine running VirusScan tomorrow.

Am on an XP (Prof.) machine now.  Compiled several apps under two different versions of LV, rebooted after changing firewall settings, and tried loggin-in as user with less priviledges - the firewall refuses to complain. Smiley Mad

BTW, what version of LabVIEW created the EXE?

Cheers.

"Inside every large program is a small program struggling to get out." (attributed to Tony Hoare)
0 Kudos
Message 5 of 12
(3,767 Views)
Labview version 8.0...
0 Kudos
Message 6 of 12
(3,756 Views)

I'm running into this problem NOW in 8.6 whereas it was NOT present before in a deployed build of the same code in 8.5.1, 8.5, 8.2, etc.

 

DNSLookupEnabled=FALSE

servertcp.enabled=FALSE 

 

are both included in the app.INI file (per other notes) but still my app tries to access the internet on startup IF the computer is already connected to the internet.  This is behavior I specifically do not want as I want any attempt at internet access to happen ONLY when a user manually selects to do so.

 

Any suggestions? 

0 Kudos
Message 7 of 12
(3,513 Views)

Hi drval

 

What exactly are you trying to do in your program?  How are you detecting that the app is trying to access the internet on startup?

 

 

Regards,

 

Justin P

National Instruments

Justin Parker
National Instruments
Product Support Engineer
0 Kudos
Message 8 of 12
(3,480 Views)

I'm using webbrowser2 in an ActiveX container in a sub-vi that programmatically calls to the internet.  As I understand it webbrowser2 remembers the last URL it SUCCESSFULLY accessed and then tried to access that when it instantiates -- whether or not it is called.  The code is based on the shipping example:

 

ActiveX Event Callback for IE.vi

 

Try embedding that as a callable sub-vi in a larger app and you should see the same behavior. 

0 Kudos
Message 9 of 12
(3,460 Views)

drval,

 

I was able to replicate the behavior that you are seeing.  It does look like the webbrowser2 does attempt to access the internet, in 8.6, as soon as the vi is loaded.  This is new to 8.6.  If you can't have this happening, I would dynamically load the vi that is using the webbrowser2 at the time you need it.

 

Have a great day,

 

Justin P

Justin Parker
National Instruments
Product Support Engineer
0 Kudos
Message 10 of 12
(3,408 Views)