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
de4cab20
Commit
de4cab20
authored
Mar 11, 2008
by
James Hawkins
Committed by
Alexandre Julliard
Mar 12, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msi: Deformat the service name and display name when installing the service.
parent
7f5c9769
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
5 deletions
+10
-5
action.c
dlls/msi/action.c
+6
-3
install.c
dlls/msi/tests/install.c
+4
-2
No files found.
dlls/msi/action.c
View file @
de4cab20
...
...
@@ -4470,7 +4470,8 @@ static UINT ITERATE_InstallService(MSIRECORD *rec, LPVOID param)
MSIRECORD
*
row
;
MSIFILE
*
file
;
SC_HANDLE
hscm
,
service
=
NULL
;
LPCWSTR
name
,
disp
,
comp
,
depends
,
pass
;
LPCWSTR
comp
,
depends
,
pass
;
LPWSTR
name
,
disp
;
LPCWSTR
load_order
,
serv_name
,
key
;
DWORD
serv_type
,
start_type
;
DWORD
err_control
;
...
...
@@ -4497,8 +4498,8 @@ static UINT ITERATE_InstallService(MSIRECORD *rec, LPVOID param)
if
(
depends
&&
*
depends
)
FIXME
(
"Dependency list unhandled!
\n
"
);
name
=
MSI_RecordGetString
(
rec
,
2
);
d
isp
=
MSI_RecordGetString
(
rec
,
3
);
deformat_string
(
package
,
MSI_RecordGetString
(
rec
,
2
),
&
name
);
d
eformat_string
(
package
,
MSI_RecordGetString
(
rec
,
3
),
&
disp
);
serv_type
=
MSI_RecordGetInteger
(
rec
,
4
);
err_control
=
MSI_RecordGetInteger
(
rec
,
6
);
load_order
=
MSI_RecordGetString
(
rec
,
7
);
...
...
@@ -4536,6 +4537,8 @@ static UINT ITERATE_InstallService(MSIRECORD *rec, LPVOID param)
done:
CloseServiceHandle
(
service
);
CloseServiceHandle
(
hscm
);
msi_free
(
name
);
msi_free
(
disp
);
return
ERROR_SUCCESS
;
}
...
...
dlls/msi/tests/install.c
View file @
de4cab20
...
...
@@ -146,7 +146,9 @@ static const CHAR property_dat[] = "Property\tValue\n"
"Setup
\t
Setup
\n
"
"UpgradeCode
\t
{4C0EAA15-0264-4E5A-8758-609EF142B92D}
\n
"
"AdminProperties
\t
POSTADMIN
\n
"
"ROOTDRIVE
\t
C:
\\\n
"
;
"ROOTDRIVE
\t
C:
\\\n
"
"SERVNAME
\t
TestService
\n
"
"SERVDISP
\t
TestServiceDisp
\n
"
;
static
const
CHAR
registry_dat
[]
=
"Registry
\t
Root
\t
Key
\t
Name
\t
Value
\t
Component_
\n
"
"s72
\t
i2
\t
l255
\t
L255
\t
L0
\t
s72
\n
"
...
...
@@ -160,7 +162,7 @@ static const CHAR service_install_dat[] = "ServiceInstall\tName\tDisplayName\tSe
"LoadOrderGroup
\t
Dependencies
\t
StartName
\t
Password
\t
Arguments
\t
Component_
\t
Description
\n
"
"s72
\t
s255
\t
L255
\t
i4
\t
i4
\t
i4
\t
S255
\t
S255
\t
S255
\t
S255
\t
S255
\t
s72
\t
L255
\n
"
"ServiceInstall
\t
ServiceInstall
\n
"
"TestService
\t
TestService
\t
TestService
\t
2
\t
3
\t
0
\t\t\t
TestService
\t\t\t
service_comp
\t\t
"
;
"TestService
\t
[SERVNAME]
\t
[SERVDISP]
\t
2
\t
3
\t
0
\t\t\t
TestService
\t\t\t
service_comp
\t\t
"
;
static
const
CHAR
service_control_dat
[]
=
"ServiceControl
\t
Name
\t
Event
\t
Arguments
\t
Wait
\t
Component_
\n
"
"s72
\t
l255
\t
i2
\t
L255
\t
I2
\t
s72
\n
"
...
...
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