mirror of
https://github.com/reactos/wine.git
synced 2024-11-25 20:59:54 +00:00
msi: Delete the uninstall key when the product is removed.
This commit is contained in:
parent
6840049f2f
commit
f6b27673b0
@ -4039,6 +4039,7 @@ static UINT msi_unpublish_product(MSIPACKAGE *package)
|
||||
MSIREG_DeleteUserProductKey(package->ProductCode);
|
||||
MSIREG_DeleteUserDataProductKey(package->ProductCode);
|
||||
MSIREG_DeleteUserFeaturesKey(package->ProductCode);
|
||||
MSIREG_DeleteUninstallKey(package->ProductCode);
|
||||
|
||||
done:
|
||||
msi_free(remove);
|
||||
|
@ -729,6 +729,7 @@ extern BOOL squash_guid(LPCWSTR in, LPWSTR out);
|
||||
extern BOOL encode_base85_guid(GUID *,LPWSTR);
|
||||
extern BOOL decode_base85_guid(LPCWSTR,GUID*);
|
||||
extern UINT MSIREG_OpenUninstallKey(LPCWSTR szProduct, HKEY* key, BOOL create);
|
||||
extern UINT MSIREG_DeleteUninstallKey(LPCWSTR szProduct);
|
||||
extern UINT MSIREG_OpenUserProductsKey(LPCWSTR szProduct, HKEY* key, BOOL create);
|
||||
extern UINT MSIREG_OpenUserPatchesKey(LPCWSTR szPatch, HKEY* key, BOOL create);
|
||||
extern UINT MSIREG_OpenFeatures(HKEY* key);
|
||||
|
@ -504,6 +504,16 @@ UINT MSIREG_OpenUninstallKey(LPCWSTR szProduct, HKEY* key, BOOL create)
|
||||
return rc;
|
||||
}
|
||||
|
||||
UINT MSIREG_DeleteUninstallKey(LPCWSTR szProduct)
|
||||
{
|
||||
WCHAR keypath[0x200];
|
||||
TRACE("%s\n",debugstr_w(szProduct));
|
||||
|
||||
sprintfW(keypath,szUninstall_fmt,szProduct);
|
||||
|
||||
return RegDeleteTreeW(HKEY_LOCAL_MACHINE, keypath);
|
||||
}
|
||||
|
||||
UINT MSIREG_OpenUserProductsKey(LPCWSTR szProduct, HKEY* key, BOOL create)
|
||||
{
|
||||
UINT rc;
|
||||
|
Loading…
Reference in New Issue
Block a user