MSI: Improve the MsiGetMode stub a little.

This commit is contained in:
Mike McCormack 2006-01-03 12:12:15 +01:00 committed by Alexandre Julliard
parent 188365e2f0
commit a0f88f7a3e
1 changed files with 25 additions and 2 deletions

View File

@ -449,8 +449,31 @@ UINT WINAPI MsiSetTargetPathW(MSIHANDLE hInstall, LPCWSTR szFolder,
BOOL WINAPI MsiGetMode(MSIHANDLE hInstall, MSIRUNMODE iRunMode)
{
FIXME("STUB (iRunMode=%i)\n",iRunMode);
return TRUE;
BOOL r = FALSE;
switch (iRunMode)
{
case MSIRUNMODE_WINDOWS9X:
if (GetVersion() & 0x80000000)
r = TRUE;
break;
case MSIRUNMODE_RESERVED11:
case MSIRUNMODE_RESERVED14:
case MSIRUNMODE_RESERVED15:
break;
case MSIRUNMODE_SCHEDULED:
case MSIRUNMODE_ROLLBACK:
case MSIRUNMODE_COMMIT:
break;
default:
FIXME("%ld %d\n", hInstall, iRunMode);
r = TRUE;
}
return r;
}
/***********************************************************************