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
0eed829f
Commit
0eed829f
authored
Jul 21, 2014
by
Akihiro Sagawa
Committed by
Alexandre Julliard
Jul 21, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msi/tests: Add CLSID registry tests for mixed package.
parent
5b76cd19
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
71 additions
and
1 deletion
+71
-1
install.c
dlls/msi/tests/install.c
+71
-1
No files found.
dlls/msi/tests/install.c
View file @
0eed829f
...
...
@@ -1088,7 +1088,11 @@ static const char mixed_registry_dat[] =
"s72
\t
i2
\t
l255
\t
L255
\t
L0
\t
s72
\n
"
"Registry
\t
Registry
\n
"
"regdata1
\t
2
\t
SOFTWARE
\\
Wine
\\
msitest
\t
test1
\t\t
comp1
\n
"
"regdata2
\t
2
\t
SOFTWARE
\\
Wine
\\
msitest
\t
test2
\t\t
comp2
\n
"
;
"regdata2
\t
2
\t
SOFTWARE
\\
Wine
\\
msitest
\t
test2
\t\t
comp2
\n
"
"regdata3
\t
0
\t
CLSID
\\
{8dfef911-6885-41eb-b280-8f0304728e8b}
\t\t
CLSID_Winetest32
\t
comp1
\n
"
"regdata4
\t
0
\t
CLSID
\\
{8dfef911-6885-41eb-b280-8f0304728e8b}
\\
InProcServer32
\t\t
winetest32.dll
\t
comp1
\n
"
"regdata5
\t
0
\t
CLSID
\\
{8dfef911-6885-41eb-b280-8f0304728e8b}
\t\t
CLSID_Winetest64
\t
comp2
\n
"
"regdata6
\t
0
\t
CLSID
\\
{8dfef911-6885-41eb-b280-8f0304728e8b}
\\
InProcServer32
\t\t
winetest64.dll
\t
comp2
\n
"
;
static
const
char
mixed_install_exec_seq_dat
[]
=
"Action
\t
Condition
\t
Sequence
\n
"
...
...
@@ -5678,6 +5682,8 @@ static void test_mixed_package(void)
UINT
r
;
LONG
res
;
HKEY
hkey
;
char
value
[
MAX_PATH
];
DWORD
size
;
if
(
is_process_limited
())
{
...
...
@@ -5716,6 +5722,28 @@ static void test_mixed_package(void)
ok
(
!
res
,
"expected RegQueryValueEx to succeed, got %d
\n
"
,
res
);
RegCloseKey
(
hkey
);
res
=
RegOpenKeyExA
(
HKEY_CLASSES_ROOT
,
"CLSID
\\
{8dfef911-6885-41eb-b280-8f0304728e8b}
\\
InProcServer32"
,
0
,
KEY_ALL_ACCESS
|
KEY_WOW64_32KEY
,
&
hkey
);
todo_wine
ok
(
res
==
ERROR_SUCCESS
,
"can't open 32-bit CLSID key, got %d
\n
"
,
res
);
if
(
res
==
ERROR_SUCCESS
)
{
size
=
sizeof
(
value
);
res
=
RegQueryValueExA
(
hkey
,
""
,
NULL
,
NULL
,
(
LPBYTE
)
value
,
&
size
);
ok
(
!
strcmp
(
value
,
"winetest32.dll"
),
"got %s
\n
"
,
value
);
RegCloseKey
(
hkey
);
}
res
=
RegOpenKeyExA
(
HKEY_CLASSES_ROOT
,
"CLSID
\\
{8dfef911-6885-41eb-b280-8f0304728e8b}
\\
InProcServer32"
,
0
,
KEY_ALL_ACCESS
|
KEY_WOW64_64KEY
,
&
hkey
);
ok
(
res
==
ERROR_SUCCESS
,
"can't open 64-bit CLSID key, got %d
\n
"
,
res
);
if
(
res
==
ERROR_SUCCESS
)
{
size
=
sizeof
(
value
);
res
=
RegQueryValueExA
(
hkey
,
""
,
NULL
,
NULL
,
(
LPBYTE
)
value
,
&
size
);
ok
(
!
strcmp
(
value
,
"winetest64.dll"
),
"got %s
\n
"
,
value
);
RegCloseKey
(
hkey
);
}
r
=
MsiInstallProductA
(
msifile
,
"REMOVE=ALL"
);
ok
(
r
==
ERROR_SUCCESS
,
"Expected ERROR_SUCCESS, got %u
\n
"
,
r
);
...
...
@@ -5725,6 +5753,16 @@ static void test_mixed_package(void)
res
=
RegOpenKeyExA
(
HKEY_LOCAL_MACHINE
,
"Software
\\
Wine
\\
msitest"
,
0
,
KEY_ALL_ACCESS
|
KEY_WOW64_64KEY
,
&
hkey
);
ok
(
res
==
ERROR_FILE_NOT_FOUND
,
"64-bit component key not removed
\n
"
);
res
=
RegOpenKeyExA
(
HKEY_CLASSES_ROOT
,
"CLSID
\\
{8dfef911-6885-41eb-b280-8f0304728e8b}"
,
0
,
KEY_ALL_ACCESS
|
KEY_WOW64_32KEY
,
&
hkey
);
ok
(
res
==
ERROR_FILE_NOT_FOUND
,
"32-bit CLSID key not removed
\n
"
);
res
=
RegOpenKeyExA
(
HKEY_CLASSES_ROOT
,
"CLSID
\\
{8dfef911-6885-41eb-b280-8f0304728e8b}"
,
0
,
KEY_ALL_ACCESS
|
KEY_WOW64_64KEY
,
&
hkey
);
ok
(
res
==
ERROR_FILE_NOT_FOUND
,
"64-bit CLSID key not removed
\n
"
);
DeleteFileA
(
msifile
);
create_database_template
(
msifile
,
mixed_tables
,
sizeof
(
mixed_tables
)
/
sizeof
(
msi_table
),
200
,
"Intel;1033"
);
...
...
@@ -5747,6 +5785,28 @@ static void test_mixed_package(void)
ok
(
!
res
,
"expected RegQueryValueEx to succeed, got %d
\n
"
,
res
);
RegCloseKey
(
hkey
);
res
=
RegOpenKeyExA
(
HKEY_CLASSES_ROOT
,
"CLSID
\\
{8dfef911-6885-41eb-b280-8f0304728e8b}
\\
InProcServer32"
,
0
,
KEY_ALL_ACCESS
|
KEY_WOW64_32KEY
,
&
hkey
);
todo_wine
ok
(
res
==
ERROR_SUCCESS
,
"can't open 32-bit CLSID key, got %d
\n
"
,
res
);
if
(
res
==
ERROR_SUCCESS
)
{
size
=
sizeof
(
value
);
res
=
RegQueryValueExA
(
hkey
,
""
,
NULL
,
NULL
,
(
LPBYTE
)
value
,
&
size
);
ok
(
!
strcmp
(
value
,
"winetest32.dll"
),
"got %s
\n
"
,
value
);
RegCloseKey
(
hkey
);
}
res
=
RegOpenKeyExA
(
HKEY_CLASSES_ROOT
,
"CLSID
\\
{8dfef911-6885-41eb-b280-8f0304728e8b}
\\
InProcServer32"
,
0
,
KEY_ALL_ACCESS
|
KEY_WOW64_64KEY
,
&
hkey
);
ok
(
res
==
ERROR_SUCCESS
,
"can't open 64-bit CLSID key, got %d
\n
"
,
res
);
if
(
res
==
ERROR_SUCCESS
)
{
size
=
sizeof
(
value
);
res
=
RegQueryValueExA
(
hkey
,
""
,
NULL
,
NULL
,
(
LPBYTE
)
value
,
&
size
);
ok
(
!
strcmp
(
value
,
"winetest64.dll"
),
"got %s
\n
"
,
value
);
RegCloseKey
(
hkey
);
}
r
=
MsiInstallProductA
(
msifile
,
"REMOVE=ALL"
);
ok
(
r
==
ERROR_SUCCESS
,
"Expected ERROR_SUCCESS, got %u
\n
"
,
r
);
...
...
@@ -5756,6 +5816,16 @@ static void test_mixed_package(void)
res
=
RegOpenKeyExA
(
HKEY_LOCAL_MACHINE
,
"Software
\\
Wine
\\
msitest"
,
0
,
KEY_ALL_ACCESS
|
KEY_WOW64_64KEY
,
&
hkey
);
ok
(
res
==
ERROR_FILE_NOT_FOUND
,
"64-bit component key not removed
\n
"
);
res
=
RegOpenKeyExA
(
HKEY_CLASSES_ROOT
,
"CLSID
\\
{8dfef911-6885-41eb-b280-8f0304728e8b}"
,
0
,
KEY_ALL_ACCESS
|
KEY_WOW64_32KEY
,
&
hkey
);
ok
(
res
==
ERROR_FILE_NOT_FOUND
,
"32-bit CLSID key not removed
\n
"
);
res
=
RegOpenKeyExA
(
HKEY_CLASSES_ROOT
,
"CLSID
\\
{8dfef911-6885-41eb-b280-8f0304728e8b}"
,
0
,
KEY_ALL_ACCESS
|
KEY_WOW64_64KEY
,
&
hkey
);
ok
(
res
==
ERROR_FILE_NOT_FOUND
,
"64-bit CLSID key not removed
\n
"
);
error:
DeleteFileA
(
msifile
);
}
...
...
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