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
8aa5c993
Commit
8aa5c993
authored
Feb 10, 2007
by
Misha Koshelev
Committed by
Alexandre Julliard
Feb 13, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msi: Conformance test, check that INSTALLUILEVEL flags don't trigger UI install.
parent
5ccc6380
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
58 additions
and
0 deletions
+58
-0
install.c
dlls/msi/tests/install.c
+58
-0
No files found.
dlls/msi/tests/install.c
View file @
8aa5c993
...
...
@@ -115,6 +115,7 @@ static const CHAR property_dat[] = "Property\tValue\n"
"s72
\t
l0
\n
"
"Property
\t
Property
\n
"
"DefaultUIFont
\t
DlgFont8
\n
"
"HASUIRUN
\t
0
\n
"
"INSTALLLEVEL
\t
3
\n
"
"InstallMode
\t
Typical
\n
"
"Manufacturer
\t
Wine
\n
"
...
...
@@ -221,6 +222,25 @@ static const CHAR ss_media_dat[] = "DiskId\tLastSequence\tDiskPrompt\tCabinet\tV
"2
\t
2
\t\t
test2.cab
\t
DISK2
\t\n
"
"3
\t
12
\t\t
test3.cab
\t
DISK3
\t\n
"
;
/* tables for test_uiLevelFlags */
static
const
CHAR
ui_component_dat
[]
=
"Component
\t
ComponentId
\t
Directory_
\t
Attributes
\t
Condition
\t
KeyPath
\n
"
"s72
\t
S38
\t
s72
\t
i2
\t
S255
\t
S72
\n
"
"Component
\t
Component
\n
"
"maximus
\t\t
MSITESTDIR
\t
0
\t
HASUIRUN=1
\t
maximus
\n
"
"augustus
\t\t
MSITESTDIR
\t
0
\t
1
\t
augustus
\n
"
"caesar
\t\t
MSITESTDIR
\t
0
\t
1
\t
caesar
\n
"
;
static
const
CHAR
ui_install_ui_seq_dat
[]
=
"Action
\t
Condition
\t
Sequence
\n
"
"s72
\t
S255
\t
I2
\n
"
"InstallUISequence
\t
Action
\n
"
"SetUIProperty
\t\t
5
\n
"
"ExecuteAction
\t\t
1100
\n
"
;
static
const
CHAR
ui_custom_action_dat
[]
=
"Action
\t
Type
\t
Source
\t
Target
\t
ISComments
\n
"
"s72
\t
i2
\t
S64
\t
S0
\t
S255
\n
"
"CustomAction
\t
Action
\n
"
"SetUIProperty
\t
51
\t
HASUIRUN
\t
1
\t\n
"
;
typedef
struct
_msi_table
{
const
CHAR
*
filename
;
...
...
@@ -305,6 +325,20 @@ static const msi_table ss_tables[] =
ADD_TABLE
(
property
),
};
static
const
msi_table
ui_tables
[]
=
{
ADD_TABLE
(
ui_component
),
ADD_TABLE
(
directory
),
ADD_TABLE
(
cc_feature
),
ADD_TABLE
(
cc_feature_comp
),
ADD_TABLE
(
cc_file
),
ADD_TABLE
(
install_exec_seq
),
ADD_TABLE
(
ui_install_ui_seq
),
ADD_TABLE
(
ui_custom_action
),
ADD_TABLE
(
cc_media
),
ADD_TABLE
(
property
),
};
/* cabinet definitions */
/* make the max size large so there is only one cab file */
...
...
@@ -1063,6 +1097,29 @@ static void test_samesequence(void)
DeleteFile
(
msifile
);
}
static
void
test_uiLevelFlags
(
void
)
{
UINT
r
;
create_cc_test_files
();
create_database
(
msifile
,
ui_tables
,
sizeof
(
ui_tables
)
/
sizeof
(
msi_table
));
MsiSetInternalUI
(
INSTALLUILEVEL_NONE
|
INSTALLUILEVEL_SOURCERESONLY
,
NULL
);
r
=
MsiInstallProductA
(
msifile
,
NULL
);
ok
(
!
delete_pf
(
"msitest
\\
maximus"
,
TRUE
),
"UI install occurred, but execute-only was requested.
\n
"
);
todo_wine
{
ok
(
r
==
ERROR_SUCCESS
,
"Expected ERROR_SUCCESS, got %u
\n
"
,
r
);
ok
(
delete_pf
(
"msitest
\\
augustus"
,
TRUE
),
"File not installed
\n
"
);
ok
(
delete_pf
(
"msitest
\\
caesar"
,
TRUE
),
"File not installed
\n
"
);
}
delete_pf
(
"msitest"
,
FALSE
);
delete_cab_files
();
DeleteFile
(
msifile
);
}
START_TEST
(
install
)
{
DWORD
len
;
...
...
@@ -1087,6 +1144,7 @@ START_TEST(install)
test_caborder
();
test_mixedmedia
();
test_samesequence
();
test_uiLevelFlags
();
SetCurrentDirectoryA
(
prev_path
);
}
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