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
7f5204e1
Commit
7f5204e1
authored
Oct 22, 2010
by
Hans Leidekker
Committed by
Alexandre Julliard
Oct 22, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msi: Register service dependencies in the InstallServices action.
parent
7a460eba
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
7 deletions
+6
-7
action.c
dlls/msi/action.c
+6
-7
No files found.
dlls/msi/action.c
View file @
7f5204e1
...
...
@@ -5367,8 +5367,9 @@ static UINT ITERATE_InstallService(MSIRECORD *rec, LPVOID param)
MSIRECORD
*
row
;
MSIFILE
*
file
;
SC_HANDLE
hscm
,
service
=
NULL
;
LPCWSTR
comp
,
depends
,
key
;
LPWSTR
name
=
NULL
,
disp
=
NULL
,
load_order
=
NULL
,
serv_name
=
NULL
,
pass
=
NULL
;
LPCWSTR
comp
,
key
;
LPWSTR
name
=
NULL
,
disp
=
NULL
,
load_order
=
NULL
,
serv_name
=
NULL
;
LPWSTR
depends
=
NULL
,
pass
=
NULL
;
DWORD
serv_type
,
start_type
;
DWORD
err_control
;
SERVICE_DESCRIPTIONW
sd
=
{
NULL
};
...
...
@@ -5391,15 +5392,12 @@ static UINT ITERATE_InstallService(MSIRECORD *rec, LPVOID param)
if
(
start_type
==
SERVICE_BOOT_START
||
start_type
==
SERVICE_SYSTEM_START
)
goto
done
;
depends
=
MSI_RecordGetString
(
rec
,
8
);
if
(
depends
&&
*
depends
)
FIXME
(
"Dependency list unhandled!
\n
"
);
deformat_string
(
package
,
MSI_RecordGetString
(
rec
,
2
),
&
name
);
deformat_string
(
package
,
MSI_RecordGetString
(
rec
,
3
),
&
disp
);
serv_type
=
MSI_RecordGetInteger
(
rec
,
4
);
err_control
=
MSI_RecordGetInteger
(
rec
,
6
);
deformat_string
(
package
,
MSI_RecordGetString
(
rec
,
7
),
&
load_order
);
deformat_string
(
package
,
MSI_RecordGetString
(
rec
,
8
),
&
depends
);
deformat_string
(
package
,
MSI_RecordGetString
(
rec
,
9
),
&
serv_name
);
deformat_string
(
package
,
MSI_RecordGetString
(
rec
,
10
),
&
pass
);
comp
=
MSI_RecordGetString
(
rec
,
12
);
...
...
@@ -5424,7 +5422,7 @@ static UINT ITERATE_InstallService(MSIRECORD *rec, LPVOID param)
service
=
CreateServiceW
(
hscm
,
name
,
disp
,
GENERIC_ALL
,
serv_type
,
start_type
,
err_control
,
file
->
TargetPath
,
load_order
,
NULL
,
NULL
,
serv_name
,
pass
);
load_order
,
NULL
,
depends
,
serv_name
,
pass
);
if
(
!
service
)
{
if
(
GetLastError
()
!=
ERROR_SERVICE_EXISTS
)
...
...
@@ -5445,6 +5443,7 @@ done:
msi_free
(
load_order
);
msi_free
(
serv_name
);
msi_free
(
pass
);
msi_free
(
depends
);
return
ERROR_SUCCESS
;
}
...
...
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