Commit ccaddb8a authored by Jason Edmeades's avatar Jason Edmeades Committed by Alexandre Julliard

advpack: Show fixme when advpack fails to prompt user for directory.

parent ac6343cd
...@@ -116,6 +116,7 @@ void set_ldids(HINF hInf, LPCWSTR pszInstallSection, LPCWSTR pszWorkingDir) ...@@ -116,6 +116,7 @@ void set_ldids(HINF hInf, LPCWSTR pszInstallSection, LPCWSTR pszWorkingDir)
do do
{ {
LPWSTR value, ptr, key, key_copy = NULL; LPWSTR value, ptr, key, key_copy = NULL;
DWORD flags = 0;
SetupGetLineTextW(&context, NULL, NULL, NULL, SetupGetLineTextW(&context, NULL, NULL, NULL,
line, MAX_FIELD_LENGTH, &size); line, MAX_FIELD_LENGTH, &size);
...@@ -141,10 +142,12 @@ void set_ldids(HINF hInf, LPCWSTR pszInstallSection, LPCWSTR pszWorkingDir) ...@@ -141,10 +142,12 @@ void set_ldids(HINF hInf, LPCWSTR pszInstallSection, LPCWSTR pszWorkingDir)
while (*value == ' ') while (*value == ' ')
value++; value++;
/* FIXME: need to check the query option */ /* Extract the flags */
ptr = strchrW(value, ','); ptr = strchrW(value, ',');
if (ptr) if (ptr) {
*ptr = '\0'; *ptr = '\0';
flags = atolW(ptr+1);
}
/* set dest to pszWorkingDir if key is SourceDir */ /* set dest to pszWorkingDir if key is SourceDir */
if (pszWorkingDir && !lstrcmpiW(value, source_dir)) if (pszWorkingDir && !lstrcmpiW(value, source_dir))
...@@ -152,6 +155,10 @@ void set_ldids(HINF hInf, LPCWSTR pszInstallSection, LPCWSTR pszWorkingDir) ...@@ -152,6 +155,10 @@ void set_ldids(HINF hInf, LPCWSTR pszInstallSection, LPCWSTR pszWorkingDir)
else else
get_dest_dir(hInf, value, dest, MAX_PATH); get_dest_dir(hInf, value, dest, MAX_PATH);
/* If prompting required, provide dialog to request path */
if (flags & 0x04)
FIXME("Need to support changing paths - default will be used\n");
/* set all ldids to dest */ /* set all ldids to dest */
while ((ptr = get_parameter(&key, ','))) while ((ptr = get_parameter(&key, ',')))
{ {
......
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