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
6cd2ffae
Commit
6cd2ffae
authored
Feb 12, 2013
by
Hans Leidekker
Committed by
Alexandre Julliard
Feb 12, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msiexec: Add /unregserver support.
parent
550e53b6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
30 additions
and
1 deletion
+30
-1
msiexec.c
programs/msiexec/msiexec.c
+30
-1
No files found.
programs/msiexec/msiexec.c
View file @
6cd2ffae
...
...
@@ -373,6 +373,35 @@ static DWORD DoRegServer(void)
return
ret
;
}
static
DWORD
DoUnregServer
(
void
)
{
static
const
WCHAR
msiserverW
[]
=
{
'M'
,
'S'
,
'I'
,
'S'
,
'e'
,
'r'
,
'v'
,
'e'
,
'r'
,
0
};
SC_HANDLE
scm
,
service
;
DWORD
ret
=
0
;
if
(
!
(
scm
=
OpenSCManagerW
(
NULL
,
SERVICES_ACTIVE_DATABASEW
,
SC_MANAGER_CONNECT
)))
{
fprintf
(
stderr
,
"Failed to open service control manager
\n
"
);
return
1
;
}
if
((
service
=
OpenServiceW
(
scm
,
msiserverW
,
DELETE
)))
{
if
(
!
DeleteService
(
service
))
{
fprintf
(
stderr
,
"Failed to delete MSI service
\n
"
);
ret
=
1
;
}
CloseServiceHandle
(
service
);
}
else
if
(
GetLastError
()
!=
ERROR_SERVICE_DOES_NOT_EXIST
)
{
fprintf
(
stderr
,
"Failed to open MSI service
\n
"
);
ret
=
1
;
}
CloseServiceHandle
(
scm
);
return
ret
;
}
static
INT
DoEmbedding
(
LPWSTR
key
)
{
printf
(
"Remote custom actions are not supported yet
\n
"
);
...
...
@@ -982,7 +1011,7 @@ int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine
}
else
if
(
FunctionUnregServer
)
{
WINE_FIXME
(
"/unregserver not implemented yet, ignoring
\n
"
);
ReturnCode
=
DoUnregServer
(
);
}
else
if
(
FunctionServer
)
{
...
...
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