Unblock My Application

  • Thread starter Thread starter jp2msft
  • Start date Start date
J

jp2msft

For our installers, is there a way to programatically add our application to
the list of allowed programs?

Currently, whenever a new program is installed, our employees see the
Windows Security Alert box asking if they "want to keep blocking this
program?"

I understand the security concerns, but can this be done somehow through
code? Where could I look for help on this?

Thanks,
Joe
 
Hello Joe,

it took me just 2 minutes to check the registry for the Firewall
settings (by searching for "Firewall").

The key you are looking for is:
HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\SharedAccess\Parameters\FirewallPolicy\StandardProfile\AuthorizedApplications\List

Best regards,

Martin
 
Just to add to what Martin said, be aware that if you're installing on Vista
you will likely get a UAC prompt if you try to do this. Writing to HKLM
requires admin privs, which your user will have to grant during the install
(via UAC) if you do this.
 
Back
Top