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
d7dbb7e0
Commit
d7dbb7e0
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 the service description in the InstallServices action.
parent
5a0a5382
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
action.c
dlls/msi/action.c
+8
-0
No files found.
dlls/msi/action.c
View file @
d7dbb7e0
...
...
@@ -5372,6 +5372,7 @@ static UINT ITERATE_InstallService(MSIRECORD *rec, LPVOID param)
LPCWSTR
load_order
,
serv_name
,
key
;
DWORD
serv_type
,
start_type
;
DWORD
err_control
;
SERVICE_DESCRIPTIONW
sd
=
{
NULL
};
static
const
WCHAR
query
[]
=
{
'S'
,
'E'
,
'L'
,
'E'
,
'C'
,
'T'
,
' '
,
'*'
,
' '
,
'F'
,
'R'
,
'O'
,
'M'
,
' '
,
...
...
@@ -5403,6 +5404,7 @@ static UINT ITERATE_InstallService(MSIRECORD *rec, LPVOID param)
serv_name
=
MSI_RecordGetString
(
rec
,
9
);
pass
=
MSI_RecordGetString
(
rec
,
10
);
comp
=
MSI_RecordGetString
(
rec
,
12
);
deformat_string
(
package
,
MSI_RecordGetString
(
rec
,
13
),
&
sd
.
lpDescription
);
/* fetch the service path */
row
=
MSI_QueryGetRecord
(
package
->
db
,
query
,
comp
);
...
...
@@ -5430,12 +5432,18 @@ static UINT ITERATE_InstallService(MSIRECORD *rec, LPVOID param)
if
(
GetLastError
()
!=
ERROR_SERVICE_EXISTS
)
ERR
(
"Failed to create service %s: %d
\n
"
,
debugstr_w
(
name
),
GetLastError
());
}
else
if
(
sd
.
lpDescription
)
{
if
(
!
ChangeServiceConfig2W
(
service
,
SERVICE_CONFIG_DESCRIPTION
,
&
sd
))
WARN
(
"failed to set service description %u
\n
"
,
GetLastError
());
}
done:
CloseServiceHandle
(
service
);
CloseServiceHandle
(
hscm
);
msi_free
(
name
);
msi_free
(
disp
);
msi_free
(
sd
.
lpDescription
);
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