mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-02 04:13:34 +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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user