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
e4d19fc4
Commit
e4d19fc4
authored
Mar 30, 2011
by
Hans Leidekker
Committed by
Alexandre Julliard
Mar 30, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msi: Explicitly pass product code and platform to MSIREG_OpenUninstallKey and…
msi: Explicitly pass product code and platform to MSIREG_OpenUninstallKey and MSIREG_DeleteUninstallKey.
parent
6ad992c4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
15 additions
and
15 deletions
+15
-15
action.c
dlls/msi/action.c
+2
-2
msipriv.h
dlls/msi/msipriv.h
+2
-2
package.c
dlls/msi/package.c
+1
-1
registry.c
dlls/msi/registry.c
+10
-10
No files found.
dlls/msi/action.c
View file @
e4d19fc4
...
...
@@ -5286,7 +5286,7 @@ static UINT ACTION_RegisterProduct(MSIPACKAGE *package)
if
(
!
msi_check_publish
(
package
))
return
ERROR_SUCCESS
;
rc
=
MSIREG_OpenUninstallKey
(
package
,
&
hkey
,
TRUE
);
rc
=
MSIREG_OpenUninstallKey
(
package
->
ProductCode
,
package
->
platform
,
&
hkey
,
TRUE
);
if
(
rc
!=
ERROR_SUCCESS
)
return
rc
;
...
...
@@ -5366,7 +5366,7 @@ static UINT msi_unpublish_product(MSIPACKAGE *package, WCHAR *remove)
MSIREG_DeleteProductKey
(
package
->
ProductCode
);
MSIREG_DeleteUserDataProductKey
(
package
->
ProductCode
);
MSIREG_DeleteUninstallKey
(
package
);
MSIREG_DeleteUninstallKey
(
package
->
ProductCode
,
package
->
platform
);
MSIREG_DeleteLocalClassesProductKey
(
package
->
ProductCode
);
MSIREG_DeleteLocalClassesFeaturesKey
(
package
->
ProductCode
);
...
...
dlls/msi/msipriv.h
View file @
e4d19fc4
...
...
@@ -829,8 +829,8 @@ extern BOOL unsquash_guid(LPCWSTR in, LPWSTR out);
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
(
MSIPACKAGE
*
package
,
HKEY
*
key
,
BOOL
create
);
extern
UINT
MSIREG_DeleteUninstallKey
(
MSIPACKAGE
*
package
);
extern
UINT
MSIREG_OpenUninstallKey
(
const
WCHAR
*
,
enum
platform
,
HKEY
*
,
BOOL
);
extern
UINT
MSIREG_DeleteUninstallKey
(
const
WCHAR
*
,
enum
platform
);
extern
UINT
MSIREG_OpenProductKey
(
LPCWSTR
szProduct
,
LPCWSTR
szUserSid
,
MSIINSTALLCONTEXT
context
,
HKEY
*
key
,
BOOL
create
);
extern
UINT
MSIREG_OpenFeaturesKey
(
LPCWSTR
szProduct
,
MSIINSTALLCONTEXT
context
,
...
...
dlls/msi/package.c
View file @
e4d19fc4
...
...
@@ -449,7 +449,7 @@ static UINT set_installed_prop( MSIPACKAGE *package )
HKEY
hkey
=
0
;
UINT
r
;
r
=
MSIREG_OpenUninstallKey
(
package
,
&
hkey
,
FALSE
);
r
=
MSIREG_OpenUninstallKey
(
package
->
ProductCode
,
package
->
platform
,
&
hkey
,
FALSE
);
if
(
r
==
ERROR_SUCCESS
)
{
RegCloseKey
(
hkey
);
...
...
dlls/msi/registry.c
View file @
e4d19fc4
...
...
@@ -525,17 +525,17 @@ static WCHAR *get_user_sid(void)
return
ret
;
}
UINT
MSIREG_OpenUninstallKey
(
MSIPACKAGE
*
package
,
HKEY
*
key
,
BOOL
create
)
UINT
MSIREG_OpenUninstallKey
(
const
WCHAR
*
product
,
enum
platform
platform
,
HKEY
*
key
,
BOOL
create
)
{
UINT
rc
;
WCHAR
keypath
[
0x200
];
TRACE
(
"%s
\n
"
,
debugstr_w
(
p
ackage
->
ProductCode
));
TRACE
(
"%s
\n
"
,
debugstr_w
(
p
roduct
));
if
(
is_64bit
&&
p
ackage
->
p
latform
==
PLATFORM_INTEL
)
sprintfW
(
keypath
,
szUninstall_32node_fmt
,
p
ackage
->
ProductCode
);
if
(
is_64bit
&&
platform
==
PLATFORM_INTEL
)
sprintfW
(
keypath
,
szUninstall_32node_fmt
,
p
roduct
);
else
sprintfW
(
keypath
,
szUninstall_fmt
,
p
ackage
->
ProductCode
);
sprintfW
(
keypath
,
szUninstall_fmt
,
p
roduct
);
if
(
create
)
rc
=
RegCreateKeyExW
(
HKEY_LOCAL_MACHINE
,
keypath
,
0
,
NULL
,
0
,
KEY_ALL_ACCESS
,
NULL
,
key
,
NULL
);
...
...
@@ -545,16 +545,16 @@ UINT MSIREG_OpenUninstallKey(MSIPACKAGE *package, HKEY *key, BOOL create)
return
rc
;
}
UINT
MSIREG_DeleteUninstallKey
(
MSIPACKAGE
*
package
)
UINT
MSIREG_DeleteUninstallKey
(
const
WCHAR
*
product
,
enum
platform
platform
)
{
WCHAR
keypath
[
0x200
];
TRACE
(
"%s
\n
"
,
debugstr_w
(
p
ackage
->
ProductCode
));
TRACE
(
"%s
\n
"
,
debugstr_w
(
p
roduct
));
if
(
is_64bit
&&
p
ackage
->
p
latform
==
PLATFORM_INTEL
)
sprintfW
(
keypath
,
szUninstall_32node_fmt
,
p
ackage
->
ProductCode
);
if
(
is_64bit
&&
platform
==
PLATFORM_INTEL
)
sprintfW
(
keypath
,
szUninstall_32node_fmt
,
p
roduct
);
else
sprintfW
(
keypath
,
szUninstall_fmt
,
p
ackage
->
ProductCode
);
sprintfW
(
keypath
,
szUninstall_fmt
,
p
roduct
);
return
RegDeleteTreeW
(
HKEY_LOCAL_MACHINE
,
keypath
);
}
...
...
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