????? ????? ????? ?? ??????? SQL Server 2000 Desktop Engine ? ??????

?????? ????????? ?????? ?????????
???? ???????: 315463 - ??? ???????? ???? ????? ????? ??? ???????.
??? ????? ??? ???????. ????? "??? ??" ??? ??? ??????? ??? ????.
????? ???? | ?? ????

?? ??? ??????

??????

??? ??????? ?????? ??? ??????? ????? ????? ????? ?? ????? ????? ??????? SQL Server 2000 Desktop Engine (MSDE 2000) ??????? ????? ???? ?????? ???? ??? ?? ????? ?????? ?? ????? ????? ?? ??????? ???? ????.

SQL Server 2000 Desktop Engine (MSDE 2000) ????? ?????? ?????? ??????? ?? ???? ????? ?????? ??????? ?? Microsoft SQL Server 2000. ????? ????? ?????? ???? ????? ?????? ??????? SQL Server ??? ????? ??????? ???? ?? ????? ??????? ???????.

???? ???? ????? MSDE 2000 ??????? ????? ?? ????? ????? ???? ?? ?????? ??????? ????? ????? ???????.

???? ??????? ????? ?? ???????

????? ?? ??????? ?????? ????? ??? ????? ?????? ???????:
  • ??? ?? ???? ?????? ????? ?? ??????? ?? Windows Installer ???? ????? ??? 1 ?????????? ???????? ????? (DLL). ??? ???? ??????? ????? ??????? Visual C++ ??????? ????? ????? ????? Microsoft ?????? ?? ????? DLL.

    ?????? ??? ???? ?? ????????? ??? ????? ????? ???? Windows ?? ?????? ???? ???? ????? Microsoft (MSDN) ?????? ??? ?????:
    http://msdn.microsoft.com/library/en-us/msi/cact_6a05.asp?frame=true
  • ??? ?? ?????? ????? ?? ??????? ?? ?? ?? ???????? ???????:
    • ?????? ???? ??? ?????? ?????? ??????? Win32 GetTempPath.
    • ?????? "Product code" ???????? ?? ?????? ???? ??? ?????? ?????? ??????? Win32 GetTempPath.

      ??????Product code ?? ???? ???? ??? ?????? ?????? MSDE 2000 ??????? ??? ???? ????????? ????? ??.
    ???? ???? ?????? ???? ??? ?????? ?????? Win32 GetTempPath ??? ??????? ????? ?????? % TMP. ?? ???? ??? ???? ????? ?????? % TMP % ??? ????? ?????? % TEMP %.

    ?????? ??? ???? ?? ????????? ??? ???? Win32 GetTempPath ?? ?????? ???? ???? ????? Microsoft (MSDN) ?????? ??? ?????:
    http://msdn.microsoft.com/library/en-us/fileio/base/gettemppath.asp

  • ??? ?? ????? ?? ??????? Desktop Engine ?????? ????? UINT ?????? ????? ??? ??? ????? Desktop Engine ?? ??? ???????. ???? ????? ????? ?? ???????
    UINT __stdcall MyCallbackFunction(MSIHANDLE hinstall, UINT uExitCode)
    						
    ??? uExitCode ????? ??? ?????? ??????? Desktop Engine ?????? ??? ?? ??? ???????.

????? ????? ?????? ???? ????? ?? ???????

??? ??????? ??????? ????? ????? ?? ??????? ????? ???????? Microsoft Visual Studio 6.0.

  1. ?? Microsoft Visual C++ 6.0 IDE ? ???? ??? ??? ? ?? ???? ??? ????. ??? ????? ??????? "????????" ? ???? ??? ??????? "??????? ????? ????".
  2. ????? ??? ?????. ??? ???? ??????? MyCallback. ????? ????? ????? ?????? ???? ???? ????? ???????. ???? ??? ?????.
  3. ????? ??? ????? ?? ???????. ??? ???? ??????? MyCallbackFunction. ???? ?? ?????? ?????? ??????? "??????? ????? ??????" ?????? ?? ????? DLL. ???? ??????? ????? ??? ???? ?? "XP_". ??? ???? ???? ????? ??????? ???? ??? ?????? ?? ??????? ?? ???????. ???? ??? ?????.
  4. ??? ???? ?????? ???????? cpp ????????. ?? ??? "????? ?????" ? ?????? ????? ????? ???? ???????. ??? ClassView ?? ?? ?????? ???? ????? ?? ???? ???? MyCallback. ????? ?? ???? ????? ?????? MyCallbackFunction.

    ????? ???????? ???????? ?????? ????? ?? ??????? ?? ????? ????? ??????? ?????? ???????. ????? ?????? ??????? ?????? ??? ????????? ???????? ??????? ??? ?????? MyCallbackFunction.

    ??? ?????

    #include <stdafx.h>
    
    #define XP_NOERROR 0
    #define XP_ERROR 1
    #define MAXCOLNAME 25
    #define MAXNAME 25
    #define MAXTEXT 255
    
    #ifdef __cplusplus
    extern "C" {
    #endif
    
    UINT __declspec(dllexport) MyCallbackFunction(HANDLE hinstall, UINT uExitCode);
    
    #ifdef __cplusplus
    }
    #endif
    
    UINT __declspec(dllexport) MyCallbackFunction(HANDLE hinstall, UINT uExitCode)
    {
    
         TCHAR buffer[1024];
    
         wsprintf(buffer, TEXT("**Callback** Return code is %d"), uExitCode);
    
         MessageBox(NULL, buffer, TEXT("MyCallbackFunction Dialog"), MB_OK);
    
         return 0;
    }
    					
    ??? ??? ?????? ????? ?? ??????? ???? ????? ?? ??? ???? ??? ?? ???????:
    **Callback** Return code is 0
    					
  5. ????? ??? MyCallback.dll ???????? ??????? ????. DLL ??????? ?????? ??? ???? ???? ???? Debug, ?? ??? ?????? ???? ????? ?? ?????? 2.
  6. ??? ?? ??? ????? DLL ??? ??? DLL ??? ???? ???? ????? ??? ????? MSDE 2000 ??????? ??? ???? ????????? ????? ??.
    • ??? ??? ?????? Microsoft SQL Server 2000 Desktop Engine SP2 ? ??? ??? DLL ??? ?????? ???? ?? ?????? ?????? ??? ??????? ?????? ???????:
      • % TMP %
      • % TEMP %.
      ?????? ??? ?????? ??? ????????? ??? ??????? ???? ???????? ???? ?? ????? ????? ? ???? ????? ?????? ?? ???? ???????:
      SET
      ???? ??? ????? ???? ??????? ?????? ??? ?? ??? TMPTEMP.
    • ??? ??? ?????? Microsoft SQL Server 2000 Desktop Engine SP3a ? ??? ??? DLL ??? ??? ??????? ???????:
      • %TMP%\ {Product code}
      • %TEMP%\ {Product code}
      ??????{Product code} ?????? ?????? ??? ?????? ?????? MSDE 2000 ??????? ??? ???? ????????? ????? ??.

      ??? ???? ??????? ??? ??? ???? MSDE 2000 ??? ??? ???? E09B48B5-E141-427A-AB0C-D3605127224A ? ??? ??? DLL ??? % TMP%\{E09B48B5-E141-427A-AB0C-D3605127224A} ?? % TEMP%\{E09B48B5-E141-427A-AB0C-D3605127224A} ??????.
  7. ?????? ?????? ?? ??????? ???? Windows Desktop Engine ??????? ????? ?? ??????? ????? ???????. ??? ???? ??????:
    CALLBACK=Dllname!CallbackFunctionName
    ??? ???? ?????? ??? ???? ??????:
    setup.exe /L*v c:\msde_setup.log CALLBACK=MyCallback!MyCallbackFunction
    					

?????

?????? ??? ??????? ??????? ???? ??? ??? ??????? ?????? ?????? ?? "????? ??????? ?? Microsoft:
299795????? ????? ??????? ???? MSDE 2000 ?? Microsoft Visual Studio Installer 1.1


SDK ???? Windows ??? ?? Microsoft Platform ?????? ?? ????? ??????? (SDK). ????? ?? ????????? ??? Platform SDK ?? ?????? ???? Microsoft ?????? ??? ?????:
http://www.microsoft.com/msdownload/platformsdk/sdkupdate/
??? SQL Server 2000 ???????; ??????: "????? ??????? ???? SQL"; "????? SQL ??????? ????"; "????? SQL ?? ??????? ????"; "??? ?????? ????? Windows Installer ????? ????"; "??? ?????? ????? Windows Installer ??????? ?????"

???????

???? ???????: 315463 - ????? ??? ??????: 11/???? ??????/1435 - ??????: 3.0
????? ???
  • Microsoft SQL Server 2000 Desktop Engine (MSDE) SP3a
  • Microsoft SQL Server 2000 Desktop Engine (Windows)
????? ??????: 
kbnosurvey kbarchive kbmt kbhowtomaster KB315463 KbMtar
????? ????
???: ??? ????? ??? ?????? ???????? ?????? ????? ???? ????? ?????????? ????? ?? ????????? ?????? ????. ???? ???? ?????????? ???? ?? ???????? ???????? ?????? ????????? ????? ????????? ???????? ????? ???????? ?????? ?? ?????? ??? ?? ???????? ???????? ?? ????? ??????? ?????? ??? ??????? ?????? ??. ?????? ?? ???? ??? ??????? ???????? ????? ?? ???? ????? ?????? ??? ????? ??? ????? ??????? ?? ????? ?? ?????? ??? ??? ??????? ??????? ?? ????? ????? ????? ????? ?????. ?? ????? ???? ?????????? ??????? ??? ????? ?? ??????? ?? ????? ?????? ?? ??? ????? ?? ????? ??????? ?? ???????? ?? ??? ???????. ???? ???? ?????????? ???????? ??? ????? ?????? ??????? ??????
???? ??? ????? ??????? ?????? ??????????315463

Contact us for more help

Contact us for more help
Connect with Answer Desk for expert help.
Get more support from smallbusiness.support.microsoft.com