msi: Set the OutOfNoRbDiskSpace property.

This commit is contained in:
Hans Leidekker 2014-09-01 16:03:56 +02:00 committed by Alexandre Julliard
parent 90f023a635
commit 04f9058a28
2 changed files with 9 additions and 0 deletions

View File

@ -2355,6 +2355,8 @@ static UINT ACTION_CostFinalize(MSIPACKAGE *package)
static const WCHAR szPrimaryVolumeSpaceAvailable[] =
{'P','r','i','m','a','r','y','V','o','l','u','m','e','S','p','a','c','e',
'A','v','a','i','l','a','b','l','e',0};
static const WCHAR szOutOfNoRbDiskSpace[] =
{'O','u','t','O','f','N','o','R','b','D','i','s','k','S','p','a','c','e',0};
MSICOMPONENT *comp;
MSIQUERY *view;
WCHAR *level, *primary_key, *primary_folder;
@ -2431,6 +2433,7 @@ static UINT ACTION_CostFinalize(MSIPACKAGE *package)
/* FIXME: check volume disk space */
msi_set_property( package->db, szOutOfDiskSpace, szZero, -1 );
msi_set_property( package->db, szOutOfNoRbDiskSpace, szZero, -1 );
return MSI_SetFeatureStates(package);
}

View File

@ -1145,6 +1145,12 @@ static void test_settargetpath(void)
r = MsiDoActionA( hpkg, "CostFinalize");
ok( r == ERROR_SUCCESS, "cost finalize failed\n");
buffer[0] = 0;
sz = sizeof(buffer);
r = MsiGetPropertyA( hpkg, "OutOfNoRbDiskSpace", buffer, &sz );
ok( r == ERROR_SUCCESS, "MsiGetProperty returned %u\n", r );
trace( "OutOfNoRbDiskSpace = \"%s\"\n", buffer );
r = MsiSetTargetPathA( 0, NULL, NULL );
ok( r == ERROR_INVALID_PARAMETER, "wrong return val\n");