Commit 07888bca authored by Vincent Béron's avatar Vincent Béron Committed by Alexandre Julliard

Dump (via TRACEs) all the arguments of msiexec.

parent 6dc4e2af
...@@ -155,6 +155,7 @@ int main(int argc, char *argv[]) ...@@ -155,6 +155,7 @@ int main(int argc, char *argv[])
i++; i++;
if(i >= argc) if(i >= argc)
ShowUsage(1); ShowUsage(1);
WINE_TRACE("argv[%d] = %s\n", i, argv[i]);
GotProductCode = GetProductCode(argv[i], ProductCode); GotProductCode = GetProductCode(argv[i], ProductCode);
if(!GotProductCode) if(!GotProductCode)
{ {
...@@ -169,6 +170,7 @@ int main(int argc, char *argv[]) ...@@ -169,6 +170,7 @@ int main(int argc, char *argv[])
i++; i++;
if(i >= argc) if(i >= argc)
ShowUsage(1); ShowUsage(1);
WINE_TRACE("argv[%d] = %s\n", i, argv[i]);
PackageName = argv[i]; PackageName = argv[i];
TempStr = HeapReAlloc(GetProcessHeap(), 0, Properties, HeapSize(GetProcessHeap(), 0, Properties)+strlen(ActionAdmin)); TempStr = HeapReAlloc(GetProcessHeap(), 0, Properties, HeapSize(GetProcessHeap(), 0, Properties)+strlen(ActionAdmin));
if(!TempStr) if(!TempStr)
...@@ -236,6 +238,7 @@ int main(int argc, char *argv[]) ...@@ -236,6 +238,7 @@ int main(int argc, char *argv[])
i++; i++;
if(i >= argc) if(i >= argc)
ShowUsage(1); ShowUsage(1);
WINE_TRACE("argv[%d] = %s\n", i, argv[i]);
GotProductCode = GetProductCode(argv[i], ProductCode); GotProductCode = GetProductCode(argv[i], ProductCode);
if(!GotProductCode) if(!GotProductCode)
{ {
...@@ -250,6 +253,7 @@ int main(int argc, char *argv[]) ...@@ -250,6 +253,7 @@ int main(int argc, char *argv[])
i++; i++;
if(i >= argc) if(i >= argc)
ShowUsage(1); ShowUsage(1);
WINE_TRACE("argv[%d] = %s\n", i, argv[i]);
GotProductCode = GetProductCode(argv[i], ProductCode); GotProductCode = GetProductCode(argv[i], ProductCode);
if(!GotProductCode) if(!GotProductCode)
{ {
...@@ -291,6 +295,7 @@ int main(int argc, char *argv[]) ...@@ -291,6 +295,7 @@ int main(int argc, char *argv[])
i++; i++;
if(i >= argc) if(i >= argc)
ShowUsage(1); ShowUsage(1);
WINE_TRACE("argv[%d] = %s\n", i, argv[i]);
PackageName = argv[i]; PackageName = argv[i];
} }
else if(!strcasecmp(argv[i], "u")) else if(!strcasecmp(argv[i], "u"))
...@@ -300,6 +305,7 @@ int main(int argc, char *argv[]) ...@@ -300,6 +305,7 @@ int main(int argc, char *argv[])
i++; i++;
if(i >= argc) if(i >= argc)
ShowUsage(1); ShowUsage(1);
WINE_TRACE("argv[%d] = %s\n", i, argv[i]);
PackageName = argv[i]; PackageName = argv[i];
} }
else if(!strcasecmp(argv[i], "m")) else if(!strcasecmp(argv[i], "m"))
...@@ -309,6 +315,7 @@ int main(int argc, char *argv[]) ...@@ -309,6 +315,7 @@ int main(int argc, char *argv[])
i++; i++;
if(i >= argc) if(i >= argc)
ShowUsage(1); ShowUsage(1);
WINE_TRACE("argv[%d] = %s\n", i, argv[i]);
PackageName = argv[i]; PackageName = argv[i];
} }
else if(!strcasecmp(argv[i], "/t")) else if(!strcasecmp(argv[i], "/t"))
...@@ -316,6 +323,7 @@ int main(int argc, char *argv[]) ...@@ -316,6 +323,7 @@ int main(int argc, char *argv[])
i++; i++;
if(i >= argc) if(i >= argc)
ShowUsage(1); ShowUsage(1);
WINE_TRACE("argv[%d] = %s\n", i, argv[i]);
TempStr = HeapReAlloc(GetProcessHeap(), 0, Transforms, HeapSize(GetProcessHeap(), 0, Transforms)+strlen(argv[i])+1); TempStr = HeapReAlloc(GetProcessHeap(), 0, Transforms, HeapSize(GetProcessHeap(), 0, Transforms)+strlen(argv[i])+1);
if(!TempStr) if(!TempStr)
{ {
...@@ -343,6 +351,7 @@ int main(int argc, char *argv[]) ...@@ -343,6 +351,7 @@ int main(int argc, char *argv[])
i++; i++;
if(i >= argc) if(i >= argc)
ShowUsage(1); ShowUsage(1);
WINE_TRACE("argv[%d] = %s\n", i, argv[i]);
Language = strtol(argv[i], NULL, 0); Language = strtol(argv[i], NULL, 0);
} }
else if(!strncasecmp(argv[i], "/l", 2)) else if(!strncasecmp(argv[i], "/l", 2))
...@@ -350,6 +359,7 @@ int main(int argc, char *argv[]) ...@@ -350,6 +359,7 @@ int main(int argc, char *argv[])
i++; i++;
if(i >= argc) if(i >= argc)
ShowUsage(1); ShowUsage(1);
WINE_TRACE("argv[%d] = %s\n", i, argv[i]);
WINE_FIXME("Logging not yet implemented\n"); WINE_FIXME("Logging not yet implemented\n");
ExitProcess(1); ExitProcess(1);
} }
...@@ -358,6 +368,7 @@ int main(int argc, char *argv[]) ...@@ -358,6 +368,7 @@ int main(int argc, char *argv[])
i++; i++;
if(i >= argc) if(i >= argc)
ShowUsage(1); ShowUsage(1);
WINE_TRACE("argv[%d] = %s\n", i, argv[i]);
WINE_FIXME("Patching not yet implemented\n"); WINE_FIXME("Patching not yet implemented\n");
ExitProcess(1); ExitProcess(1);
} }
...@@ -366,6 +377,7 @@ int main(int argc, char *argv[]) ...@@ -366,6 +377,7 @@ int main(int argc, char *argv[])
i++; i++;
if(i >= argc) if(i >= argc)
ShowUsage(1); ShowUsage(1);
WINE_TRACE("argv[%d] = %s\n", i, argv[i]);
WINE_FIXME("User interface not yet implemented\n"); WINE_FIXME("User interface not yet implemented\n");
ExitProcess(1); ExitProcess(1);
} }
...@@ -375,6 +387,7 @@ int main(int argc, char *argv[]) ...@@ -375,6 +387,7 @@ int main(int argc, char *argv[])
i++; i++;
if(i >= argc) if(i >= argc)
ShowUsage(1); ShowUsage(1);
WINE_TRACE("argv[%d] = %s\n", i, argv[i]);
DllName = argv[i]; DllName = argv[i];
} }
else if(!strcasecmp(argv[i], "/z")) else if(!strcasecmp(argv[i], "/z"))
...@@ -383,6 +396,7 @@ int main(int argc, char *argv[]) ...@@ -383,6 +396,7 @@ int main(int argc, char *argv[])
i++; i++;
if(i >= argc) if(i >= argc)
ShowUsage(1); ShowUsage(1);
WINE_TRACE("argv[%d] = %s\n", i, argv[i]);
DllName = argv[i]; DllName = argv[i];
} }
else if(!strcasecmp(argv[i], "/h") || !strcasecmp(argv[i], "/?")) else if(!strcasecmp(argv[i], "/h") || !strcasecmp(argv[i], "/?"))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment