Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
401becab
Commit
401becab
authored
Apr 20, 2006
by
James Hawkins
Committed by
Alexandre Julliard
Apr 20, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
advpack: Implement the RunPostSetupCommands callback.
parent
c4ca6341
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
34 additions
and
0 deletions
+34
-0
install.c
dlls/advpack/install.c
+34
-0
No files found.
dlls/advpack/install.c
View file @
401becab
...
...
@@ -58,6 +58,9 @@ typedef HRESULT (*iterate_fields_func)(HINF hinf, PCWSTR field, void *arg);
/* Advanced INF commands */
static
const
WCHAR
RegisterOCXs
[]
=
{
'R'
,
'e'
,
'g'
,
'i'
,
's'
,
't'
,
'e'
,
'r'
,
'O'
,
'C'
,
'X'
,
's'
,
0
};
static
const
WCHAR
RunPostSetupCommands
[]
=
{
'R'
,
'u'
,
'n'
,
'P'
,
'o'
,
's'
,
't'
,
'S'
,
'e'
,
't'
,
'u'
,
'p'
,
'C'
,
'o'
,
'm'
,
'm'
,
'a'
,
'n'
,
'd'
,
's'
,
0
};
/* Advanced INF callbacks */
static
HRESULT
register_ocxs_callback
(
HINF
hinf
,
PCWSTR
field
,
void
*
arg
)
...
...
@@ -93,6 +96,30 @@ static HRESULT register_ocxs_callback(HINF hinf, PCWSTR field, void *arg)
return
hr
;
}
static
HRESULT
run_post_setup_commands_callback
(
HINF
hinf
,
PCWSTR
field
,
void
*
arg
)
{
ADVInfo
*
info
=
(
ADVInfo
*
)
arg
;
INFCONTEXT
context
;
HRESULT
hr
=
S_OK
;
DWORD
size
;
BOOL
ok
=
SetupFindFirstLineW
(
hinf
,
field
,
NULL
,
&
context
);
for
(;
ok
;
ok
=
SetupFindNextLine
(
&
context
,
&
context
))
{
WCHAR
buffer
[
MAX_INF_STRING_LENGTH
];
if
(
!
SetupGetLineTextW
(
&
context
,
NULL
,
NULL
,
NULL
,
buffer
,
MAX_INF_STRING_LENGTH
,
&
size
))
continue
;
if
(
launch_exe
(
buffer
,
info
->
working_dir
,
NULL
))
hr
=
E_FAIL
;
}
return
hr
;
}
/* sequentially returns pointers to parameters in a parameter list
* returns NULL if the parameter is empty, e.g. one,,three */
LPWSTR
get_parameter
(
LPWSTR
*
params
,
WCHAR
separator
)
...
...
@@ -222,6 +249,13 @@ static HRESULT adv_install(ADVInfo *info)
hr
=
iterate_section_fields
(
info
->
hinf
,
info
->
install_sec
,
RegisterOCXs
,
register_ocxs_callback
,
NULL
);
if
(
hr
!=
S_OK
)
return
hr
;
hr
=
iterate_section_fields
(
info
->
hinf
,
info
->
install_sec
,
RunPostSetupCommands
,
run_post_setup_commands_callback
,
info
);
if
(
hr
!=
S_OK
)
return
hr
;
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