Implement proper properties handling on the commandline in msiexec.

This commit is contained in:
Vincent Béron 2004-07-30 01:34:58 +00:00 committed by Alexandre Julliard
parent 4ce6ee1b31
commit 9cb68a7626
1 changed files with 12 additions and 1 deletions

View File

@ -54,7 +54,6 @@ static const char UsageStr[] =
" msiexec /z module\n"
" Display usage and copyright:\n"
" msiexec {/h|/?}\n"
"NOTE: Properties on commandline unimplemented as of yet\n"
"NOTE: Product code on commandline unimplemented as of yet\n"
"\n"
"Copyright 2004 Vincent Béron\n";
@ -563,6 +562,18 @@ int main(int argc, char *argv[])
{
ShowUsage(0);
}
else if(strchr(argv[i], '='))
{
TempStr = HeapReAlloc(GetProcessHeap(), 0, Properties, HeapSize(GetProcessHeap(), 0, Properties)+strlen(argv[i])+1);
if(!TempStr)
{
WINE_ERR("Out of memory!\n");
ExitProcess(1);
}
Properties = TempStr;
strcat(Properties, argv[i]);
strcat(Properties, " ");
}
else
{
FunctionInstall = TRUE;