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
1a0b23cd
Commit
1a0b23cd
authored
Nov 05, 2007
by
James Hawkins
Committed by
Alexandre Julliard
Nov 05, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msi: Implement the CCPSearch standard action.
parent
1c1cf269
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
49 additions
and
6 deletions
+49
-6
action.c
dlls/msi/action.c
+0
-6
appsearch.c
dlls/msi/appsearch.c
+48
-0
msipriv.h
dlls/msi/msipriv.h
+1
-0
No files found.
dlls/msi/action.c
View file @
1a0b23cd
...
@@ -5424,12 +5424,6 @@ static UINT ACTION_UnregisterFonts( MSIPACKAGE *package )
...
@@ -5424,12 +5424,6 @@ static UINT ACTION_UnregisterFonts( MSIPACKAGE *package )
return
msi_unimplemented_action_stub
(
package
,
"UnregisterFonts"
,
table
);
return
msi_unimplemented_action_stub
(
package
,
"UnregisterFonts"
,
table
);
}
}
static
UINT
ACTION_CCPSearch
(
MSIPACKAGE
*
package
)
{
static
const
WCHAR
table
[]
=
{
'C'
,
'C'
,
'P'
,
'S'
,
'e'
,
'a'
,
'r'
,
'c'
,
'h'
,
0
};
return
msi_unimplemented_action_stub
(
package
,
"CCPSearch"
,
table
);
}
static
UINT
ACTION_RMCCPSearch
(
MSIPACKAGE
*
package
)
static
UINT
ACTION_RMCCPSearch
(
MSIPACKAGE
*
package
)
{
{
static
const
WCHAR
table
[]
=
{
'C'
,
'C'
,
'P'
,
'S'
,
'e'
,
'a'
,
'r'
,
'c'
,
'h'
,
0
};
static
const
WCHAR
table
[]
=
{
'C'
,
'C'
,
'P'
,
'S'
,
'e'
,
'a'
,
'r'
,
'c'
,
'h'
,
0
};
...
...
dlls/msi/appsearch.c
View file @
1a0b23cd
...
@@ -893,3 +893,51 @@ UINT ACTION_AppSearch(MSIPACKAGE *package)
...
@@ -893,3 +893,51 @@ UINT ACTION_AppSearch(MSIPACKAGE *package)
return
r
;
return
r
;
}
}
static
UINT
ITERATE_CCPSearch
(
MSIRECORD
*
row
,
LPVOID
param
)
{
MSIPACKAGE
*
package
=
param
;
LPCWSTR
signature
;
LPWSTR
value
=
NULL
;
MSISIGNATURE
sig
;
UINT
r
=
ERROR_SUCCESS
;
static
const
WCHAR
success
[]
=
{
'C'
,
'C'
,
'P'
,
'_'
,
'S'
,
'u'
,
'c'
,
'c'
,
'e'
,
's'
,
's'
,
0
};
static
const
WCHAR
one
[]
=
{
'1'
,
0
};
signature
=
MSI_RecordGetString
(
row
,
1
);
TRACE
(
"%s
\n
"
,
debugstr_w
(
signature
));
ACTION_AppSearchSigName
(
package
,
signature
,
&
sig
,
&
value
);
if
(
value
)
{
TRACE
(
"Found signature %s
\n
"
,
debugstr_w
(
signature
));
MSI_SetPropertyW
(
package
,
success
,
one
);
msi_free
(
value
);
r
=
ERROR_NO_MORE_ITEMS
;
}
ACTION_FreeSignature
(
&
sig
);
return
r
;
}
UINT
ACTION_CCPSearch
(
MSIPACKAGE
*
package
)
{
static
const
WCHAR
query
[]
=
{
's'
,
'e'
,
'l'
,
'e'
,
'c'
,
't'
,
' '
,
'*'
,
' '
,
'f'
,
'r'
,
'o'
,
'm'
,
' '
,
'C'
,
'C'
,
'P'
,
'S'
,
'e'
,
'a'
,
'r'
,
'c'
,
'h'
,
0
};
MSIQUERY
*
view
=
NULL
;
UINT
r
;
r
=
MSI_OpenQuery
(
package
->
db
,
&
view
,
query
);
if
(
r
!=
ERROR_SUCCESS
)
return
ERROR_SUCCESS
;
r
=
MSI_IterateRecords
(
view
,
NULL
,
ITERATE_CCPSearch
,
package
);
msiobj_release
(
&
view
->
hdr
);
return
r
;
}
dlls/msi/msipriv.h
View file @
1a0b23cd
...
@@ -829,6 +829,7 @@ static inline void msi_component_set_state( MSICOMPONENT *comp, INSTALLSTATE sta
...
@@ -829,6 +829,7 @@ static inline void msi_component_set_state( MSICOMPONENT *comp, INSTALLSTATE sta
/* actions in other modules */
/* actions in other modules */
extern
UINT
ACTION_AppSearch
(
MSIPACKAGE
*
package
);
extern
UINT
ACTION_AppSearch
(
MSIPACKAGE
*
package
);
extern
UINT
ACTION_CCPSearch
(
MSIPACKAGE
*
package
);
extern
UINT
ACTION_FindRelatedProducts
(
MSIPACKAGE
*
package
);
extern
UINT
ACTION_FindRelatedProducts
(
MSIPACKAGE
*
package
);
extern
UINT
ACTION_InstallFiles
(
MSIPACKAGE
*
package
);
extern
UINT
ACTION_InstallFiles
(
MSIPACKAGE
*
package
);
extern
UINT
ACTION_RemoveFiles
(
MSIPACKAGE
*
package
);
extern
UINT
ACTION_RemoveFiles
(
MSIPACKAGE
*
package
);
...
...
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