StrikerNL Posted February 3, 2005 Posted February 3, 2005 Update II: I have gotten it to work with netfw.inf. Close/delete this topic if you will.Update: I seem to have worked it out; RealVNC is installed during a later stage (GuiRunOnce) than the firewall rules are put in place and I suppose when the .exe is not in place, the installation refuses to add an entry to Windows Firewall for it. I have done it by port which works, though I'd really prefer to do it by application and not by port, so my question becomes, can it be done that way somehow?I've googled and searched the entire forums to no avail... I'm at a loss as to what I'm doing wrong...I'm trying to add an entry in the Windows Firewall for RealVNC during unattended installation. For as far as I know it's all set up properly, yet when the installation is done, the entry does not show up in the Windows Firewall and the port is not opened.Any ideas would be appreciated.Here is my winnt.sif for reference:[Data]AutoPartition=1MsDosInitiated=0UnattendedInstall=Yes[Unattended]UnattendMode=FullUnattended OemSkipEula=YesOemPreinstall=YesOemFilesPath="\os\wxpsp2\$OEM$"UnattendSwitch=YesWaitForReboot=NoFileSystem=*DriverSigningPolicy=IgnoreNonDriverSigningPolicy=IgnoreTargetPath=\WINDOWS[GuiUnattended]AdminPassword=xEncryptedAdminPassword=YesOEMSkipRegional=1TimeZone=110OemSkipWelcome=1[UserData]ProductID="x"FullName="Striker Install CD"OrgName="Da Devil Crew"ComputerName=*[Networking]InstallDefaultComponents=Yes[Shell]DefaultStartPanelOff=YesDefaultThemesOff=Yes[Identification]JoinWorkgroup=ddcrew[RegionalSettings]LanguageGroup=1Language=00000409[WindowsFirewall]Profiles=WindowsFirewall.Standard[WindowsFirewall.Standard]Type=1Mode=1Exceptions=1AllowedPrograms=WindowsFirewall.RealVNC[WindowsFirewall.RealVNC]Program=%ProgramFiles%\RealVNC\VNC4\winvnc4.exeName=RealVNCMode=1Scope=0[GuiRunOnce]%systemdrive%\install\start.bat
Radimus Posted February 3, 2005 Posted February 3, 2005 as a bat file in runonceex@echo Offnetsh firewall resetnetsh firewall set service fileandprint enable netsh firewall set service remoteadmin enable netsh firewall set service remotedesktop enable netsh firewall set icmpsetting 8 enablenetsh firewall add allowedprogram "%programfiles%\netmeeting\conf.exe" NetMeeting enablenetsh firewall add allowedprogram "%windir%\system32\r_server.exe" RAdmin enable
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now