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
0d0074d5
Commit
0d0074d5
authored
May 02, 2011
by
Hans Leidekker
Committed by
Alexandre Julliard
May 02, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msi: Skip disabled components in the InstallService action.
parent
c96cd6ef
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
14 deletions
+19
-14
action.c
dlls/msi/action.c
+19
-14
No files found.
dlls/msi/action.c
View file @
0d0074d5
...
...
@@ -5945,23 +5945,33 @@ static UINT ACTION_UnpublishComponents( MSIPACKAGE *package )
static
UINT
ITERATE_InstallService
(
MSIRECORD
*
rec
,
LPVOID
param
)
{
static
const
WCHAR
query
[]
=
{
'S'
,
'E'
,
'L'
,
'E'
,
'C'
,
'T'
,
' '
,
'*'
,
' '
,
'F'
,
'R'
,
'O'
,
'M'
,
' '
,
'`'
,
'C'
,
'o'
,
'm'
,
'p'
,
'o'
,
'n'
,
'e'
,
'n'
,
't'
,
'`'
,
' '
,
'W'
,
'H'
,
'E'
,
'R'
,
'E'
,
' '
,
'`'
,
'C'
,
'o'
,
'm'
,
'p'
,
'o'
,
'n'
,
'e'
,
'n'
,
't'
,
'`'
,
' '
,
'='
,
'\''
,
'%'
,
's'
,
'\''
,
0
};
MSIPACKAGE
*
package
=
param
;
MSICOMPONENT
*
component
;
MSIRECORD
*
row
;
MSIFILE
*
file
;
SC_HANDLE
hscm
,
service
=
NULL
;
SC_HANDLE
hscm
=
NULL
,
service
=
NULL
;
LPCWSTR
comp
,
key
;
LPWSTR
name
=
NULL
,
disp
=
NULL
,
load_order
=
NULL
,
serv_name
=
NULL
;
LPWSTR
depends
=
NULL
,
pass
=
NULL
,
args
=
NULL
,
image_path
=
NULL
;
DWORD
serv_type
,
start_type
,
err_control
;
SERVICE_DESCRIPTIONW
sd
=
{
NULL
};
static
const
WCHAR
query
[]
=
{
'S'
,
'E'
,
'L'
,
'E'
,
'C'
,
'T'
,
' '
,
'*'
,
' '
,
'F'
,
'R'
,
'O'
,
'M'
,
' '
,
'`'
,
'C'
,
'o'
,
'm'
,
'p'
,
'o'
,
'n'
,
'e'
,
'n'
,
't'
,
'`'
,
' '
,
'W'
,
'H'
,
'E'
,
'R'
,
'E'
,
' '
,
'`'
,
'C'
,
'o'
,
'm'
,
'p'
,
'o'
,
'n'
,
'e'
,
'n'
,
't'
,
'`'
,
' '
,
'='
,
'\''
,
'%'
,
's'
,
'\''
,
0
};
comp
=
MSI_RecordGetString
(
rec
,
12
);
component
=
get_loaded_component
(
package
,
comp
);
if
(
!
component
)
{
WARN
(
"service component not found
\n
"
);
goto
done
;
}
if
(
!
component
->
Enabled
)
{
TRACE
(
"service component disabled
\n
"
);
goto
done
;
}
hscm
=
OpenSCManagerW
(
NULL
,
SERVICES_ACTIVE_DATABASEW
,
GENERIC_WRITE
);
if
(
!
hscm
)
{
...
...
@@ -5969,10 +5979,6 @@ static UINT ITERATE_InstallService(MSIRECORD *rec, LPVOID param)
goto
done
;
}
comp
=
MSI_RecordGetString
(
rec
,
12
);
if
(
!
get_loaded_component
(
package
,
comp
))
goto
done
;
start_type
=
MSI_RecordGetInteger
(
rec
,
5
);
if
(
start_type
==
SERVICE_BOOT_START
||
start_type
==
SERVICE_SYSTEM_START
)
goto
done
;
...
...
@@ -5992,11 +5998,10 @@ static UINT ITERATE_InstallService(MSIRECORD *rec, LPVOID param)
row
=
MSI_QueryGetRecord
(
package
->
db
,
query
,
comp
);
if
(
!
row
)
{
ERR
(
"
Control query failed!
\n
"
);
ERR
(
"
Query failed
\n
"
);
goto
done
;
}
key
=
MSI_RecordGetString
(
row
,
6
);
file
=
get_loaded_file
(
package
,
key
);
msiobj_release
(
&
row
->
hdr
);
if
(
!
file
)
...
...
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