CustomAction succeeds on development computer, fails on deployment computer
问题 I'm creating a WiX installer to install a program which connects to a database. To help with this, I've created a C dll which checks to see if a certain instance of SQL exists on a server: extern "C" UINT __stdcall DBConTest(MSIHANDLE hInstaller) { FILE *fp; fp = fopen("dbcontestdll.txt", "w"); _ConnectionPtr pCon; int iErrCode; HRESULT hr; UINT rc; //init COM fwprintf(fp, L"entering dbcontest\n"); if(FAILED(hr = CoInitializeEx(NULL,tagCOINIT::COINIT_APARTMENTTHREADED))) return ERROR_INVALID