Turns out that I needed to add
app.Name = 'Python'
to the code. Ugh.
Andrew
On Thu, Mar 8, 2012 at 9:22 PM, Mark Hammond wrote:
> As a couple of guesses, I'd ensure you do this from an elevated process
> (ie, "run as administrator") and also be sure to use fully-qualified paths.
>
> (The error
As a couple of guesses, I'd ensure you do this from an elevated process
(ie, "run as administrator") and also be sure to use fully-qualified paths.
(The error code shown appears to be ERROR_INVALID_POINTER, but that
might be a red herring)
Mark
On 9/03/2012 11:16 AM, Andrew Hammond wrote:
W
With the following code,
def add_firewall_exception():
app =
win32com.client.gencache.EnsureDispatch('HNetCfg.FwAuthorizedApplication',
0)
app.ProcessImageFileName = r'\Python26\python.exe'
app.Scope = NET_FW_SCOPE_ALL
app.IpVersion = NET_FW_IP_VERSION_ANY
app.Enabled = True
firew
This sounds more like a problem with your approach to servicing your
product, and not necessarily a python windows specific problem.
I can point you in the direction to create the firewall exception, but you
would still need to figure out how to arrange to have the code actually
execute.
Windows
We have python running on a number of devices in the field and have
experienced problems where it appears that a windows update has removed a
windows firewall exception, blocking our python service from operating.
Has anyone else experienced something like this? Is there a way to fix it
without hu