Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
d693f461
Commit
d693f461
authored
Oct 29, 2005
by
Mike McCormack
Committed by
Alexandre Julliard
Oct 29, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove the unused 1st parameter of ACTION_VerifyComponentForAction.
parent
96e24c1d
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
17 additions
and
21 deletions
+17
-21
action.c
dlls/msi/action.c
+11
-14
action.h
dlls/msi/action.h
+1
-1
files.c
dlls/msi/files.c
+4
-4
helpers.c
dlls/msi/helpers.c
+1
-2
No files found.
dlls/msi/action.c
View file @
d693f461
...
...
@@ -1081,7 +1081,7 @@ UINT msi_create_component_directories( MSIPACKAGE *package )
/* create all the folders required by the components are going to install */
LIST_FOR_EACH_ENTRY
(
comp
,
&
package
->
components
,
MSICOMPONENT
,
entry
)
{
if
(
!
ACTION_VerifyComponentForAction
(
package
,
comp
,
INSTALLSTATE_LOCAL
))
if
(
!
ACTION_VerifyComponentForAction
(
comp
,
INSTALLSTATE_LOCAL
))
continue
;
msi_create_directory
(
package
,
comp
->
Directory
);
}
...
...
@@ -2101,7 +2101,7 @@ static UINT ITERATE_WriteRegistryValues(MSIRECORD *row, LPVOID param)
if
(
!
comp
)
return
ERROR_SUCCESS
;
if
(
!
ACTION_VerifyComponentForAction
(
package
,
comp
,
INSTALLSTATE_LOCAL
))
if
(
!
ACTION_VerifyComponentForAction
(
comp
,
INSTALLSTATE_LOCAL
))
{
TRACE
(
"Skipping write due to disabled component %s
\n
"
,
debugstr_w
(
component
));
...
...
@@ -2593,8 +2593,7 @@ static UINT ACTION_ProcessComponents(MSIPACKAGE *package)
* Write the keypath out if the component is to be registered
* and delete the key if the component is to be deregistered
*/
if
(
ACTION_VerifyComponentForAction
(
package
,
comp
,
INSTALLSTATE_LOCAL
))
if
(
ACTION_VerifyComponentForAction
(
comp
,
INSTALLSTATE_LOCAL
))
{
rc
=
RegCreateKeyW
(
hkey
,
squished_cc
,
&
hkey2
);
if
(
rc
!=
ERROR_SUCCESS
)
...
...
@@ -2625,8 +2624,7 @@ static UINT ACTION_ProcessComponents(MSIPACKAGE *package)
msiobj_release
(
&
uirow
->
hdr
);
}
}
else
if
(
ACTION_VerifyComponentForAction
(
package
,
comp
,
INSTALLSTATE_ABSENT
))
else
if
(
ACTION_VerifyComponentForAction
(
comp
,
INSTALLSTATE_ABSENT
))
{
DWORD
res
;
...
...
@@ -2731,7 +2729,7 @@ static UINT ITERATE_RegisterTypeLibraries(MSIRECORD *row, LPVOID param)
if
(
!
comp
)
return
ERROR_SUCCESS
;
if
(
!
ACTION_VerifyComponentForAction
(
package
,
comp
,
INSTALLSTATE_LOCAL
))
if
(
!
ACTION_VerifyComponentForAction
(
comp
,
INSTALLSTATE_LOCAL
))
{
TRACE
(
"Skipping typelib reg due to disabled component
\n
"
);
...
...
@@ -2841,7 +2839,7 @@ static UINT ITERATE_CreateShortcuts(MSIRECORD *row, LPVOID param)
if
(
!
comp
)
return
ERROR_SUCCESS
;
if
(
!
ACTION_VerifyComponentForAction
(
package
,
comp
,
INSTALLSTATE_LOCAL
))
if
(
!
ACTION_VerifyComponentForAction
(
comp
,
INSTALLSTATE_LOCAL
))
{
TRACE
(
"Skipping shortcut creation due to disabled component
\n
"
);
...
...
@@ -3166,7 +3164,7 @@ static UINT ITERATE_WriteIniValues(MSIRECORD *row, LPVOID param)
component
=
MSI_RecordGetString
(
row
,
8
);
comp
=
get_loaded_component
(
package
,
component
);
if
(
!
ACTION_VerifyComponentForAction
(
package
,
comp
,
INSTALLSTATE_LOCAL
))
if
(
!
ACTION_VerifyComponentForAction
(
comp
,
INSTALLSTATE_LOCAL
))
{
TRACE
(
"Skipping ini file due to disabled component %s
\n
"
,
debugstr_w
(
component
));
...
...
@@ -3982,8 +3980,7 @@ static UINT ITERATE_RegisterFonts(MSIRECORD *row, LPVOID param)
}
/* check to make sure that component is installed */
if
(
!
ACTION_VerifyComponentForAction
(
package
,
file
->
Component
,
INSTALLSTATE_LOCAL
))
if
(
!
ACTION_VerifyComponentForAction
(
file
->
Component
,
INSTALLSTATE_LOCAL
))
{
TRACE
(
"Skipping: Component not scheduled for install
\n
"
);
return
ERROR_SUCCESS
;
...
...
@@ -4048,9 +4045,9 @@ static UINT ITERATE_PublishComponent(MSIRECORD *rec, LPVOID param)
component
=
MSI_RecordGetString
(
rec
,
3
);
comp
=
get_loaded_component
(
package
,
component
);
if
(
!
ACTION_VerifyComponentForAction
(
package
,
comp
,
INSTALLSTATE_LOCAL
)
&&
!
ACTION_VerifyComponentForAction
(
package
,
comp
,
INSTALLSTATE_SOURCE
)
&&
!
ACTION_VerifyComponentForAction
(
package
,
comp
,
INSTALLSTATE_ADVERTISED
))
if
(
!
ACTION_VerifyComponentForAction
(
comp
,
INSTALLSTATE_LOCAL
)
&&
!
ACTION_VerifyComponentForAction
(
comp
,
INSTALLSTATE_SOURCE
)
&&
!
ACTION_VerifyComponentForAction
(
comp
,
INSTALLSTATE_ADVERTISED
))
{
TRACE
(
"Skipping: Component %s not scheduled for install
\n
"
,
debugstr_w
(
component
));
...
...
dlls/msi/action.h
View file @
d693f461
...
...
@@ -264,7 +264,7 @@ extern LPWSTR build_icon_path(MSIPACKAGE *, LPCWSTR);
extern
DWORD
build_version_dword
(
LPCWSTR
);
extern
LPWSTR
build_directory_name
(
DWORD
,
...);
extern
BOOL
create_full_pathW
(
const
WCHAR
*
path
);
extern
BOOL
ACTION_VerifyComponentForAction
(
MSI
PACKAGE
*
,
MSI
COMPONENT
*
,
INSTALLSTATE
);
extern
BOOL
ACTION_VerifyComponentForAction
(
MSICOMPONENT
*
,
INSTALLSTATE
);
extern
BOOL
ACTION_VerifyFeatureForAction
(
MSIFEATURE
*
,
INSTALLSTATE
);
extern
void
reduce_to_longfilename
(
WCHAR
*
);
extern
void
reduce_to_shortfilename
(
WCHAR
*
);
...
...
dlls/msi/files.c
View file @
d693f461
...
...
@@ -663,8 +663,7 @@ UINT ACTION_InstallFiles(MSIPACKAGE *package)
/* Pass 1 */
LIST_FOR_EACH_ENTRY
(
file
,
&
package
->
files
,
MSIFILE
,
entry
)
{
if
(
!
ACTION_VerifyComponentForAction
(
package
,
file
->
Component
,
INSTALLSTATE_LOCAL
))
if
(
!
ACTION_VerifyComponentForAction
(
file
->
Component
,
INSTALLSTATE_LOCAL
))
{
ui_progress
(
package
,
2
,
file
->
FileSize
,
0
,
0
);
TRACE
(
"File %s is not scheduled for install
\n
"
,
...
...
@@ -762,7 +761,7 @@ static UINT ITERATE_DuplicateFiles(MSIRECORD *row, LPVOID param)
component
=
MSI_RecordGetString
(
row
,
2
);
comp
=
get_loaded_component
(
package
,
component
);
if
(
!
ACTION_VerifyComponentForAction
(
package
,
comp
,
INSTALLSTATE_LOCAL
))
if
(
!
ACTION_VerifyComponentForAction
(
comp
,
INSTALLSTATE_LOCAL
))
{
TRACE
(
"Skipping copy due to disabled component %s
\n
"
,
debugstr_w
(
component
));
...
...
@@ -837,7 +836,8 @@ static UINT ITERATE_DuplicateFiles(MSIRECORD *row, LPVOID param)
rc
=
ERROR_SUCCESS
;
if
(
rc
!=
ERROR_SUCCESS
)
ERR
(
"Failed to copy file %s -> %s, last error %ld
\n
"
,
debugstr_w
(
file_source
),
debugstr_w
(
dest_path
),
GetLastError
());
ERR
(
"Failed to copy file %s -> %s, last error %ld
\n
"
,
debugstr_w
(
file_source
),
debugstr_w
(
dest_path
),
GetLastError
());
FIXME
(
"We should track these duplicate files as well
\n
"
);
...
...
dlls/msi/helpers.c
View file @
d693f461
...
...
@@ -746,8 +746,7 @@ void ui_actiondata(MSIPACKAGE *package, LPCWSTR action, MSIRECORD * record)
msiobj_release
(
&
row
->
hdr
);
}
BOOL
ACTION_VerifyComponentForAction
(
MSIPACKAGE
*
package
,
MSICOMPONENT
*
comp
,
INSTALLSTATE
check
)
BOOL
ACTION_VerifyComponentForAction
(
MSICOMPONENT
*
comp
,
INSTALLSTATE
check
)
{
if
(
!
comp
)
return
FALSE
;
...
...
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