Is there any way to find the sql server is 64 bit or 32 bit in machine using wix. I am building the wix in visual studio 2010.Based on configuration the installer will install. At install time it will check sql is 64 or 32. If OS is 64bit but 32 sql is ins开发者_C百科talled my installer will install.
Thanks, Rajeev Kumar.
To detect if the target machine is 32-bit or 64-bit you can use VersionNT64 property. This property can be used as a launch condition to stop the 32-bit package from installing on a 64-bit machine. A 64-bit package cannot run on a 32-bit machine and is stopped automatically.
For detecting SQL Server there are multiple approaches. For example you can search for registry values or use a custom action. Perhaps this article will help: http://blogs.msdn.com/b/sqlexpress/archive/2006/07/29/682254.aspx
精彩评论