Added /regserver and /unregserver options.

This commit is contained in:
Alexandre Julliard 2004-09-20 21:49:42 +00:00
parent 233766aafa
commit 58722d6f9e
1 changed files with 19 additions and 1 deletions

View File

@ -179,6 +179,8 @@ int main(int argc, char *argv[])
BOOL FunctionPatch = FALSE;
BOOL FunctionDllRegisterServer = FALSE;
BOOL FunctionDllUnregisterServer = FALSE;
BOOL FunctionRegServer = FALSE;
BOOL FunctionUnregServer = FALSE;
BOOL GotProductCode = FALSE;
LPCSTR PackageName = NULL;
@ -209,7 +211,15 @@ int main(int argc, char *argv[])
{
WINE_TRACE("argv[%d] = %s\n", i, argv[i]);
if(!strncasecmp(argv[i], "/i", 2))
if (!strcasecmp(argv[i], "/regserver"))
{
FunctionRegServer = TRUE;
}
else if (!strcasecmp(argv[i], "/unregserver") || !strcasecmp(argv[i], "/unregister"))
{
FunctionUnregServer = TRUE;
}
else if(!strncasecmp(argv[i], "/i", 2))
{
char *argvi = argv[i];
FunctionInstall = TRUE;
@ -619,6 +629,14 @@ int main(int argc, char *argv[])
{
DllUnregisterServer(DllName);
}
else if (FunctionRegServer)
{
WINE_FIXME( "/regserver not implemented yet, ignoring\n" );
}
else if (FunctionUnregServer)
{
WINE_FIXME( "/unregserver not implemented yet, ignoring\n" );
}
else
ShowUsage(1);