mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 22:52:54 +00:00
[APPWIZ]
- 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:
parent
62ae426e15
commit
642d03e08b
1 changed files with 12 additions and 0 deletions
|
@ -214,6 +214,18 @@ static enum install_res install_from_registered_dir(void)
|
||||||
return INSTALL_FAILED;
|
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));
|
TRACE("Trying %s/%s\n", debugstr_a(package_dir), debugstr_a(addon->file_name));
|
||||||
|
|
||||||
ret = install_from_unix_file(package_dir, "", addon->file_name);
|
ret = install_from_unix_file(package_dir, "", addon->file_name);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue