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
27867e25
Commit
27867e25
authored
Jul 12, 2005
by
Aric Stewart
Committed by
Alexandre Julliard
Jul 12, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use the SourceList functions to get the source path in
ConfigureProductExW.
parent
2d8cb295
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
18 deletions
+10
-18
msi.c
dlls/msi/msi.c
+10
-18
No files found.
dlls/msi/msi.c
View file @
27867e25
...
...
@@ -271,13 +271,9 @@ UINT WINAPI MsiConfigureProductExW(LPCWSTR szProduct, int iInstallLevel,
MSIHANDLE
handle
=
-
1
;
MSIPACKAGE
*
package
;
UINT
rc
;
HKEY
hkey
=
0
,
hkey1
=
0
;
DWORD
sz
;
static
const
WCHAR
szSouceList
[]
=
{
'S'
,
'o'
,
'u'
,
'r'
,
'c'
,
'e'
,
'L'
,
'i'
,
's'
,
't'
,
0
};
static
const
WCHAR
szLUS
[]
=
{
'L'
,
'a'
,
's'
,
't'
,
'U'
,
's'
,
'e'
,
'd'
,
'S'
,
'o'
,
'u'
,
'r'
,
'c'
,
'e'
,
0
};
WCHAR
sourcepath
[
0x200
];
WCHAR
sourcepath
[
MAX_PATH
];
WCHAR
filename
[
MAX_PATH
];
static
const
WCHAR
szInstalled
[]
=
{
' '
,
'I'
,
'n'
,
's'
,
't'
,
'a'
,
'l'
,
'l'
,
'e'
,
'd'
,
'='
,
'1'
,
0
};
LPWSTR
commandline
;
...
...
@@ -292,20 +288,17 @@ UINT WINAPI MsiConfigureProductExW(LPCWSTR szProduct, int iInstallLevel,
return
ERROR_CALL_NOT_IMPLEMENTED
;
}
rc
=
MSIREG_OpenUserProductsKey
(
szProduct
,
&
hkey
,
FALSE
);
if
(
rc
!=
ERROR_SUCCESS
)
goto
end
;
sz
=
sizeof
(
sourcepath
);
MsiSourceListGetInfoW
(
szProduct
,
NULL
,
MSIINSTALLCONTEXT_USERMANAGED
,
MSICODE_PRODUCT
,
INSTALLPROPERTY_LASTUSEDSOURCEstringW
,
sourcepath
,
&
sz
);
rc
=
RegOpenKeyW
(
hkey
,
szSouceList
,
&
hkey1
);
if
(
rc
!=
ERROR_SUCCESS
)
goto
end
;
sz
=
sizeof
(
filename
);
MsiSourceListGetInfoW
(
szProduct
,
NULL
,
MSIINSTALLCONTEXT_USERMANAGED
,
MSICODE_PRODUCT
,
INSTALLPROPERTY_PACKAGENAMEstringW
,
filename
,
&
sz
)
;
sz
=
sizeof
(
sourcepath
);
rc
=
RegQueryValueExW
(
hkey1
,
szLUS
,
NULL
,
NULL
,(
LPBYTE
)
sourcepath
,
&
sz
);
if
(
rc
!=
ERROR_SUCCESS
)
goto
end
;
strcatW
(
sourcepath
,
filename
);
RegCloseKey
(
hkey1
);
/*
* ok 1, we need to find the msi file for this product.
* 2, find the source dir for the files
...
...
@@ -345,7 +338,6 @@ UINT WINAPI MsiConfigureProductExW(LPCWSTR szProduct, int iInstallLevel,
HeapFree
(
GetProcessHeap
(),
0
,
commandline
);
end:
RegCloseKey
(
hkey
);
if
(
handle
!=
-
1
)
MsiCloseHandle
(
handle
);
...
...
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