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
f6b27673
Commit
f6b27673
authored
Nov 13, 2007
by
James Hawkins
Committed by
Alexandre Julliard
Nov 13, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msi: Delete the uninstall key when the product is removed.
parent
6840049f
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
0 deletions
+12
-0
action.c
dlls/msi/action.c
+1
-0
msipriv.h
dlls/msi/msipriv.h
+1
-0
registry.c
dlls/msi/registry.c
+10
-0
No files found.
dlls/msi/action.c
View file @
f6b27673
...
...
@@ -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
);
...
...
dlls/msi/msipriv.h
View file @
f6b27673
...
...
@@ -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
);
...
...
dlls/msi/registry.c
View file @
f6b27673
...
...
@@ -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
;
...
...
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