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
3bf32f27
Commit
3bf32f27
authored
Jun 26, 2007
by
James Hawkins
Committed by
Alexandre Julliard
Jun 27, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msi: Any value of WindowsInstaller besides 0 means the product is installed.
parent
7da89f48
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
9 deletions
+11
-9
msi.c
dlls/msi/msi.c
+3
-9
msi.c
dlls/msi/tests/msi.c
+8
-0
No files found.
dlls/msi/msi.c
View file @
3bf32f27
...
@@ -799,17 +799,11 @@ INSTALLSTATE WINAPI MsiQueryProductStateW(LPCWSTR szProduct)
...
@@ -799,17 +799,11 @@ INSTALLSTATE WINAPI MsiQueryProductStateW(LPCWSTR szProduct)
if
(
rc
!=
ERROR_SUCCESS
)
if
(
rc
!=
ERROR_SUCCESS
)
goto
end
;
goto
end
;
switch
(
state
)
if
(
state
)
{
case
1
:
/* default */
state
=
INSTALLSTATE_DEFAULT
;
state
=
INSTALLSTATE_DEFAULT
;
break
;
else
default:
FIXME
(
"Unknown install state read from registry (%i)
\n
"
,
state
);
state
=
INSTALLSTATE_UNKNOWN
;
state
=
INSTALLSTATE_UNKNOWN
;
break
;
}
end:
end:
RegCloseKey
(
props
);
RegCloseKey
(
props
);
RegCloseKey
(
hkey
);
RegCloseKey
(
hkey
);
...
...
dlls/msi/tests/msi.c
View file @
3bf32f27
...
@@ -427,6 +427,14 @@ static void test_MsiQueryProductState(void)
...
@@ -427,6 +427,14 @@ static void test_MsiQueryProductState(void)
state
=
MsiQueryProductStateA
(
prodcode
);
state
=
MsiQueryProductStateA
(
prodcode
);
ok
(
state
==
INSTALLSTATE_DEFAULT
,
"Expected INSTALLSTATE_DEFAULT, got %d
\n
"
,
state
);
ok
(
state
==
INSTALLSTATE_DEFAULT
,
"Expected INSTALLSTATE_DEFAULT, got %d
\n
"
,
state
);
data
=
2
;
res
=
RegSetValueExA
(
props
,
"WindowsInstaller"
,
0
,
REG_DWORD
,
(
const
BYTE
*
)
&
data
,
sizeof
(
DWORD
));
ok
(
res
==
ERROR_SUCCESS
,
"Expected ERROR_SUCCESS, got %d
\n
"
,
res
);
/* WindowsInstaller value is not 1 */
state
=
MsiQueryProductStateA
(
prodcode
);
ok
(
state
==
INSTALLSTATE_DEFAULT
,
"Expected INSTALLSTATE_DEFAULT, got %d
\n
"
,
state
);
RegDeleteKeyA
(
userkey
,
""
);
RegDeleteKeyA
(
userkey
,
""
);
/* user product key does not exist */
/* user product key does not exist */
...
...
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