Question

In my application installer, I want to read credentials for logging 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?

Was it helpful?

Solution

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).

OTHER TIPS

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.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top