- Expand the registry entry when installing gecko package from disk.
Now unattended setup can really be unattended.

svn path=/trunk/; revision=63706
This commit is contained in:
Jérôme Gardou 2014-07-10 09:05:43 +00:00
parent 62ae426e15
commit 642d03e08b

View file

@ -214,6 +214,18 @@ static enum install_res install_from_registered_dir(void)
return INSTALL_FAILED;
}
if (type == REG_EXPAND_SZ)
{
size = ExpandEnvironmentStringsA(package_dir, NULL, 0);
if (size)
{
char* buf = heap_alloc(size + sizeof(addon->file_name));
ExpandEnvironmentStringsA(package_dir, buf, size);
heap_free(package_dir);
package_dir = buf;
}
}
TRACE("Trying %s/%s\n", debugstr_a(package_dir), debugstr_a(addon->file_name));
ret = install_from_unix_file(package_dir, "", addon->file_name);