I've created a merge module where in i've got a CA that is used to stream out support files that are included in that merge module's binary table (that will be needed by an additional CA in that merge module at deferred execution time).
My CA works that extracts the files from the binary table, but the problem is they are extracted to the 'c:\' drive because SUPPORTDIR returns a NULL value. Here is the portion of my WI function in my dll where i'm trying to grab the SUPPORTDIR value:
UINT __stdcall StreamFiles(MSIHANDLE hMSI)
{
int nResult=0;
DWORD nBufSize;
char szFiles[1024];
char szKeys[1024];
TCHAR szSupportDir[1024];
.
.
.
nBufSize = sizeof(szSupportDir);
MsiGetProperty(hMSI,"SUPPORTDIR",szSupportDir,&nBufSize);
nBufSize = sizeof(szFiles);
MsiGetProperty(hMSI,"FILESTOSTREAM",szFiles,&nBufSize);
nBufSize = sizeof(szKeys);
MsiGetProperty(hMSI,"BINARYTABLEKEY",szKeys,&nBufSize);
.
.
.
The other two properties are returned properly but never SUPPORTDIR. The only difference between SUPPORTDIR and the two other properties is that the two other poperties are stored in the merge module itself but SUPPORTDIR is created in the WI project that contains that merge module. Didn't know if that would be a factor or not.
Any ideas?
This is a ready-only archive of the InstallSite Forum. You cannot post any new content here. / Dies ist ein Archiv des InstallSite Forums. Hier können keine neuen Beiträge veröffentlicht werden.
SUPPORTDIR
Started by
wilsonbradleyc
, Oct 08 2003 14:59
1 reply to this topic