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
8ff57beb
Commit
8ff57beb
authored
Jun 30, 2011
by
Hans Leidekker
Committed by
Alexandre Julliard
Jul 01, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msi: Perform a full uninstall if no feature resolves to INSTALLSTATE_LOCAL.
parent
686eb173
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
20 deletions
+9
-20
action.c
dlls/msi/action.c
+9
-20
No files found.
dlls/msi/action.c
View file @
8ff57beb
...
...
@@ -4915,32 +4915,23 @@ static UINT ACTION_InstallExecute(MSIPACKAGE *package)
return
execute_script
(
package
,
INSTALL_SCRIPT
);
}
static
UINT
msi_unpublish_product
(
MSIPACKAGE
*
package
,
WCHAR
*
remove
)
static
UINT
msi_unpublish_product
(
MSIPACKAGE
*
package
,
const
WCHAR
*
remove
)
{
static
const
WCHAR
szUpgradeCode
[]
=
{
'U'
,
'p'
,
'g'
,
'r'
,
'a'
,
'd'
,
'e'
,
'C'
,
'o'
,
'd'
,
'e'
,
0
};
WCHAR
*
upgrade
,
**
features
;
BOOL
full_uninstall
=
TRUE
;
MSIFEATURE
*
feature
;
MSIPATCHINFO
*
patch
;
UINT
i
;
static
const
WCHAR
szUpgradeCode
[]
=
{
'U'
,
'p'
,
'g'
,
'r'
,
'a'
,
'd'
,
'e'
,
'C'
,
'o'
,
'd'
,
'e'
,
0
};
features
=
msi_split_string
(
remove
,
','
);
if
(
!
features
)
LIST_FOR_EACH_ENTRY
(
feature
,
&
package
->
features
,
MSIFEATURE
,
entry
)
{
ERR
(
"REMOVE feature list is empty!
\n
"
);
return
ERROR_FUNCTION_FAILED
;
if
(
feature
->
Action
==
INSTALLSTATE_LOCAL
)
full_uninstall
=
FALSE
;
}
if
(
!
strcmpW
(
features
[
0
],
szAll
))
full_uninstall
=
TRUE
;
else
features
=
msi_split_string
(
remove
,
','
);
for
(
i
=
0
;
features
&&
features
[
i
];
i
++
)
{
LIST_FOR_EACH_ENTRY
(
feature
,
&
package
->
features
,
MSIFEATURE
,
entry
)
{
if
(
feature
->
Action
!=
INSTALLSTATE_ABSENT
)
full_uninstall
=
FALSE
;
}
if
(
!
strcmpW
(
features
[
i
],
szAll
))
full_uninstall
=
TRUE
;
}
msi_free
(
features
);
...
...
@@ -4991,9 +4982,7 @@ static UINT ACTION_InstallFinalize(MSIPACKAGE *package)
return
rc
;
remove
=
msi_dup_property
(
package
->
db
,
szRemove
);
if
(
remove
)
rc
=
msi_unpublish_product
(
package
,
remove
);
rc
=
msi_unpublish_product
(
package
,
remove
);
msi_free
(
remove
);
return
rc
;
}
...
...
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