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
72e279bd
Commit
72e279bd
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 DelDirs command.
parent
4df23731
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
29 additions
and
0 deletions
+29
-0
install.c
dlls/advpack/install.c
+29
-0
No files found.
dlls/advpack/install.c
View file @
72e279bd
...
...
@@ -60,6 +60,7 @@ typedef HRESULT (*iterate_fields_func)(HINF hinf, PCWSTR field, void *arg);
static
const
WCHAR
CheckAdminRights
[]
=
{
'C'
,
'h'
,
'e'
,
'c'
,
'k'
,
'A'
,
'd'
,
'm'
,
'i'
,
'n'
,
'R'
,
'i'
,
'g'
,
'h'
,
't'
,
's'
,
0
};
static
const
WCHAR
DelDirs
[]
=
{
'D'
,
'e'
,
'l'
,
'D'
,
'i'
,
'r'
,
's'
,
0
};
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
[]
=
{
...
...
@@ -70,6 +71,29 @@ static const WCHAR RunPostSetupCommands[] = {
};
/* Advanced INF callbacks */
static
HRESULT
del_dirs_callback
(
HINF
hinf
,
PCWSTR
field
,
void
*
arg
)
{
INFCONTEXT
context
;
HRESULT
hr
=
S_OK
;
DWORD
size
;
BOOL
ok
=
SetupFindFirstLineW
(
hinf
,
field
,
NULL
,
&
context
);
for
(;
ok
;
ok
=
SetupFindNextLine
(
&
context
,
&
context
))
{
WCHAR
directory
[
MAX_INF_STRING_LENGTH
];
if
(
!
SetupGetLineTextW
(
&
context
,
NULL
,
NULL
,
NULL
,
directory
,
MAX_INF_STRING_LENGTH
,
&
size
))
continue
;
if
(
DelNodeW
(
directory
,
0
))
hr
=
E_FAIL
;
}
return
hr
;
}
static
HRESULT
per_user_install_callback
(
HINF
hinf
,
PCWSTR
field
,
void
*
arg
)
{
PERUSERSECTIONW
per_user
;
...
...
@@ -340,6 +364,11 @@ static HRESULT adv_install(ADVInfo *info)
if
(
hr
!=
S_OK
)
return
hr
;
hr
=
iterate_section_fields
(
info
->
hinf
,
info
->
install_sec
,
DelDirs
,
del_dirs_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