Using the firewall extension in WiX

I'm trying to write a WiX script that uses the firewall extension to WiX, and it doesn't seem to find the extension dll (I think).

The error I'm seeing is this:

The File element contains an unhandled extension element 'fire:FirewallException'. Please ensure that the extension for elements in the 'http://schemas.microsoft.com /wix/FirewallExtension' namespace has been provided.

and the relevant part of my WiX source is this:

<?xml version="1.0" encoding="windows-1252"?>
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi"
     xmlns:fire="http://schemas.microsoft.com/wix/FirewallExtension">
 <Component Id="Firewall" Guid="7278f07d-de6f-497f-9267-d5feb5216a5c" Directory="NotUsed">
  <File KeyPath="yes" Source="C:\Program Files\Java\jdk1.6.0_32\bin\java.exe">
   <fire:FirewallException Id="FWX1" Name="My Program" Port="80" Protocol="tcp"/>

If i try to register the WixFirewallExtension.dll file with regsrv32 i get this error:

The module C:\Program Files (x86)\Windows Installer XML v3.5\bin\WixFirewallExtension.dll was loaded but the entry-point DllRegisterServer was not found.

Make sure that C:\Program Files (x86)\Windows Installer XML v3.5\bin\WixFirewallExtension.dll is a valid DLL or OCX file and then try again

The dll file is in my path, but that might not matter? Do i need to do anything else to get WiX to start using it?

Answers


Found the answer after some more digging:

I needed to specify the extension on the commandline of light.exe, like this:

light myfile.wxs -ext WixFirewallExtension -out myfile.wixobj

You must add the reference of "WixFirewallExtension.dll" inside your WIX Project to resolve the issue.


Adding "WixFirewallExtension.dll" inside your WIX Project will resolve the issue. To do it follow the below steps:-

  • Open the project in visual studio.
  • Right click on wix project
  • Add reference to the above dll...

Need Your Help

How to auto change scale in PHPexcel

php html mysql phpexcel

can anyone help me how to auto scale my phpexcel report in php according to the width of my report? And also i want my report to be auto landscape.

Thin Gem Won't Work on Heroku

ruby-on-rails-3 heroku eventmachine thin

I'm moving from the Bamboo stack to the Cedar one on Heroku, but I'm running into issues trying to run the Thin gem on Heroku. Locally, I'm running Windows Vista, but I have the same error mention...