Service Installer Issue...

L

Lloyd Dupont

I created a service and its installer.
However the installed service doesn't work.

Why? Windows Firewall block the port my service is listening too.
If, as an administrator, I add my application to the list of app authorized
by the firewall that's all good, however I would much prefer if the
installer do that for me.

Question: How could I add my app to the authorized application list by the
firewall in my installer?
 
L

Lloyd Dupont

With VS2008 link with the NetFwTypeLib COM component.

On XP it's in
C:\Windows\System32\HNetCfg.dll

On Vista it's in
C:\Windows\System32\FirewallAPI.dll

( Hence the installer will be platform specific :-( )

Then You code can use the installer attached....
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top