I need to modify an MSI file, and I'd like to do it in code. I can do it via command line using cscript.exe and wirunsql.vbs, but I can't figure out how to do it in .Net. I know it can be done, as I've found snippets of other people doing something, but they don't say what to include or where to get it. I have the Windows Platform SDK, but not the samples (I'm having difficulty getting them to download). I also have the latest version of WiX, which I think is a part of Windows Installer 3.0?
So what do I need to include in my project to run a SQL query against an MSI file? Is there a good example online?