Desktop Engine Installation Samples

xiaoxiao2021-03-05  26

The Consoledesktopengine sample demonstrates how to call either the Microsoft® SQL Server ™ 2000 Desktop Engine (MSDE 2000) Setup or Microsoft Windows® Installer Setup to install an instance of the Desktop Engine.

The logic in Consoledesktopengine.cpp for using CreateProcess () to call the Desktop Engine Setup.exe illustrates the fundamental Desktop Engine-specific code that should be considered for an application wrapper installation program. This is the method new applications should use to install MSDE 2000 .

The logic to call the Windows Installer Setup to install MSDE 2000 using a custom installation package file is provided only for existing applications that use this mechanism. This method should not be used for new applications. For more information on the issues involved with using customized installation Package Files, See Managing Desktop Engine Installation Package Files.

Default Location Of C FILES

C: / Program Files / Microsoft SQL Server / 80 / Tools / DevTools / Samples / Desktop

To Run the Sample

Copy the following files from the sample folder to a folder in your Microsoft Visual C ® include path: Sqlserror.h and Validateinstance.h.Copy the following files from the sample folder to a folder in your Visual C library path: Sqldedev.lib and Desktopenginedeploy.lib.Using Visual C version 6.0, open and run Consoledesktopengine.dsw to create an executable.Copy the contents of the / MSDE / Setup folder on the SQL Server 2000 compact disc to the folder holding ConsoleDesktopengine.exe. Optionally, generate a custom Desktop Engine installation package file in the folder containing ConsoleDesktopengine.exe. For more information about generating a custom installation package file, see Managing Desktop Engine Installation Package Files.Run ConsoleDesktopengine.exe.Default Location of Sample .msi Files

The Following Desktop Engine Installation Package Files Were Originally Provided AS Templates for Users Developing Their OWN Installation Packages:

Sample.msi supports Only New Installations. This Template Does NOT Support Upgrading An Instance of Microsoft Desktop Engine (MSDE) Version 1.0.SampleUpg.msi Supports Both New Installations and Upgrades.

Do not use either of these files to install new instances of MSDE 2000. Only use them to build patch files for applying the latest MSDE 2000 service pack to instances originally installed using these files. For more information about building patch files, see the readme file For The Latest SQL Server 2000 Service Pack.

These files are not installed with MSDE. They are included with the other editions of SQL Server, such as SQL Server 2000 Developer Edition. If you installed the SQL Server sample applications when running SQL Server 2000 Setup, the files are located in the folder C : / Program Files / Microsoft SQL Server / 80 / Tools / DevTools / Samples / Desktop.see Also

Installing DeskTop Enginedistributing The SQL Server 2000 Desktop Engine

转载请注明原文地址:https://www.9cbs.com/read-34448.html

New Post(0)