In the absence of any other option to msiexec, treat the commandline

as a package name to install.
This commit is contained in:
Vincent Béron 2004-07-29 23:56:19 +00:00 committed by Alexandre Julliard
parent 37cc006083
commit fdda7e7d6c
1 changed files with 12 additions and 1 deletions

View File

@ -32,7 +32,7 @@ WINE_DEFAULT_DEBUG_CHANNEL(msiexec);
static const char UsageStr[] =
"Usage:\n"
" Install a product:\n"
" msiexec {package|productcode} [property] (UNIMPLEMENTED)\n"
" msiexec {package|productcode} [property]\n"
" msiexec /i {package|productcode} [property]\n"
" msiexec /a package [property]\n"
" Repair an installation:\n"
@ -563,6 +563,17 @@ int main(int argc, char *argv[])
{
ShowUsage(0);
}
else
{
FunctionInstall = TRUE;
GotProductCode = GetProductCode(argv[i], ProductCode);
if(!GotProductCode)
{
HeapFree(GetProcessHeap(), 0, ProductCode);
ProductCode = NULL;
PackageName = argv[i];
}
}
}
if(Properties[strlen(Properties)-1] == ' ')