Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
d049c37a
Commit
d049c37a
authored
Apr 28, 2006
by
James Hawkins
Committed by
Alexandre Julliard
May 05, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
advpack: Perform an Advanced INF-level install in RegInstall.
parent
f1631103
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
14 deletions
+9
-14
reg.c
dlls/advpack/reg.c
+9
-14
No files found.
dlls/advpack/reg.c
View file @
d049c37a
...
...
@@ -222,8 +222,10 @@ static HRESULT write_predefined_strings(HMODULE hm, LPWSTR ini_path)
HRESULT
WINAPI
RegInstallW
(
HMODULE
hm
,
LPCWSTR
pszSection
,
const
STRTABLEW
*
pstTable
)
{
int
i
;
CABINFOW
cabinfo
;
WCHAR
tmp_ini_path
[
MAX_PATH
];
HINF
hinf
=
INVALID_HANDLE_VALUE
;
HRESULT
hr
=
E_FAIL
;
TRACE
(
"(%p, %s, %p)
\n
"
,
hm
,
debugstr_w
(
pszSection
),
pstTable
);
...
...
@@ -246,20 +248,13 @@ HRESULT WINAPI RegInstallW(HMODULE hm, LPCWSTR pszSection, const STRTABLEW* pstT
/* flush cache */
WritePrivateProfileStringW
(
NULL
,
NULL
,
NULL
,
tmp_ini_path
);
/* FIXME: read AdvOptions val for dwFlags */
ZeroMemory
(
&
cabinfo
,
sizeof
(
CABINFOW
));
cabinfo
.
pszInf
=
tmp_ini_path
;
cabinfo
.
pszSection
=
(
LPWSTR
)
pszSection
;
cabinfo
.
dwFlags
=
0
;
if
((
hinf
=
SetupOpenInfFileW
(
tmp_ini_path
,
NULL
,
INF_STYLE_WIN4
,
NULL
))
==
INVALID_HANDLE_VALUE
)
{
ERR
(
"Setupapi can't open inf
\n
"
);
goto
done
;
}
/* append any layout files */
SetupOpenAppendInfFileW
(
NULL
,
hinf
,
NULL
);
/* Need to do a lot more here */
SetupInstallFromInfSectionW
(
NULL
,
hinf
,
pszSection
,
SPINST_INIFILES
|
SPINST_REGISTRY
|
SPINST_PROFILEITEMS
,
HKEY_LOCAL_MACHINE
,
NULL
,
0
,
NULL
,
NULL
,
NULL
,
NULL
);
hr
=
ExecuteCabW
(
NULL
,
&
cabinfo
,
NULL
);
done:
if
(
hinf
!=
INVALID_HANDLE_VALUE
)
...
...
@@ -267,7 +262,7 @@ done:
DeleteFileW
(
tmp_ini_path
);
return
S_OK
;
return
hr
;
}
/***********************************************************************
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment