Popravil sem pogoj za odstranitev, da pri nadgradnji programskega paketa odstranitev prejšnje verzije ne odstrani več opravila, ki ga je ravnokar ustvarila nova verzija.
This commit is contained in:
parent
a53703ab68
commit
fef77bcd3e
@ -113,7 +113,7 @@ UINT MSITSCA_API EvaluateScheduledTasks(MSIHANDLE hInstall)
|
||||
uiResult = ::MsiRecordFormatStringW(hInstall, hRecord, 2, sDisplayName);
|
||||
|
||||
if (iAction >= INSTALLSTATE_LOCAL) {
|
||||
// Installing component. Add the task.
|
||||
// Component is or should be installed. Create the task.
|
||||
PMSIHANDLE hViewTT;
|
||||
CMSITSCAOpCreateTask *opCreateTask = new CMSITSCAOpCreateTask(sDisplayName, MSITSCA_TASK_TICK_SIZE);
|
||||
assert(opCreateTask);
|
||||
@ -136,8 +136,8 @@ UINT MSITSCA_API EvaluateScheduledTasks(MSIHANDLE hInstall)
|
||||
break;
|
||||
|
||||
olExecute.AddTail(opCreateTask);
|
||||
} else {
|
||||
// Removing component. Remove the task.
|
||||
} else if (iInstalled >= INSTALLSTATE_LOCAL && iAction >= INSTALLSTATE_ADVERTISED) {
|
||||
// Component is installed, but should be degraded to advertised. Delete the task.
|
||||
olExecute.AddTail(new CMSITSCAOpDeleteTask(sDisplayName, MSITSCA_TASK_TICK_SIZE));
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user