在 codeINSTALL_EXIT Install_Exit 事件中, 加入以下代码. 然后装编译好的DLL导入到CAB工程中即可. SETUP_API codeINSTALL_EXIT Install_Exit( HWND hwndParent, LPCTSTR pszInstallDir, // final install directory WORD cFailedDirs, WORD cFailedFiles, WORD cFailedRegKeys, WORD cFailedRegVals, WORD cFailedShortcuts ) { wcscat((wchar_t*)pszInstallDir,(wchar_t*)(_T("//WMClient.exe"))); PROCESS_INFORMATION stProgressInfo; CreateProcess(pszInstallDir, TEXT(""), NULL, NULL, NULL, 0, NULL, NULL, NULL, &stProgressInfo ); return codeINSTALL_EXIT_DONE; }