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
c90c781a
Commit
c90c781a
authored
Jul 09, 2004
by
Mike McCormack
Committed by
Alexandre Julliard
Jul 09, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Implement MsiVerifyPackage, cosmetic fixes.
parent
b7408909
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
40 additions
and
18 deletions
+40
-18
action.c
dlls/msi/action.c
+11
-11
cond.y
dlls/msi/cond.y
+0
-2
msi.c
dlls/msi/msi.c
+28
-4
package.c
dlls/msi/package.c
+1
-1
No files found.
dlls/msi/action.c
View file @
c90c781a
...
...
@@ -3026,7 +3026,7 @@ static UINT ACTION_InstallInitialize(MSIPACKAGE *package)
}
/*
*
components FeatureState defaults to FALSE. t
he idea is we want to
*
Components FeatureState defaults to FALSE. T
he idea is we want to
* enable the component is ANY feature that uses it is enabled to install
*/
for
(
i
=
0
;
i
<
package
->
loaded_features
;
i
++
)
...
...
@@ -3053,7 +3053,7 @@ static UINT ACTION_InstallInitialize(MSIPACKAGE *package)
if
(
override
!=
NULL
)
HeapFree
(
GetProcessHeap
(),
0
,
override
);
/*
*
s
o basically we ONLY want to install a component if its Enabled AND
*
S
o basically we ONLY want to install a component if its Enabled AND
* FeatureState are both TRUE
*/
return
ERROR_SUCCESS
;
...
...
@@ -3306,10 +3306,10 @@ end:
static
UINT
ACTION_RegisterTypeLibraries
(
MSIPACKAGE
*
package
)
{
/*
*
ok this is a bit confusting.. I am given a _Component key and i
believe
*
OK this is a bit confusing.. I am given a _Component key and I
believe
* that the file that is being registered as a type library is the "key file
* of that component" which
i interper
t to mean "The file in the KeyPath of
* that component"
* of that component" which
I interpre
t to mean "The file in the KeyPath of
* that component"
.
*/
UINT
rc
;
MSIQUERY
*
view
;
...
...
@@ -3391,8 +3391,8 @@ static UINT ACTION_RegisterTypeLibraries(MSIPACKAGE *package)
debugstr_w
(
package
->
files
[
index
].
TargetPath
));
else
{
/*
yes the row has more fields than i
need, but #1 is
correct and the only one
i need. why make a new row
*/
/*
Yes the row has more fields than I
need, but #1 is
correct and the only one
I need. Why make a new row?
*/
ui_actiondata
(
package
,
szRegisterTypeLibraries
,
row
);
...
...
@@ -3536,8 +3536,8 @@ static UINT register_appid(MSIPACKAGE *package, LPCWSTR clsid, LPCWSTR app )
static
UINT
ACTION_RegisterClassInfo
(
MSIPACKAGE
*
package
)
{
/*
* Again I am assuming the words, "Whose key file re
sp
esents" when refering
* to a Component as to mean
the
Components KeyPath file
* Again I am assuming the words, "Whose key file re
pr
esents" when refering
* to a Component as to mean
ing that
Components KeyPath file
*
* Also there is a very strong connection between ClassInfo and ProgID
* that I am mostly glossing over.
...
...
@@ -3814,12 +3814,12 @@ static UINT register_progid(MSIPACKAGE *package, MSIRECORD * row, LPWSTR clsid)
static
UINT
ACTION_RegisterProgIdInfo
(
MSIPACKAGE
*
package
)
{
/*
* Sigh, here
i am just brute force registering all progid
* Sigh, here
I am just brute force registering all progids
* this needs to be linked to the Classes that have been registerd
* but the easiest way to do that is to load all these stuff into
* memory for easy checking.
*
*
gives me something to continue to work toward
*
Gives me something to continue to work toward.
*/
UINT
rc
;
MSIQUERY
*
view
;
...
...
dlls/msi/cond.y
View file @
c90c781a
...
...
@@ -57,8 +57,6 @@ struct cond_str {
static
LPWSTR
COND_GetString
(
struct
cond_str
*
str
);
static
int
COND_lex
(
void
*
COND_lval
,
COND_input
*
info
);
UINT
get_property
(
MSIHANDLE
hPackage
,
const
WCHAR
*
prop
,
WCHAR
*
value
,
DWORD
*
size
);
typedef
INT
(*
comp_int
)(
INT
a
,
INT
b
);
typedef
INT
(*
comp_str
)(
LPWSTR
a
,
LPWSTR
b
,
BOOL
caseless
);
...
...
dlls/msi/msi.c
View file @
c90c781a
...
...
@@ -1180,14 +1180,38 @@ UINT WINAPI MsiGetProductPropertyW( MSIHANDLE hProduct, LPCWSTR szProperty,
UINT
WINAPI
MsiVerifyPackageA
(
LPCSTR
szPackage
)
{
FIXME
(
"%s
\n
"
,
debugstr_a
(
szPackage
)
);
return
ERROR_CALL_NOT_IMPLEMENTED
;
UINT
r
,
len
;
LPWSTR
szPack
=
NULL
;
TRACE
(
"%s
\n
"
,
debugstr_a
(
szPackage
)
);
if
(
szPackage
)
{
len
=
MultiByteToWideChar
(
CP_ACP
,
0
,
szPackage
,
-
1
,
NULL
,
0
);
szPack
=
HeapAlloc
(
GetProcessHeap
(),
0
,
len
*
sizeof
(
WCHAR
)
);
if
(
!
szPack
)
return
ERROR_OUTOFMEMORY
;
MultiByteToWideChar
(
CP_ACP
,
0
,
szPackage
,
-
1
,
szPack
,
len
);
}
r
=
MsiVerifyPackageW
(
szPack
);
HeapFree
(
GetProcessHeap
(),
0
,
szPack
);
return
r
;
}
UINT
WINAPI
MsiVerifyPackageW
(
LPCWSTR
szPackage
)
{
FIXME
(
"%s
\n
"
,
debugstr_w
(
szPackage
)
);
return
ERROR_CALL_NOT_IMPLEMENTED
;
MSIHANDLE
handle
;
UINT
r
;
TRACE
(
"%s
\n
"
,
debugstr_w
(
szPackage
)
);
r
=
MsiOpenDatabaseW
(
szPackage
,
MSIDBOPEN_READONLY
,
&
handle
);
MsiCloseHandle
(
handle
);
return
r
;
}
INSTALLSTATE
WINAPI
MsiGetComponentPathA
(
LPCSTR
szProduct
,
LPCSTR
szComponent
,
...
...
dlls/msi/package.c
View file @
c90c781a
...
...
@@ -254,7 +254,7 @@ static VOID set_installer_properties(MSIPACKAGE *package)
'D'
,
'e'
,
's'
,
'k'
,
't'
,
'o'
,
'p'
,
'\\'
,
0
};
/*
* Other things
i
notice set
* Other things
I
notice set
*
ScreenY
ScreenX
...
...
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