As Edwin could have more tactfully pointed out, his script does have some advantages over mine. Thanks, Edwin. Mine is intended to get you in the right direction, while his is more production ready except for one point: I still suggesting using Start-Process to launch msbuild so that you can get the return code to see if it failed (and conveniently log the output).
Things I would use from his script: - His msbuild args are in an array, which is nicer than the literal string in mine. - He reads a registry key to find msbuild which is less appropriate for a quick "how to" email, but better for production code. - Parameter validation, if you want to be pedantic about it. -- View this message in context: http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/using-wix-with-powershell-tp7537541p7550930.html Sent from the wix-users mailing list archive at Nabble.com. ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users