I am trying to use Managed C++ to get the dir from which my .msi was
launched and set a property with that value. I am pretty lost. I have no
clue if I am even on the right track, but this all seems so simple. Right
now the last line below - I can't get the 3rd arg right. It needs to be an
LPCSTR.
String *cdromDir = NULL;
if ((status = getInstallProperty(hInstall, "OriginalDatabase",
&imageLocation)) != ERROR_SUCCESS) return status;
cdromDir = Path::GetDirectoryName(imageLocation);
USES_CONVERSION;
MsiSetProperty(hInstall, "CDROMDIR", A2W(*cdromDir));
Thanks,
owen