advpack: Show fixme when advpack fails to prompt user for directory.
This commit is contained in:
parent
ac6343cd5a
commit
ccaddb8a34
|
@ -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)
|
||||||
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)
|
||||||
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, ',')))
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue