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
00477d60
Commit
00477d60
authored
Dec 13, 2011
by
Hans Leidekker
Committed by
Alexandre Julliard
Dec 13, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msi: Support all install contexts in MsiReinstallFeatureW.
parent
973e86b8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
12 deletions
+14
-12
msi.c
dlls/msi/msi.c
+14
-12
No files found.
dlls/msi/msi.c
View file @
00477d60
...
...
@@ -3773,18 +3773,20 @@ UINT WINAPI MsiGetShortcutTargetW( LPCWSTR szShortcutTarget,
UINT
WINAPI
MsiReinstallFeatureW
(
LPCWSTR
szProduct
,
LPCWSTR
szFeature
,
DWORD
dwReinstallMode
)
{
MSIPACKAGE
*
package
=
NULL
;
static
const
WCHAR
szLogVerbose
[]
=
{
' '
,
'L'
,
'O'
,
'G'
,
'V'
,
'E'
,
'R'
,
'B'
,
'O'
,
'S'
,
'E'
,
0
};
MSIPACKAGE
*
package
;
MSIINSTALLCONTEXT
context
;
UINT
r
;
WCHAR
sourcepath
[
MAX_PATH
];
WCHAR
filename
[
MAX_PATH
];
static
const
WCHAR
szLogVerbose
[]
=
{
' '
,
'L'
,
'O'
,
'G'
,
'V'
,
'E'
,
'R'
,
'B'
,
'O'
,
'S'
,
'E'
,
0
};
WCHAR
reinstallmode
[
11
];
WCHAR
sourcepath
[
MAX_PATH
],
filename
[
MAX_PATH
],
reinstallmode
[
11
];
LPWSTR
ptr
;
DWORD
sz
;
FIXME
(
"%s %s 0x%08x
\n
"
,
debugstr_w
(
szProduct
),
debugstr_w
(
szFeature
),
dwReinstallMode
);
TRACE
(
"%s, %s, 0x%08x
\n
"
,
debugstr_w
(
szProduct
),
debugstr_w
(
szFeature
),
dwReinstallMode
);
r
=
msi_locate_product
(
szProduct
,
&
context
);
if
(
r
!=
ERROR_SUCCESS
)
return
r
;
ptr
=
reinstallmode
;
...
...
@@ -3811,12 +3813,12 @@ UINT WINAPI MsiReinstallFeatureW( LPCWSTR szProduct, LPCWSTR szFeature,
*
ptr
=
0
;
sz
=
sizeof
(
sourcepath
);
MsiSourceListGetInfoW
(
szProduct
,
NULL
,
MSIINSTALLCONTEXT_USERUNMANAGED
,
MSICODE_PRODUCT
,
INSTALLPROPERTY_LASTUSEDSOURCEW
,
sourcepath
,
&
sz
);
MsiSourceListGetInfoW
(
szProduct
,
NULL
,
context
,
MSICODE_PRODUCT
,
INSTALLPROPERTY_LASTUSEDSOURCEW
,
sourcepath
,
&
sz
);
sz
=
sizeof
(
filename
);
MsiSourceListGetInfoW
(
szProduct
,
NULL
,
MSIINSTALLCONTEXT_USERUNMANAGED
,
MSICODE_PRODUCT
,
INSTALLPROPERTY_PACKAGENAMEW
,
filename
,
&
sz
);
MsiSourceListGetInfoW
(
szProduct
,
NULL
,
context
,
MSICODE_PRODUCT
,
INSTALLPROPERTY_PACKAGENAMEW
,
filename
,
&
sz
);
lstrcatW
(
sourcepath
,
filename
);
...
...
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