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
f909e1c0
Commit
f909e1c0
authored
Aug 21, 2008
by
James Hawkins
Committed by
Alexandre Julliard
Aug 21, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msi: Don't remove a file that is installed as source.
parent
4553d0fd
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
files.c
dlls/msi/files.c
+2
-1
install.c
dlls/msi/tests/install.c
+1
-1
No files found.
dlls/msi/files.c
View file @
f909e1c0
...
...
@@ -547,7 +547,8 @@ UINT ACTION_RemoveFiles( MSIPACKAGE *package )
if
(
file
->
state
==
msifs_installed
)
ERR
(
"removing installed file %s
\n
"
,
debugstr_w
(
file
->
TargetPath
));
if
(
file
->
Component
->
ActionRequest
!=
INSTALLSTATE_ABSENT
)
if
(
file
->
Component
->
ActionRequest
!=
INSTALLSTATE_ABSENT
||
file
->
Component
->
Installed
==
INSTALLSTATE_SOURCE
)
continue
;
/* don't remove a file if the old file
...
...
dlls/msi/tests/install.c
View file @
f909e1c0
...
...
@@ -4269,9 +4269,9 @@ static void test_removefiles(void)
r
=
MsiInstallProductA
(
msifile
,
"REMOVE=ALL"
);
ok
(
r
==
ERROR_SUCCESS
,
"Expected ERROR_SUCCESS, got %u
\n
"
,
r
);
ok
(
!
pf_exists
(
"msitest
\\
hydrogen"
),
"File not deleted
\n
"
);
ok
(
delete_pf
(
"msitest
\\
helium"
,
TRUE
),
"File deleted
\n
"
);
todo_wine
{
ok
(
delete_pf
(
"msitest
\\
helium"
,
TRUE
),
"File deleted
\n
"
);
ok
(
delete_pf
(
"msitest
\\
lithium"
,
TRUE
),
"File deleted
\n
"
);
}
ok
(
delete_pf
(
"msitest"
,
FALSE
),
"File deleted
\n
"
);
...
...
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