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
60e95ee6
Commit
60e95ee6
authored
May 31, 2007
by
James Hawkins
Committed by
Alexandre Julliard
Jun 01, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msi: Add handling for MsiBreak.
parent
18366472
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
35 additions
and
0 deletions
+35
-0
custom.c
dlls/msi/custom.c
+35
-0
No files found.
dlls/msi/custom.c
View file @
60e95ee6
...
...
@@ -514,6 +514,40 @@ static msi_custom_action_info *find_action_by_guid( const GUID *guid )
return
info
;
}
static
void
handle_msi_break
(
LPCWSTR
target
)
{
LPWSTR
msg
;
WCHAR
val
[
MAX_PATH
];
static
const
WCHAR
MsiBreak
[]
=
{
'M'
,
's'
,
'i'
,
'B'
,
'r'
,
'e'
,
'a'
,
'k'
,
0
};
static
const
WCHAR
WindowsInstaller
[]
=
{
'W'
,
'i'
,
'n'
,
'd'
,
'o'
,
'w'
,
's'
,
' '
,
'I'
,
'n'
,
's'
,
't'
,
'a'
,
'l'
,
'l'
,
'e'
,
'r'
,
0
};
static
const
WCHAR
format
[]
=
{
'T'
,
'o'
,
' '
,
'd'
,
'e'
,
'b'
,
'u'
,
'g'
,
' '
,
'y'
,
'o'
,
'u'
,
'r'
,
' '
,
'c'
,
'u'
,
's'
,
't'
,
'o'
,
'm'
,
' '
,
'a'
,
'c'
,
't'
,
'i'
,
'o'
,
'n'
,
','
,
' '
,
'a'
,
't'
,
't'
,
'a'
,
'c'
,
'h'
,
' '
,
'y'
,
'o'
,
'u'
,
'r'
,
' '
,
'd'
,
'e'
,
'b'
,
'u'
,
'g'
,
'g'
,
'e'
,
'r'
,
' '
,
't'
,
'o'
,
' '
,
'p'
,
'r'
,
'o'
,
'c'
,
'e'
,
's'
,
's'
,
' '
,
'%'
,
'i'
,
' '
,
'('
,
'0'
,
'x'
,
'%'
,
'X'
,
')'
,
' '
,
'a'
,
'n'
,
'd'
,
' '
,
'p'
,
'r'
,
'e'
,
's'
,
's'
,
' '
,
'O'
,
'K'
,
0
};
if
(
!
GetEnvironmentVariableW
(
MsiBreak
,
val
,
MAX_PATH
))
return
;
if
(
lstrcmpiW
(
val
,
target
))
return
;
msg
=
msi_alloc
(
(
lstrlenW
(
format
)
+
10
)
*
sizeof
(
WCHAR
)
);
if
(
!
msg
)
return
;
wsprintfW
(
msg
,
format
,
GetCurrentProcessId
(),
GetCurrentProcessId
());
MessageBoxW
(
NULL
,
msg
,
WindowsInstaller
,
MB_OK
);
msi_free
(
msg
);
DebugBreak
();
}
static
DWORD
WINAPI
ACTION_CallDllFunction
(
const
GUID
*
guid
)
{
msi_custom_action_info
*
info
;
...
...
@@ -548,6 +582,7 @@ static DWORD WINAPI ACTION_CallDllFunction( const GUID *guid )
if
(
hPackage
)
{
TRACE
(
"calling %s
\n
"
,
debugstr_w
(
info
->
target
)
);
handle_msi_break
(
info
->
target
);
r
=
fn
(
hPackage
);
MsiCloseHandle
(
hPackage
);
}
...
...
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