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
9432d65b
Commit
9432d65b
authored
May 30, 2011
by
Hans Leidekker
Committed by
Alexandre Julliard
May 30, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
appwiz.cpl: Don't list system components.
parent
4c49cf85
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
3 deletions
+11
-3
appwiz.c
dlls/appwiz.cpl/appwiz.c
+11
-3
No files found.
dlls/appwiz.cpl/appwiz.c
View file @
9432d65b
...
...
@@ -100,6 +100,7 @@ static const WCHAR CommentsW[] = {'C','o','m','m','e','n','t','s',0};
static
const
WCHAR
UninstallCommandlineW
[]
=
{
'U'
,
'n'
,
'i'
,
'n'
,
's'
,
't'
,
'a'
,
'l'
,
'l'
,
'S'
,
't'
,
'r'
,
'i'
,
'n'
,
'g'
,
0
};
static
const
WCHAR
WindowsInstallerW
[]
=
{
'W'
,
'i'
,
'n'
,
'd'
,
'o'
,
'w'
,
's'
,
'I'
,
'n'
,
's'
,
't'
,
'a'
,
'l'
,
'l'
,
'e'
,
'r'
,
0
};
static
const
WCHAR
SystemComponentW
[]
=
{
'S'
,
'y'
,
's'
,
't'
,
'e'
,
'm'
,
'C'
,
'o'
,
'm'
,
'p'
,
'o'
,
'n'
,
'e'
,
'n'
,
't'
,
0
};
static
const
WCHAR
PathUninstallW
[]
=
{
'S'
,
'o'
,
'f'
,
't'
,
'w'
,
'a'
,
'r'
,
'e'
,
'\\'
,
...
...
@@ -153,7 +154,7 @@ static BOOL ReadApplicationsFromRegistry(HKEY root)
HKEY
hkeyApp
;
int
i
,
id
=
0
;
DWORD
sizeOfSubKeyName
,
displen
,
uninstlen
;
DWORD
dwNoModify
,
dwType
,
value
;
DWORD
dwNoModify
,
dwType
,
value
,
size
;
WCHAR
subKeyName
[
256
];
WCHAR
*
command
;
APPINFO
*
info
=
NULL
;
...
...
@@ -165,12 +166,19 @@ static BOOL ReadApplicationsFromRegistry(HKEY root)
NULL
,
NULL
,
NULL
)
!=
ERROR_NO_MORE_ITEMS
;
++
i
)
{
RegOpenKeyExW
(
root
,
subKeyName
,
0
,
KEY_READ
,
&
hkeyApp
);
size
=
sizeof
(
value
);
if
(
!
RegQueryValueExW
(
hkeyApp
,
SystemComponentW
,
NULL
,
&
dwType
,
(
LPBYTE
)
&
value
,
&
size
)
&&
dwType
==
REG_DWORD
&&
value
==
1
)
{
RegCloseKey
(
hkeyApp
);
sizeOfSubKeyName
=
sizeof
(
subKeyName
)
/
sizeof
(
subKeyName
[
0
]);
continue
;
}
displen
=
0
;
uninstlen
=
0
;
if
(
!
RegQueryValueExW
(
hkeyApp
,
DisplayNameW
,
0
,
0
,
NULL
,
&
displen
))
{
DWORD
size
=
sizeof
(
value
);
size
=
sizeof
(
value
);
if
(
!
RegQueryValueExW
(
hkeyApp
,
WindowsInstallerW
,
NULL
,
&
dwType
,
(
LPBYTE
)
&
value
,
&
size
)
&&
dwType
==
REG_DWORD
&&
value
==
1
)
{
...
...
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