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
05d00f06
Commit
05d00f06
authored
Nov 05, 2003
by
Mike McCormack
Committed by
Alexandre Julliard
Nov 05, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Implement MsiOpenProductW.
parent
03d9f0e4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
51 additions
and
2 deletions
+51
-2
msi.c
dlls/msi/msi.c
+51
-2
No files found.
dlls/msi/msi.c
View file @
05d00f06
...
...
@@ -245,8 +245,57 @@ UINT WINAPI MsiOpenProductA(LPCSTR szProduct, MSIHANDLE *phProduct)
UINT
WINAPI
MsiOpenProductW
(
LPCWSTR
szProduct
,
MSIHANDLE
*
phProduct
)
{
FIXME
(
"%s %p
\n
"
,
debugstr_w
(
szProduct
),
phProduct
);
return
ERROR_CALL_NOT_IMPLEMENTED
;
const
WCHAR
szKey
[]
=
{
'S'
,
'o'
,
'f'
,
't'
,
'w'
,
'a'
,
'r'
,
'e'
,
'\\'
,
'M'
,
'i'
,
'c'
,
'r'
,
'o'
,
's'
,
'o'
,
'f'
,
't'
,
'\\'
,
'W'
,
'i'
,
'n'
,
'd'
,
'o'
,
'w'
,
's'
,
'\\'
,
'C'
,
'u'
,
'r'
,
'r'
,
'e'
,
'n'
,
't'
,
'V'
,
'e'
,
'r'
,
's'
,
'i'
,
'o'
,
'n'
,
'\\'
,
'U'
,
'n'
,
'i'
,
'n'
,
's'
,
't'
,
'a'
,
'l'
,
'l'
,
0
};
const
WCHAR
szLocalPackage
[]
=
{
'L'
,
'o'
,
'c'
,
'a'
,
'l'
,
'P'
,
'a'
,
'c'
,
'k'
,
'a'
,
'g'
,
'e'
,
0
};
LPWSTR
path
=
NULL
;
UINT
r
;
HKEY
hKeyProduct
=
NULL
,
hKeyUninstall
=
NULL
;
DWORD
count
,
type
;
TRACE
(
"%s %p
\n
"
,
debugstr_w
(
szProduct
),
phProduct
);
r
=
RegOpenKeyW
(
HKEY_LOCAL_MACHINE
,
szKey
,
&
hKeyUninstall
);
if
(
r
!=
ERROR_SUCCESS
)
return
r
;
r
=
RegOpenKeyW
(
hKeyUninstall
,
szProduct
,
&
hKeyProduct
);
if
(
r
!=
ERROR_SUCCESS
)
goto
end
;
/* find the size of the path */
type
=
count
=
0
;
r
=
RegQueryValueExW
(
hKeyProduct
,
szLocalPackage
,
NULL
,
&
type
,
NULL
,
&
count
);
if
(
r
!=
ERROR_SUCCESS
)
goto
end
;
/* now alloc and fetch the path of the database to open */
path
=
HeapAlloc
(
GetProcessHeap
(),
0
,
count
);
if
(
!
path
)
goto
end
;
r
=
RegQueryValueExW
(
hKeyProduct
,
szLocalPackage
,
NULL
,
&
type
,
(
LPBYTE
)
path
,
&
count
);
if
(
r
!=
ERROR_SUCCESS
)
goto
end
;
r
=
MsiOpenPackageW
(
path
,
phProduct
);
end:
if
(
path
)
HeapFree
(
GetProcessHeap
(),
0
,
path
);
if
(
hKeyProduct
)
RegCloseKey
(
hKeyProduct
);
RegCloseKey
(
hKeyUninstall
);
return
r
;
}
UINT
WINAPI
MsiOpenPackageA
(
LPCSTR
szPackage
,
MSIHANDLE
*
phPackage
)
...
...
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