Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
701f1480
Commit
701f1480
authored
Jan 20, 2011
by
Hans Leidekker
Committed by
Alexandre Julliard
Jan 20, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msi: Clean up better when removing a product.
parent
8933013b
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
21 additions
and
10 deletions
+21
-10
action.c
dlls/msi/action.c
+5
-10
msipriv.h
dlls/msi/msipriv.h
+1
-0
registry.c
dlls/msi/registry.c
+15
-0
No files found.
dlls/msi/action.c
View file @
701f1480
...
...
@@ -5139,21 +5139,16 @@ static UINT msi_unpublish_product(MSIPACKAGE *package, WCHAR *remove)
MSIREG_DeleteUserDataProductKey
(
package
->
ProductCode
);
MSIREG_DeleteUninstallKey
(
package
);
if
(
package
->
Context
==
MSIINSTALLCONTEXT_MACHINE
)
{
MSIREG_DeleteLocalClassesProductKey
(
package
->
ProductCode
);
MSIREG_DeleteLocalClassesFeaturesKey
(
package
->
ProductCode
);
}
else
{
MSIREG_DeleteUserProductKey
(
package
->
ProductCode
);
MSIREG_DeleteUserFeaturesKey
(
package
->
ProductCode
);
}
MSIREG_DeleteLocalClassesProductKey
(
package
->
ProductCode
);
MSIREG_DeleteLocalClassesFeaturesKey
(
package
->
ProductCode
);
MSIREG_DeleteUserProductKey
(
package
->
ProductCode
);
MSIREG_DeleteUserFeaturesKey
(
package
->
ProductCode
);
upgrade
=
msi_dup_property
(
package
->
db
,
szUpgradeCode
);
if
(
upgrade
)
{
MSIREG_DeleteUserUpgradeCodesKey
(
upgrade
);
MSIREG_DeleteClassesUpgradeCodesKey
(
upgrade
);
msi_free
(
upgrade
);
}
...
...
dlls/msi/msipriv.h
View file @
701f1480
...
...
@@ -836,6 +836,7 @@ extern UINT MSIREG_DeleteUserDataProductKey(LPCWSTR szProduct);
extern
UINT
MSIREG_DeleteUserFeaturesKey
(
LPCWSTR
szProduct
);
extern
UINT
MSIREG_DeleteUserDataComponentKey
(
LPCWSTR
szComponent
,
LPCWSTR
szUserSid
);
extern
UINT
MSIREG_DeleteUserUpgradeCodesKey
(
LPCWSTR
szUpgradeCode
);
extern
UINT
MSIREG_DeleteClassesUpgradeCodesKey
(
LPCWSTR
szUpgradeCode
);
extern
UINT
MSIREG_OpenClassesUpgradeCodesKey
(
LPCWSTR
szUpgradeCode
,
HKEY
*
key
,
BOOL
create
);
extern
UINT
MSIREG_DeleteLocalClassesProductKey
(
LPCWSTR
szProductCode
);
extern
UINT
MSIREG_DeleteLocalClassesFeaturesKey
(
LPCWSTR
szProductCode
);
...
...
dlls/msi/registry.c
View file @
701f1480
...
...
@@ -1182,6 +1182,21 @@ UINT MSIREG_OpenClassesUpgradeCodesKey(LPCWSTR szUpgradeCode, HKEY* key, BOOL cr
return
RegOpenKeyW
(
HKEY_CLASSES_ROOT
,
keypath
,
key
);
}
UINT
MSIREG_DeleteClassesUpgradeCodesKey
(
LPCWSTR
szUpgradeCode
)
{
WCHAR
squished_pc
[
GUID_SIZE
];
WCHAR
keypath
[
0x200
];
TRACE
(
"%s
\n
"
,
debugstr_w
(
szUpgradeCode
));
if
(
!
squash_guid
(
szUpgradeCode
,
squished_pc
))
return
ERROR_FUNCTION_FAILED
;
TRACE
(
"squished (%s)
\n
"
,
debugstr_w
(
squished_pc
));
sprintfW
(
keypath
,
szInstaller_ClassesUpgrade_fmt
,
squished_pc
);
return
RegDeleteTreeW
(
HKEY_CLASSES_ROOT
,
keypath
);
}
/*************************************************************************
* MsiDecomposeDescriptorW [MSI.@]
*
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment