Tracy:
I tried the Inno Setup but I couldn't make it work and had little time to 
investigate the reason so I stuck with installsheild which works ok for me.
Thanks for the code. My guess is that this blocks the firewall for the 
execution of the program and then when the program closes the firewall is 
re-enabled with
thisform.firewallaccess = .t. on program exit.
I will try this on my Win 7 box.
Thanks again!
Best regards,
Jack

Jack,

I just fired up a test box, dragged my exe utility that uses the
mswinsock.ocx listener. On first start it notifies me: "Windows Firewall has
blocked some features of this program".

I don't when I changed my VFP 9 executable firewall status on the old Vista
box. I'm not sure I've needed to on my Windows 7 Dev box I use today.

There is a way to add an exception to the standard Windows Firewall during
setup via Inno Setup using NETSH.EXE

You can also do it with a couple COM object calls when in an administrative
privileged exe.

*-- Disable the "Open Windows Firewall" when access is not available
TRY
   LOCAL loFWM     as NetFwTypeLib.INetFwMgr , ;
         loProfile as NetFwTypeLib.INetFwProfile , ;
         loPort    as NetFwTypeLib.INetFwOpenPort

   loFWM     = CreateObject("HNetCfg.FwMgr")
   loProfile = loFWM.LocalPolicy.CurrentProfile
   loPort    = CreateObject("HNetCfg.FWOpenPort")
CATCH TO oEx
   THISFORM.FirewallAccess = .F.
ENDTRY


Tracy Pearson
PowerChurch Software

Jack Skelley
Senior Director, Programming/Computer Operations
New Jersey Devils
(973)757-6164
[email protected]

_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: 
http://leafe.com/archives/byMID/profox/7d9e7f72b813014c8fd022cf04f820ed0bc...@ex08.drdad.thenewarkarena.com
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.

Reply via email to