I'm writting a setup program that needs to install the DataMining Adding 开发者_StackOverflow社区for Office 2007.
1) How do I detect if it's already installed?
2) If it is not installed, I download and run the MSI (SQLServer2008_DMAddin.msi). But how can I run the Server Configuration (Microsoft.SqlServer.DataMining.Office.ServerConfiguration.exe) tool myself and not have the addin ask questions to the user the first time they open Excel?
1) Check if "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SQL Server DMAddins\Config" exists.
2) Use the "InstallPath" value to find and run "Microsoft.SqlServer.DataMining.Office.ServerConfiguration.exe"
精彩评论