开发者

Getting SQL Server instance name in WIX?

Using WIX i would like to know what instance of SQL Server is installed on target machine. If installed, get the name and set it as one of the property value to be displayed in my custom dialog.

I am using the following code to find if SQL Server is installed and using SQLSERVER property to set the my control's value, but its coming up as empty:

<Property Id="SQLSERVER"><RegistrySearch Id="SQLServer" Root="HKLM" Key="SOFTWARE\Microsoft\Microsoft SQL Server" Type="raw" Name="Installed开发者_StackOverflow中文版Instances"/></Property><Condition Message="Error: This application requires Microsoft SQL Server 2005/2008 to be installed. Please install Microsoft SQL Server 2005/2008 and run this installer again.">SQLSERVER</Condition>

Custom Dialog:

<Control Type="Edit" Id="txtInstanceName" Width="150" Height="15" X="22" Y="139" Property="SQLSERVER" Text="[SQLSERVER]" /> 

Can someone please guide me what am I doing wrong here? Thanks!


It's a bug documented here: http://support.microsoft.com/kb/897026

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜