开发者

WiX compiler extension tutorial?

开发者 https://www.devze.com 2022-12-19 19:32 出处:网络
I need to create a WiX extension to handle interacting with the HTTP API (httpapi.dll) so that I can set URLACLs and SSL bindings for a WCF service that is being installed.

I need to create a WiX extension to handle interacting with the HTTP API (httpapi.dll) so that I can set URLACLs and SSL bindings for a WCF service that is being installed.

As I understand it, I need to create a WiX compiler extension, so that I can define an XML grammar (XSD), and then implement a compiler to turn the XML into records in tables defined in the MSI.

I have most of that up and running, but开发者_开发百科 I am stumped on how to set up my project to use the XsdGen custom tool, and I am sure there are more issues lurking around the corner after that.

Is there a full tutorial that shows how to create a Wix compiler extension?


XsdGen is defined in WixBuild.Common.targets for the WiX build itself; it's not exposed via the "normal" wix.targets. You can run xsdgen.exe in a prebuild event instead.


You might take a look at the extensions in the WiX contrib project. Since they aren't part of the WiX toolset they have the extra steps needed to build the extension.


Expecting a full tutorial is a bit optimistic. Writing a WiX extension is a very advanced use case that very few people will ever need to do. Instead, you can take a look at the source of all the official extensions in the WiX source code.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号