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
c9cff908
Commit
c9cff908
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: Implement the RunPreSetupCommands command.
parent
5524a4c5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
2 deletions
+10
-2
install.c
dlls/advpack/install.c
+10
-2
No files found.
dlls/advpack/install.c
View file @
c9cff908
...
...
@@ -59,6 +59,9 @@ typedef HRESULT (*iterate_fields_func)(HINF hinf, PCWSTR field, void *arg);
/* Advanced INF commands */
static
const
WCHAR
PerUserInstall
[]
=
{
'P'
,
'e'
,
'r'
,
'U'
,
's'
,
'e'
,
'r'
,
'I'
,
'n'
,
's'
,
't'
,
'a'
,
'l'
,
'l'
,
0
};
static
const
WCHAR
RegisterOCXs
[]
=
{
'R'
,
'e'
,
'g'
,
'i'
,
's'
,
't'
,
'e'
,
'r'
,
'O'
,
'C'
,
'X'
,
's'
,
0
};
static
const
WCHAR
RunPreSetupCommands
[]
=
{
'R'
,
'u'
,
'n'
,
'P'
,
'r'
,
'e'
,
'S'
,
'e'
,
't'
,
'u'
,
'p'
,
'C'
,
'o'
,
'm'
,
'm'
,
'a'
,
'n'
,
'd'
,
'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
};
...
...
@@ -140,7 +143,7 @@ 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
)
static
HRESULT
run_setup_commands_callback
(
HINF
hinf
,
PCWSTR
field
,
void
*
arg
)
{
ADVInfo
*
info
=
(
ADVInfo
*
)
arg
;
INFCONTEXT
context
;
...
...
@@ -291,6 +294,11 @@ static HRESULT adv_install(ADVInfo *info)
{
HRESULT
hr
;
hr
=
iterate_section_fields
(
info
->
hinf
,
info
->
install_sec
,
RunPreSetupCommands
,
run_setup_commands_callback
,
info
);
if
(
hr
!=
S_OK
)
return
hr
;
hr
=
iterate_section_fields
(
info
->
hinf
,
info
->
install_sec
,
RegisterOCXs
,
register_ocxs_callback
,
NULL
);
if
(
hr
!=
S_OK
)
...
...
@@ -302,7 +310,7 @@ static HRESULT adv_install(ADVInfo *info)
return
hr
;
hr
=
iterate_section_fields
(
info
->
hinf
,
info
->
install_sec
,
RunPostSetupCommands
,
run_
post_
setup_commands_callback
,
info
);
run_setup_commands_callback
,
info
);
if
(
hr
!=
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