mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-06 03:50:21 +00:00
msi: Don't set the Preselected property for a full reinstall.
This commit is contained in:
parent
fbd7f8813f
commit
c66b78a810
|
@ -1784,7 +1784,7 @@ static BOOL process_overrides( MSIPACKAGE *package, int level )
|
|||
ret |= process_state_property( package, level, szReinstall, INSTALLSTATE_UNKNOWN );
|
||||
ret |= process_state_property( package, level, szAdvertise, INSTALLSTATE_ADVERTISED );
|
||||
|
||||
if (ret)
|
||||
if (ret && !package->full_reinstall)
|
||||
msi_set_property( package->db, szPreselected, szOne, -1 );
|
||||
|
||||
return ret;
|
||||
|
@ -7785,6 +7785,7 @@ UINT MSI_InstallPackage( MSIPACKAGE *package, LPCWSTR szPackagePath,
|
|||
{
|
||||
TRACE("setting REINSTALL property to ALL\n");
|
||||
msi_set_property( package->db, szReinstall, szAll, -1 );
|
||||
package->full_reinstall = 1;
|
||||
}
|
||||
|
||||
/* properties may have been added by a transform */
|
||||
|
|
|
@ -414,6 +414,7 @@ typedef struct tagMSIPACKAGE
|
|||
unsigned char need_reboot_at_end : 1;
|
||||
unsigned char need_reboot_now : 1;
|
||||
unsigned char need_rollback : 1;
|
||||
unsigned char full_reinstall : 1;
|
||||
} MSIPACKAGE;
|
||||
|
||||
typedef struct tagMSIPREVIEW
|
||||
|
|
Loading…
Reference in a new issue