Commit d9510f59 authored by Hans Leidekker's avatar Hans Leidekker Committed by Alexandre Julliard

msi: Only set the property in the Reinstall event.

parent f23bf7a4
......@@ -386,19 +386,7 @@ static UINT ControlEvent_ReinstallMode(MSIPACKAGE *package, LPCWSTR argument,
static UINT ControlEvent_Reinstall( MSIPACKAGE *package, LPCWSTR argument,
msi_dialog *dialog )
{
static const WCHAR szReinstallEq[] = {'R','E','I','N','S','T','A','L','L','=',0};
UINT r = ERROR_OUTOFMEMORY;
WCHAR *cmd;
cmd = msi_alloc( (strlenW( szReinstallEq ) + strlenW( argument ) + 1) * sizeof(WCHAR) );
if (cmd)
{
strcpyW( cmd, szReinstallEq );
strcatW( cmd, argument );
r = MsiConfigureProductExW( package->ProductCode, INSTALLLEVEL_DEFAULT, INSTALLSTATE_DEFAULT, cmd );
msi_free( cmd );
}
return r;
return msi_set_property( package->db, szReinstall, argument );
}
static UINT ControlEvent_ValidateProductID(MSIPACKAGE *package, LPCWSTR argument,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment