Service Installer Issue...

  • Thread starter Thread starter Lloyd Dupont
  • Start date Start date
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?
 
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....
 
Back
Top