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
db6dbcf2
Commit
db6dbcf2
authored
Aug 23, 2011
by
Hans Leidekker
Committed by
Alexandre Julliard
Aug 23, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msi: Initialize the installation context from the registry if the product is installed.
parent
70e37907
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
8 deletions
+10
-8
action.c
dlls/msi/action.c
+9
-8
msi.c
dlls/msi/msi.c
+1
-0
No files found.
dlls/msi/action.c
View file @
db6dbcf2
...
...
@@ -488,14 +488,15 @@ static BOOL needs_ui_sequence(MSIPACKAGE *package)
UINT
msi_set_context
(
MSIPACKAGE
*
package
)
{
int
num
;
package
->
Context
=
MSIINSTALLCONTEXT_USERUNMANAGED
;
num
=
msi_get_property_int
(
package
->
db
,
szAllUsers
,
0
);
if
(
num
==
1
||
num
==
2
)
package
->
Context
=
MSIINSTALLCONTEXT_MACHINE
;
UINT
r
=
msi_locate_product
(
package
->
ProductCode
,
&
package
->
Context
);
if
(
r
!=
ERROR_SUCCESS
)
{
int
num
=
msi_get_property_int
(
package
->
db
,
szAllUsers
,
0
);
if
(
num
==
1
||
num
==
2
)
package
->
Context
=
MSIINSTALLCONTEXT_MACHINE
;
else
package
->
Context
=
MSIINSTALLCONTEXT_USERUNMANAGED
;
}
return
ERROR_SUCCESS
;
}
...
...
dlls/msi/msi.c
View file @
db6dbcf2
...
...
@@ -54,6 +54,7 @@ UINT msi_locate_product(LPCWSTR szProduct, MSIINSTALLCONTEXT *context)
HKEY
hkey
=
NULL
;
*
context
=
MSIINSTALLCONTEXT_NONE
;
if
(
!
szProduct
)
return
ERROR_UNKNOWN_PRODUCT
;
if
(
MSIREG_OpenProductKey
(
szProduct
,
NULL
,
MSIINSTALLCONTEXT_USERMANAGED
,
&
hkey
,
FALSE
)
==
ERROR_SUCCESS
)
...
...
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