Author: jgardou
Date: Thu Jul 10 09:05:43 2014
New Revision: 63706
URL:
http://svn.reactos.org/svn/reactos?rev=63706&view=rev
Log:
[APPWIZ]
- Expand the registry entry when installing gecko package from disk.
Now unattended setup can really be unattended.
Modified:
trunk/reactos/dll/cpl/appwiz/addons.c
Modified: trunk/reactos/dll/cpl/appwiz/addons.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/cpl/appwiz/addons.c?re…
==============================================================================
--- trunk/reactos/dll/cpl/appwiz/addons.c [iso-8859-1] (original)
+++ trunk/reactos/dll/cpl/appwiz/addons.c [iso-8859-1] Thu Jul 10 09:05:43 2014
@@ -214,6 +214,18 @@
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);