Bug 4254 - Installer does not open Vista firewall
: Installer does not open Vista firewall
Status: RESOLVED FIXED
Product: Logitech Media Server
Classification: Unclassified
Component: Windows Installer
: 6.5b3
: PC Windows Vista
: P2 normal (vote)
: ---
Assigned To: Squeezebox QA Team email alias
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2006-09-28 13:43 UTC by Chris Owens
Modified: 2008-12-18 11:12 UTC (History)
4 users (show)

See Also:
Category: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Chris Owens 2006-09-28 13:43:15 UTC
It looks like the ports the installer opens get stored in a legacy area of the registry and ignored.  I had to manually add slim.exe to the exceptions list.
Comment 1 Ross Levine 2007-03-28 17:46:57 UTC
This has been repaired, wrapping up this bug. 
Comment 2 Chris Owens 2007-05-22 12:10:23 UTC
Fixed in 6.5.2, which is now released and available for download at http://www.slimdevices.com/su_downloads.html

If you're still experiencing this bug, please re-open it!
Comment 3 Spies Steven 2007-06-13 15:57:47 UTC
This is still not working for me with the 6.5.2 build or newer.  I have attempted the install on a number of different Vista systems and I always need to modify the firewall manually after the install.  These Vista systems were using the default settings from the Vista install.

Ross, are you still able to install successfully on VIsta without modifying the firewall?
Comment 4 Spies Steven 2007-06-15 08:40:58 UTC
Adding Mickey to the CC.
Comment 5 KDF 2007-06-25 23:54:37 UTC
updating target as 6.5.2 is already done.
Comment 6 Chris Owens 2007-06-27 10:51:44 UTC
Triode, Ross seems to be able to easily reproduce this.  Did you do anything that might have un-done your earlier fix?  Could you have a look?  The excitement about our bad Vista support has died down now, but I'd like to keep it dead if you know what I mean.  Thanks.
Comment 7 Chris Owens 2007-06-27 10:58:42 UTC
This is the last bug I care about before releasing 6.5.3, really. :)
Comment 8 Adrian Smith 2007-06-27 11:09:19 UTC
Chris - previous fixes didn't include anything related to opening firewall ports for Vista!  (I use Norton myself)

The installer includes some code to open firewall ports by writing to the registry keys:

[Registry]
;
; The following keys open required SlimServer ports in the XP Firewall
;
Root: HKLM; Subkey: SYSTEM\CurrentControlSet\Services\SharedAccess\Parameters\FirewallPolicy\StandardProfile\GloballyOpenPorts\List; ValueType: string; ValueName: "9000:TCP"; ValueData: "9000:TCP:*:Enabled:SlimServer 9000 tcp"; MinVersion: 0,5.01;
Root: HKLM; Subkey: SYSTEM\CurrentControlSet\Services\SharedAccess\Parameters\FirewallPolicy\StandardProfile\GloballyOpenPorts\List; ValueType: string; ValueName: "3483:UDP"; ValueData: "3483:UDP:*:Enabled:SlimServer 3483 udp"; MinVersion: 0,5.01;
Root: HKLM; Subkey: SYSTEM\CurrentControlSet\Services\SharedAccess\Parameters\FirewallPolicy\StandardProfile\GloballyOpenPorts\List; ValueType: string; ValueName: "3483:TCP"; ValueData: "3483:TCP:*:Enabled:SlimServer 3483 tcp"; MinVersion: 0,5.01;
Root: HKLM; Subkey: SOFTWARE\SlimDevices\SlimServer; ValueType: string; ValueName: Path; ValueData: {app}; MinVersion: 0,5.01

Can someone look at the registry keys associated with the Vista firewall and identify what they are?
Comment 9 Adrian Smith 2007-06-27 11:42:16 UTC
Looks like the way to do it may be via netsh:

http://support.microsoft.com/kb/555914

Does the following work from an elavated command prompt?

netsh advfirewall firewall add rule name="SlimServer_Inbound" description="SlimServer Allow Inbound" dir=in action=allow program="C:\Program Files\SlimServer\server\slim.exe"
Comment 10 Chris Owens 2007-06-27 11:50:52 UTC
Ah perhaps Ross was mistaken in marking it resolved, then?

He's going to give your command line a try.
Comment 11 Ross Levine 2007-06-27 13:09:03 UTC
It works! I couldn't copy and paste, it gave me a parameter error message. But when I typed it in from the elevated command prompt it works! 

Note, elevated command prompt in Vista: Click start, type CMD and hit CTRL + SHIFT + ENTER, then Alt + C. 
Comment 12 Adrian Smith 2007-06-28 12:57:05 UTC
Ross - I've added something to the installer script in change 12312 to add this line at install time.

Could you test the next 6.5 build to see if it does the right thing?
Comment 13 Ross Levine 2007-06-29 18:13:45 UTC
Thanks Dean for building 12320 for me. It works! Opens the firewall and a player can connect. Thanks Triode!

Fixed with change 12319, again thanks Triode.