Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
e534e772
Commit
e534e772
authored
Jan 04, 2006
by
Mike McCormack
Committed by
Alexandre Julliard
Jan 04, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msi: Apply any MSI transforms specified by the TRANSFORMS property.
parent
40a76a58
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
28 additions
and
1 deletion
+28
-1
action.c
dlls/msi/action.c
+25
-0
msipriv.h
dlls/msi/msipriv.h
+2
-0
msiquery.c
dlls/msi/msiquery.c
+1
-1
No files found.
dlls/msi/action.c
View file @
e534e772
...
...
@@ -569,6 +569,30 @@ static UINT msi_apply_patches( MSIPACKAGE *package )
return
r
;
}
static
UINT
msi_apply_transforms
(
MSIPACKAGE
*
package
)
{
static
const
WCHAR
szTransforms
[]
=
{
'T'
,
'R'
,
'A'
,
'N'
,
'S'
,
'F'
,
'O'
,
'R'
,
'M'
,
'S'
,
0
};
LPWSTR
xform_list
,
*
xforms
;
UINT
i
,
r
=
ERROR_SUCCESS
;
xform_list
=
msi_dup_property
(
package
,
szTransforms
);
xforms
=
msi_split_string
(
xform_list
,
';'
);
for
(
i
=
0
;
xforms
&&
xforms
[
i
]
&&
r
==
ERROR_SUCCESS
;
i
++
)
{
if
(
xforms
[
i
][
0
]
==
':'
)
r
=
msi_apply_substorage_transform
(
package
,
package
->
db
,
&
xforms
[
i
][
1
]
);
else
r
=
MSI_DatabaseApplyTransformW
(
package
->
db
,
xforms
[
i
],
0
);
}
msi_free
(
xforms
);
msi_free
(
xform_list
);
return
r
;
}
/****************************************************
* TOP level entry points
*****************************************************/
...
...
@@ -618,6 +642,7 @@ UINT MSI_InstallPackage( MSIPACKAGE *package, LPCWSTR szPackagePath,
msi_parse_command_line
(
package
,
szCommandLine
);
msi_apply_transforms
(
package
);
msi_apply_patches
(
package
);
if
(
msi_get_property_int
(
package
,
szUILevel
,
0
)
>=
INSTALLUILEVEL_REDUCED
)
...
...
dlls/msi/msipriv.h
View file @
e534e772
...
...
@@ -317,6 +317,8 @@ extern UINT read_raw_stream_data( MSIDATABASE*, LPCWSTR stname,
/* transform functions */
extern
UINT
msi_table_apply_transform
(
MSIDATABASE
*
db
,
IStorage
*
stg
);
extern
UINT
MSI_DatabaseApplyTransformW
(
MSIDATABASE
*
db
,
LPCWSTR
szTransformFile
,
int
iErrorCond
);
/* action internals */
extern
UINT
MSI_InstallPackage
(
MSIPACKAGE
*
,
LPCWSTR
,
LPCWSTR
);
...
...
dlls/msi/msiquery.c
View file @
e534e772
...
...
@@ -647,7 +647,7 @@ MSIHANDLE WINAPI MsiGetLastErrorRecord( void )
DEFINE_GUID
(
CLSID_MsiTransform
,
0x000c1082
,
0x0000
,
0x0000
,
0xc0
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x46
);
static
UINT
MSI_DatabaseApplyTransformW
(
MSIDATABASE
*
db
,
UINT
MSI_DatabaseApplyTransformW
(
MSIDATABASE
*
db
,
LPCWSTR
szTransformFile
,
int
iErrorCond
)
{
UINT
r
;
...
...
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