mirror of
git://source.winehq.org/git/wine.git
synced 2024-11-05 18:01:34 +00:00
urlmon: Support [Add.Code] sections in ActiveX INF files.
Signed-off-by: Joel Holdsworth <joel@airwebreathe.org.uk> Signed-off-by: Jacek Caban <jacek@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
33be9fc78f
commit
185bcc4523
1 changed files with 18 additions and 5 deletions
|
@ -251,12 +251,25 @@ static HRESULT install_inf_file(install_ctx_t *ctx)
|
|||
|
||||
len = GetPrivateProfileStringW(add_codeW, NULL, NULL, buf, sizeof(buf)/sizeof(*buf), ctx->install_file);
|
||||
if(len) {
|
||||
FIXME("[Add.Code] section not supported\n");
|
||||
default_install = FALSE;
|
||||
|
||||
/* Don't throw an error if we successfully ran setup hooks;
|
||||
installation is likely to be complete enough */
|
||||
if(default_install)
|
||||
return E_NOTIMPL;
|
||||
for(key = buf; *key; key += strlenW(key)+1) {
|
||||
TRACE("[Add.Code] key: %s\n", debugstr_w(key));
|
||||
|
||||
len = GetPrivateProfileStringW(add_codeW, key, NULL, sect_name, sizeof(sect_name)/sizeof(*sect_name),
|
||||
ctx->install_file);
|
||||
if(!len) {
|
||||
WARN("Could not get key value\n");
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
hres = RunSetupCommandW(ctx->hwnd, ctx->install_file, sect_name,
|
||||
ctx->tmp_dir, NULL, NULL, RSC_FLAG_INF, NULL);
|
||||
if(FAILED(hres)) {
|
||||
WARN("RunSetupCommandW failed: %08x\n", hres);
|
||||
return hres;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if(default_install) {
|
||||
|
|
Loading…
Reference in a new issue