Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
b8727115
Commit
b8727115
authored
Jul 20, 2010
by
Hans Leidekker
Committed by
Alexandre Julliard
Jul 20, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msi: Unpublish the product after running all the actions.
parent
f7aa88fe
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
17 deletions
+12
-17
action.c
dlls/msi/action.c
+12
-17
No files found.
dlls/msi/action.c
View file @
b8727115
...
...
@@ -4752,11 +4752,9 @@ static UINT ACTION_InstallExecute(MSIPACKAGE *package)
return
execute_script
(
package
,
INSTALL_SCRIPT
);
}
static
UINT
msi_unpublish_product
(
MSIPACKAGE
*
package
)
static
UINT
msi_unpublish_product
(
MSIPACKAGE
*
package
,
WCHAR
*
remove
)
{
LPWSTR
upgrade
;
LPWSTR
remove
=
NULL
;
LPWSTR
*
features
=
NULL
;
WCHAR
*
upgrade
,
**
features
;
BOOL
full_uninstall
=
TRUE
;
MSIFEATURE
*
feature
;
MSIPATCHINFO
*
patch
;
...
...
@@ -4764,14 +4762,9 @@ static UINT msi_unpublish_product(MSIPACKAGE *package)
static
const
WCHAR
szUpgradeCode
[]
=
{
'U'
,
'p'
,
'g'
,
'r'
,
'a'
,
'd'
,
'e'
,
'C'
,
'o'
,
'd'
,
'e'
,
0
};
remove
=
msi_dup_property
(
package
->
db
,
szRemove
);
if
(
!
remove
)
return
ERROR_SUCCESS
;
features
=
msi_split_string
(
remove
,
','
);
if
(
!
features
)
{
msi_free
(
remove
);
ERR
(
"REMOVE feature list is empty!
\n
"
);
return
ERROR_FUNCTION_FAILED
;
}
...
...
@@ -4786,9 +4779,10 @@ static UINT msi_unpublish_product(MSIPACKAGE *package)
full_uninstall
=
FALSE
;
}
}
msi_free
(
features
);
if
(
!
full_uninstall
)
goto
done
;
return
ERROR_SUCCESS
;
MSIREG_DeleteProductKey
(
package
->
ProductCode
);
MSIREG_DeleteUserDataProductKey
(
package
->
ProductCode
);
...
...
@@ -4817,19 +4811,13 @@ static UINT msi_unpublish_product(MSIPACKAGE *package)
MSIREG_DeleteUserDataPatchKey
(
patch
->
patchcode
,
package
->
Context
);
}
done:
msi_free
(
remove
);
msi_free
(
features
);
return
ERROR_SUCCESS
;
}
static
UINT
ACTION_InstallFinalize
(
MSIPACKAGE
*
package
)
{
UINT
rc
;
rc
=
msi_unpublish_product
(
package
);
if
(
rc
!=
ERROR_SUCCESS
)
return
rc
;
WCHAR
*
remove
;
/* turn off scheduling */
package
->
script
->
CurrentlyScripting
=
FALSE
;
...
...
@@ -4841,7 +4829,14 @@ static UINT ACTION_InstallFinalize(MSIPACKAGE *package)
/* then handle Commit Actions */
rc
=
execute_script
(
package
,
COMMIT_SCRIPT
);
if
(
rc
!=
ERROR_SUCCESS
)
return
rc
;
remove
=
msi_dup_property
(
package
->
db
,
szRemove
);
if
(
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