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
98c703ab
Commit
98c703ab
authored
Dec 09, 2008
by
James Hawkins
Committed by
Alexandre Julliard
Dec 09, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msi: Add the ability to open multiple users' install properties key.
parent
b198f4f2
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
11 additions
and
15 deletions
+11
-15
action.c
dlls/msi/action.c
+3
-2
msi.c
dlls/msi/msi.c
+4
-4
msipriv.h
dlls/msi/msipriv.h
+2
-1
registry.c
dlls/msi/registry.c
+2
-8
No files found.
dlls/msi/action.c
View file @
98c703ab
...
...
@@ -4170,7 +4170,8 @@ static UINT ACTION_RegisterProduct(MSIPACKAGE *package)
if
(
package
->
Context
==
MSIINSTALLCONTEXT_MACHINE
)
{
rc
=
MSIREG_OpenLocalSystemInstallProps
(
package
->
ProductCode
,
&
props
,
TRUE
);
rc
=
MSIREG_OpenInstallProps
(
package
->
ProductCode
,
szLocalSid
,
&
props
,
TRUE
);
if
(
rc
!=
ERROR_SUCCESS
)
goto
done
;
}
...
...
@@ -4438,7 +4439,7 @@ static UINT ACTION_RegisterUser(MSIPACKAGE *package)
return
ERROR_SUCCESS
;
if
(
package
->
Context
==
MSIINSTALLCONTEXT_MACHINE
)
rc
=
MSIREG_Open
LocalSystemInstallProps
(
package
->
ProductCode
,
&
hkey
,
TRUE
);
rc
=
MSIREG_Open
InstallProps
(
package
->
ProductCode
,
szLocalSid
,
&
hkey
,
TRUE
);
else
rc
=
MSIREG_OpenCurrentUserInstallProps
(
package
->
ProductCode
,
&
hkey
,
TRUE
);
...
...
dlls/msi/msi.c
View file @
98c703ab
...
...
@@ -108,7 +108,7 @@ static UINT MSI_OpenProductW(LPCWSTR szProduct, MSIPACKAGE **package)
return
r
;
if
(
context
==
MSIINSTALLCONTEXT_MACHINE
)
r
=
MSIREG_Open
LocalSystemInstallProps
(
szProduct
,
&
props
,
FALSE
);
r
=
MSIREG_Open
InstallProps
(
szProduct
,
szLocalSid
,
&
props
,
FALSE
);
else
if
(
context
==
MSIINSTALLCONTEXT_USERMANAGED
||
context
==
MSIINSTALLCONTEXT_USERUNMANAGED
)
r
=
MSIREG_OpenCurrentUserInstallProps
(
szProduct
,
&
props
,
FALSE
);
...
...
@@ -407,7 +407,7 @@ static UINT msi_open_package(LPCWSTR product, MSIINSTALLCONTEXT context,
'L'
,
'o'
,
'c'
,
'a'
,
'l'
,
'P'
,
'a'
,
'c'
,
'k'
,
'a'
,
'g'
,
'e'
,
0
};
if
(
context
==
MSIINSTALLCONTEXT_MACHINE
)
r
=
MSIREG_Open
LocalSystemInstallProps
(
product
,
&
props
,
FALSE
);
r
=
MSIREG_Open
InstallProps
(
product
,
szLocalSid
,
&
props
,
FALSE
);
else
r
=
MSIREG_OpenCurrentUserInstallProps
(
product
,
&
props
,
FALSE
);
...
...
@@ -1448,7 +1448,7 @@ INSTALLSTATE WINAPI MsiQueryProductStateW(LPCWSTR szProduct)
}
else
{
r
=
MSIREG_Open
LocalSystemInstallProps
(
szProduct
,
&
userdata
,
FALSE
);
r
=
MSIREG_Open
InstallProps
(
szProduct
,
szLocalSid
,
&
userdata
,
FALSE
);
if
(
r
!=
ERROR_SUCCESS
)
goto
done
;
}
...
...
@@ -2449,7 +2449,7 @@ static USERINFOSTATE MSI_GetUserInfo(LPCWSTR szProduct,
}
if
(
MSIREG_OpenCurrentUserInstallProps
(
szProduct
,
&
props
,
FALSE
)
!=
ERROR_SUCCESS
&&
MSIREG_Open
LocalSystemInstallProps
(
szProduct
,
&
props
,
FALSE
)
!=
ERROR_SUCCESS
)
MSIREG_Open
InstallProps
(
szProduct
,
szLocalSid
,
&
props
,
FALSE
)
!=
ERROR_SUCCESS
)
{
RegCloseKey
(
hkey
);
return
USERINFOSTATE_ABSENT
;
...
...
dlls/msi/msipriv.h
View file @
98c703ab
...
...
@@ -779,7 +779,8 @@ extern UINT MSIREG_OpenPatchesKey(LPCWSTR szPatch, HKEY* key, BOOL create);
extern
UINT
MSIREG_OpenUserDataProductKey
(
LPCWSTR
szProduct
,
LPCWSTR
szUserSid
,
HKEY
*
key
,
BOOL
create
);
extern
UINT
MSIREG_OpenCurrentUserInstallProps
(
LPCWSTR
szProduct
,
HKEY
*
key
,
BOOL
create
);
extern
UINT
MSIREG_OpenLocalSystemInstallProps
(
LPCWSTR
szProduct
,
HKEY
*
key
,
BOOL
create
);
extern
UINT
MSIREG_OpenInstallProps
(
LPCWSTR
szProduct
,
LPCWSTR
szUserSID
,
HKEY
*
key
,
BOOL
create
);
extern
UINT
MSIREG_OpenUpgradeCodesKey
(
LPCWSTR
szProduct
,
HKEY
*
key
,
BOOL
create
);
extern
UINT
MSIREG_OpenUserUpgradeCodesKey
(
LPCWSTR
szProduct
,
HKEY
*
key
,
BOOL
create
);
extern
UINT
MSIREG_DeleteProductKey
(
LPCWSTR
szProduct
);
...
...
dlls/msi/registry.c
View file @
98c703ab
...
...
@@ -890,8 +890,8 @@ UINT MSIREG_OpenUserDataPatchKey(LPWSTR patch, HKEY *key, BOOL create)
return
rc
;
}
static
UINT
MSIREG_OpenInstallProps
(
LPCWSTR
szProduct
,
LPCWSTR
szUserSID
,
HKEY
*
key
,
BOOL
create
)
UINT
MSIREG_OpenInstallProps
(
LPCWSTR
szProduct
,
LPCWSTR
szUserSID
,
HKEY
*
key
,
BOOL
create
)
{
UINT
rc
;
WCHAR
squished_pc
[
GUID_SIZE
];
...
...
@@ -931,12 +931,6 @@ UINT MSIREG_OpenCurrentUserInstallProps(LPCWSTR szProduct, HKEY *key,
return
rc
;
}
UINT
MSIREG_OpenLocalSystemInstallProps
(
LPCWSTR
szProduct
,
HKEY
*
key
,
BOOL
create
)
{
return
MSIREG_OpenInstallProps
(
szProduct
,
szLocalSid
,
key
,
create
);
}
UINT
MSIREG_DeleteUserDataProductKey
(
LPCWSTR
szProduct
)
{
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