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
2c5e1f68
Commit
2c5e1f68
authored
Mar 26, 2010
by
Hans Leidekker
Committed by
Alexandre Julliard
Mar 26, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msi: Implement the Reinstall control event.
parent
e5869d5d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
0 deletions
+19
-0
events.c
dlls/msi/events.c
+19
-0
No files found.
dlls/msi/events.c
View file @
2c5e1f68
...
...
@@ -383,6 +383,24 @@ static UINT ControlEvent_ReinstallMode(MSIPACKAGE *package, LPCWSTR argument,
return
MSI_SetPropertyW
(
package
,
szReinstallMode
,
argument
);
}
static
UINT
ControlEvent_Reinstall
(
MSIPACKAGE
*
package
,
LPCWSTR
argument
,
msi_dialog
*
dialog
)
{
static
const
WCHAR
szReinstallEq
[]
=
{
'R'
,
'E'
,
'I'
,
'N'
,
'S'
,
'T'
,
'A'
,
'L'
,
'L'
,
'='
,
0
};
UINT
r
=
ERROR_OUTOFMEMORY
;
WCHAR
*
cmd
;
cmd
=
msi_alloc
(
(
strlenW
(
szReinstallEq
)
+
strlenW
(
argument
)
+
1
)
*
sizeof
(
WCHAR
)
);
if
(
cmd
)
{
strcpyW
(
cmd
,
szReinstallEq
);
strcatW
(
cmd
,
argument
);
r
=
MsiConfigureProductExW
(
package
->
ProductCode
,
INSTALLLEVEL_DEFAULT
,
INSTALLSTATE_DEFAULT
,
cmd
);
msi_free
(
cmd
);
}
return
r
;
}
static
UINT
ControlEvent_ValidateProductID
(
MSIPACKAGE
*
package
,
LPCWSTR
argument
,
msi_dialog
*
dialog
)
{
...
...
@@ -417,6 +435,7 @@ static const struct _events Events[] = {
{
"DirectoryListUp"
,
ControlEvent_DirectoryListUp
},
{
"SelectionBrowse"
,
ControlEvent_SpawnDialog
},
{
"ReinstallMode"
,
ControlEvent_ReinstallMode
},
{
"Reinstall"
,
ControlEvent_Reinstall
},
{
"ValidateProductID"
,
ControlEvent_ValidateProductID
},
{
NULL
,
NULL
},
};
...
...
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