In my application installer, I want to read credentials for log开发者_JAVA技巧ging into a database from an xml file. Is there any way that I can do this. If I had to use custom actions, how would I assign the return value into the property?
WiX doesn't have a built in Xml read pattern, only Xml write. You'll have to write a custom action to accomplish this. BTW, VBScript is not a good solution due to ActiveScript hosting problems in Windows Installer.
Here's a good example: http://www.dalun.com/wix/05.22.2007.htm (UPDATE: Resurrected from WayBack August 2018) They're using VBS code there; if you need C, start with looking at MsiSetProperty (http://msdn.microsoft.com/en-us/library/aa370391%28VS.85%29.aspx).
精彩评论