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
5f46dfd6
Commit
5f46dfd6
authored
Jun 18, 2008
by
James Hawkins
Committed by
Alexandre Julliard
Jun 18, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msi: Fix the RegisterUser action to handle the package context.
parent
79d0c371
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
26 additions
and
1 deletion
+26
-1
action.c
dlls/msi/action.c
+5
-1
install.c
dlls/msi/tests/install.c
+21
-0
No files found.
dlls/msi/action.c
View file @
5f46dfd6
...
@@ -4348,7 +4348,11 @@ static UINT ACTION_RegisterUser(MSIPACKAGE *package)
...
@@ -4348,7 +4348,11 @@ static UINT ACTION_RegisterUser(MSIPACKAGE *package)
if
(
!
productid
)
if
(
!
productid
)
return
ERROR_SUCCESS
;
return
ERROR_SUCCESS
;
rc
=
MSIREG_OpenCurrentUserInstallProps
(
package
->
ProductCode
,
&
hkey
,
TRUE
);
if
(
package
->
Context
==
MSIINSTALLCONTEXT_MACHINE
)
rc
=
MSIREG_OpenLocalSystemInstallProps
(
package
->
ProductCode
,
&
hkey
,
TRUE
);
else
rc
=
MSIREG_OpenCurrentUserInstallProps
(
package
->
ProductCode
,
&
hkey
,
TRUE
);
if
(
rc
!=
ERROR_SUCCESS
)
if
(
rc
!=
ERROR_SUCCESS
)
goto
end
;
goto
end
;
...
...
dlls/msi/tests/install.c
View file @
5f46dfd6
...
@@ -2719,6 +2719,27 @@ static void test_publish_registeruser(void)
...
@@ -2719,6 +2719,27 @@ static void test_publish_registeruser(void)
RegDeleteKeyA
(
props
,
""
);
RegDeleteKeyA
(
props
,
""
);
RegCloseKey
(
props
);
RegCloseKey
(
props
);
/* RegisterUser, machine */
r
=
MsiInstallProductA
(
msifile
,
"REGISTER_USER=1 ALLUSERS=1"
);
ok
(
r
==
ERROR_SUCCESS
,
"Expected ERROR_SUCCESS, got %d
\n
"
,
r
);
ok
(
delete_pf
(
"msitest
\\
maximus"
,
TRUE
),
"File not installed
\n
"
);
ok
(
delete_pf
(
"msitest"
,
FALSE
),
"File not installed
\n
"
);
sprintf
(
keypath
,
keyfmt
,
"S-1-5-18"
);
res
=
RegOpenKeyA
(
HKEY_LOCAL_MACHINE
,
keypath
,
&
props
);
ok
(
res
==
ERROR_SUCCESS
,
"Expected ERROR_SUCCESS, got %d
\n
"
,
res
);
CHECK_REG_STR
(
props
,
"ProductID"
,
"none"
);
CHECK_REG_STR
(
props
,
"RegCompany"
,
company
);
CHECK_REG_STR
(
props
,
"RegOwner"
,
owner
);
RegDeleteValueA
(
props
,
"ProductID"
);
RegDeleteValueA
(
props
,
"RegCompany"
);
RegDeleteValueA
(
props
,
"RegOwner"
);
RegDeleteKeyA
(
props
,
""
);
RegCloseKey
(
props
);
HeapFree
(
GetProcessHeap
(),
0
,
company
);
HeapFree
(
GetProcessHeap
(),
0
,
company
);
HeapFree
(
GetProcessHeap
(),
0
,
owner
);
HeapFree
(
GetProcessHeap
(),
0
,
owner
);
...
...
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