How to register SQL-DMO at client side dynamically using .net SetUp file.
Post date: Mar 18, 2011 12:10:48 PM
Package SQL-DMO files individually
Start Microsoft Visual Studio .NET.
Create a new Setup project:
On the File menu, point to New, and then click Project.
The New Project dialog box appears.
Under Project Types, click Setup and Deployment Projects.
Under Templates, click Setup Project.
Click OK.
Add the following files to your Setup project:
Sqldmo.dll
Sqldmo.rll
Sqlresld.dll
Sqlsvc.dll
Sqlsvc.rll
Sqlunirl.dll
W95scm.dll
The following table lists each file name and its default location:
Change value of the Register property of the Sqldmo.dll file to vsdrfCOMSelfReg:
In Solution Explorer, click sqldmo.dll.
In the Properties window, click vsdrfCOMSelfReg in the Register list.
Change the installation folder of the Sqlunirl.dll file to the system folder. For example, change the installation folder to the Installation drive:\Winnt\System32 folder or to the Installation drive:\Windows\System folder.
In Solution Explorer, click your Setup project
On the View menu, point to Editor, and then click File System.
On the Action menu, point to Add Special Folder, and then click System Folder.
In Solution Explorer, click sqlunirl.dll.
In the Properties window, click System Folder in the Folder list.
On the Build menu, click Build Project Name to build your Setup project.
-Courtesy http://support.microsoft.com/kb/326613