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
fd4a2003
Commit
fd4a2003
authored
Nov 02, 2005
by
Mike McCormack
Committed by
Alexandre Julliard
Nov 02, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Implement the RemoveFiles action.
parent
19855726
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
28 additions
and
1 deletion
+28
-1
action.c
dlls/msi/action.c
+1
-1
action.h
dlls/msi/action.h
+1
-0
files.c
dlls/msi/files.c
+26
-0
No files found.
dlls/msi/action.c
View file @
fd4a2003
...
@@ -4285,7 +4285,7 @@ static struct _actions StandardActions[] = {
...
@@ -4285,7 +4285,7 @@ static struct _actions StandardActions[] = {
{
szRemoveDuplicateFiles
,
NULL
},
{
szRemoveDuplicateFiles
,
NULL
},
{
szRemoveEnvironmentStrings
,
ACTION_RemoveEnvironmentStrings
},
{
szRemoveEnvironmentStrings
,
ACTION_RemoveEnvironmentStrings
},
{
szRemoveExistingProducts
,
NULL
},
{
szRemoveExistingProducts
,
NULL
},
{
szRemoveFiles
,
NULL
},
{
szRemoveFiles
,
ACTION_RemoveFiles
},
{
szRemoveFolders
,
NULL
},
{
szRemoveFolders
,
NULL
},
{
szRemoveIniValues
,
ACTION_RemoveIniValues
},
{
szRemoveIniValues
,
ACTION_RemoveIniValues
},
{
szRemoveODBC
,
NULL
},
{
szRemoveODBC
,
NULL
},
...
...
dlls/msi/action.h
View file @
fd4a2003
...
@@ -243,6 +243,7 @@ extern UINT ACTION_CustomAction(MSIPACKAGE *package,const WCHAR *action, BOOL ex
...
@@ -243,6 +243,7 @@ extern UINT ACTION_CustomAction(MSIPACKAGE *package,const WCHAR *action, BOOL ex
extern
UINT
ACTION_AppSearch
(
MSIPACKAGE
*
package
);
extern
UINT
ACTION_AppSearch
(
MSIPACKAGE
*
package
);
extern
UINT
ACTION_FindRelatedProducts
(
MSIPACKAGE
*
package
);
extern
UINT
ACTION_FindRelatedProducts
(
MSIPACKAGE
*
package
);
extern
UINT
ACTION_InstallFiles
(
MSIPACKAGE
*
package
);
extern
UINT
ACTION_InstallFiles
(
MSIPACKAGE
*
package
);
extern
UINT
ACTION_RemoveFiles
(
MSIPACKAGE
*
package
);
extern
UINT
ACTION_DuplicateFiles
(
MSIPACKAGE
*
package
);
extern
UINT
ACTION_DuplicateFiles
(
MSIPACKAGE
*
package
);
extern
UINT
ACTION_RegisterClassInfo
(
MSIPACKAGE
*
package
);
extern
UINT
ACTION_RegisterClassInfo
(
MSIPACKAGE
*
package
);
extern
UINT
ACTION_RegisterProgIdInfo
(
MSIPACKAGE
*
package
);
extern
UINT
ACTION_RegisterProgIdInfo
(
MSIPACKAGE
*
package
);
...
...
dlls/msi/files.c
View file @
fd4a2003
...
@@ -868,3 +868,29 @@ UINT ACTION_DuplicateFiles(MSIPACKAGE *package)
...
@@ -868,3 +868,29 @@ UINT ACTION_DuplicateFiles(MSIPACKAGE *package)
return
rc
;
return
rc
;
}
}
UINT
ACTION_RemoveFiles
(
MSIPACKAGE
*
package
)
{
MSIFILE
*
file
;
LIST_FOR_EACH_ENTRY
(
file
,
&
package
->
files
,
MSIFILE
,
entry
)
{
if
(
!
file
->
Component
)
continue
;
if
(
file
->
Component
->
Installed
==
INSTALLSTATE_LOCAL
)
continue
;
if
(
file
->
state
==
msifs_installed
)
ERR
(
"removing installed file %s
\n
"
,
debugstr_w
(
file
->
TargetPath
));
if
(
file
->
state
!=
msifs_present
)
continue
;
TRACE
(
"removing %s
\n
"
,
debugstr_w
(
file
->
File
)
);
if
(
!
DeleteFileW
(
file
->
TargetPath
)
)
ERR
(
"failed to delete %s
\n
"
,
debugstr_w
(
file
->
TargetPath
)
);
file
->
state
=
msifs_missing
;
}
return
ERROR_SUCCESS
;
}
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