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
31a9b087
Commit
31a9b087
authored
Nov 13, 2006
by
James Hawkins
Committed by
Alexandre Julliard
Nov 14, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msi: Notify the external UI handler when changing media.
parent
2f582443
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
1 deletion
+15
-1
dialog.c
dlls/msi/dialog.c
+4
-0
files.c
dlls/msi/files.c
+11
-1
No files found.
dlls/msi/dialog.c
View file @
31a9b087
...
...
@@ -3505,6 +3505,7 @@ UINT msi_spawn_error_dialog( MSIPACKAGE *package, LPWSTR error_dialog, LPWSTR er
DWORD
size
=
MAX_PATH
;
int
res
;
static
const
WCHAR
szUILevel
[]
=
{
'U'
,
'I'
,
'L'
,
'e'
,
'v'
,
'e'
,
'l'
,
0
};
static
const
WCHAR
pn_prop
[]
=
{
'P'
,
'r'
,
'o'
,
'd'
,
'u'
,
'c'
,
't'
,
'N'
,
'a'
,
'm'
,
'e'
,
0
};
static
const
WCHAR
title_fmt
[]
=
{
'%'
,
's'
,
' '
,
'W'
,
'a'
,
'r'
,
'n'
,
'i'
,
'n'
,
'g'
,
0
};
static
const
WCHAR
error_abort
[]
=
{
'E'
,
'r'
,
'r'
,
'o'
,
'r'
,
'A'
,
'b'
,
'o'
,
'r'
,
't'
,
0
};
...
...
@@ -3512,6 +3513,9 @@ UINT msi_spawn_error_dialog( MSIPACKAGE *package, LPWSTR error_dialog, LPWSTR er
'M'
,
'S'
,
'I'
,
'E'
,
'r'
,
'r'
,
'o'
,
'r'
,
'D'
,
'i'
,
'a'
,
'l'
,
'o'
,
'g'
,
'R'
,
'e'
,
's'
,
'u'
,
'l'
,
't'
,
0
};
if
(
msi_get_property_int
(
package
,
szUILevel
,
0
)
==
INSTALLUILEVEL_NONE
)
return
ERROR_SUCCESS
;
if
(
!
error_dialog
)
{
LPWSTR
product_name
=
msi_dup_property
(
package
,
pn_prop
);
...
...
dlls/msi/files.c
View file @
31a9b087
...
...
@@ -69,21 +69,31 @@ struct media_info {
static
UINT
msi_change_media
(
MSIPACKAGE
*
package
,
struct
media_info
*
mi
)
{
LPSTR
msg
;
LPWSTR
error
,
error_dialog
;
UINT
r
=
ERROR_SUCCESS
;
static
const
WCHAR
szUILevel
[]
=
{
'U'
,
'I'
,
'L'
,
'e'
,
'v'
,
'e'
,
'l'
,
0
};
static
const
WCHAR
error_prop
[]
=
{
'E'
,
'r'
,
'r'
,
'o'
,
'r'
,
'D'
,
'i'
,
'a'
,
'l'
,
'o'
,
'g'
,
0
};
if
(
msi_get_property_int
(
package
,
szUILevel
,
0
)
==
INSTALLUILEVEL_NONE
)
if
(
msi_get_property_int
(
package
,
szUILevel
,
0
)
==
INSTALLUILEVEL_NONE
&&
!
gUIHandlerA
)
return
ERROR_SUCCESS
;
error
=
generate_error_string
(
package
,
1302
,
1
,
mi
->
disk_prompt
);
error_dialog
=
msi_dup_property
(
package
,
error_prop
);
while
(
r
==
ERROR_SUCCESS
&&
GetFileAttributesW
(
mi
->
source
)
==
INVALID_FILE_ATTRIBUTES
)
{
r
=
msi_spawn_error_dialog
(
package
,
error_dialog
,
error
);
if
(
gUIHandlerA
)
{
msg
=
strdupWtoA
(
error
);
gUIHandlerA
(
gUIContext
,
MB_RETRYCANCEL
|
INSTALLMESSAGE_ERROR
,
msg
);
msi_free
(
msg
);
}
}
msi_free
(
error
);
msi_free
(
error_dialog
);
...
...
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