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
85809843
Commit
85809843
authored
Sep 13, 2006
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msiexec: Ignore failure to create the service if it already exists.
parent
19cb5a4f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
msiexec.c
programs/msiexec/msiexec.c
+7
-7
No files found.
programs/msiexec/msiexec.c
View file @
85809843
...
@@ -333,6 +333,7 @@ static DWORD DoRegServer(void)
...
@@ -333,6 +333,7 @@ static DWORD DoRegServer(void)
{
{
SC_HANDLE
scm
,
service
;
SC_HANDLE
scm
,
service
;
CHAR
path
[
MAX_PATH
+
12
];
CHAR
path
[
MAX_PATH
+
12
];
DWORD
ret
=
0
;
scm
=
OpenSCManager
(
NULL
,
SERVICES_ACTIVE_DATABASE
,
SC_MANAGER_CREATE_SERVICE
);
scm
=
OpenSCManager
(
NULL
,
SERVICES_ACTIVE_DATABASE
,
SC_MANAGER_CREATE_SERVICE
);
if
(
!
scm
)
if
(
!
scm
)
...
@@ -348,16 +349,15 @@ static DWORD DoRegServer(void)
...
@@ -348,16 +349,15 @@ static DWORD DoRegServer(void)
SERVICE_WIN32_SHARE_PROCESS
,
SERVICE_DEMAND_START
,
SERVICE_WIN32_SHARE_PROCESS
,
SERVICE_DEMAND_START
,
SERVICE_ERROR_NORMAL
,
path
,
NULL
,
NULL
,
SERVICE_ERROR_NORMAL
,
path
,
NULL
,
NULL
,
NULL
,
NULL
,
NULL
);
NULL
,
NULL
,
NULL
);
if
(
!
service
)
if
(
service
)
CloseServiceHandle
(
service
);
else
if
(
GetLastError
()
!=
ERROR_SERVICE_EXISTS
)
{
{
fprintf
(
stderr
,
"Failed to create MSI service
\n
"
);
fprintf
(
stderr
,
"Failed to create MSI service
\n
"
);
CloseServiceHandle
(
scm
);
ret
=
1
;
return
1
;
}
}
CloseServiceHandle
(
scm
);
CloseServiceHandle
(
scm
);
return
ret
;
CloseServiceHandle
(
service
);
return
0
;
}
}
static
BOOL
process_args_from_reg
(
LPWSTR
ident
,
int
*
pargc
,
WCHAR
***
pargv
)
static
BOOL
process_args_from_reg
(
LPWSTR
ident
,
int
*
pargc
,
WCHAR
***
pargv
)
...
...
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