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
ca71e5af
Commit
ca71e5af
authored
Oct 30, 2008
by
James Hawkins
Committed by
Alexandre Julliard
Oct 30, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msi: Allow private properties from the AdminProperties property list.
parent
39a7d404
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
13 additions
and
7 deletions
+13
-7
action.c
dlls/msi/action.c
+7
-3
msipriv.h
dlls/msi/msipriv.h
+2
-1
package.c
dlls/msi/package.c
+1
-1
install.c
dlls/msi/tests/install.c
+3
-2
No files found.
dlls/msi/action.c
View file @
ca71e5af
...
...
@@ -288,7 +288,8 @@ static void ui_actioninfo(MSIPACKAGE *package, LPCWSTR action, BOOL start,
msiobj_release
(
&
row
->
hdr
);
}
UINT
msi_parse_command_line
(
MSIPACKAGE
*
package
,
LPCWSTR
szCommandLine
)
UINT
msi_parse_command_line
(
MSIPACKAGE
*
package
,
LPCWSTR
szCommandLine
,
BOOL
preserve_case
)
{
LPCWSTR
ptr
,
ptr2
;
BOOL
quote
;
...
...
@@ -323,7 +324,10 @@ UINT msi_parse_command_line( MSIPACKAGE *package, LPCWSTR szCommandLine )
prop
=
msi_alloc
((
len
+
1
)
*
sizeof
(
WCHAR
));
memcpy
(
prop
,
ptr
,
len
*
sizeof
(
WCHAR
));
prop
[
len
]
=
0
;
struprW
(
prop
);
if
(
!
preserve_case
)
struprW
(
prop
);
ptr2
++
;
len
=
0
;
...
...
@@ -728,7 +732,7 @@ UINT MSI_InstallPackage( MSIPACKAGE *package, LPCWSTR szPackagePath,
msi_set_sourcedir_props
(
package
,
FALSE
);
}
msi_parse_command_line
(
package
,
szCommandLine
);
msi_parse_command_line
(
package
,
szCommandLine
,
FALSE
);
msi_apply_transforms
(
package
);
msi_apply_patches
(
package
);
...
...
dlls/msi/msipriv.h
View file @
ca71e5af
...
...
@@ -683,7 +683,8 @@ extern UINT ACTION_DialogBox( MSIPACKAGE*, LPCWSTR);
extern
UINT
ACTION_ForceReboot
(
MSIPACKAGE
*
package
);
extern
UINT
MSI_Sequence
(
MSIPACKAGE
*
package
,
LPCWSTR
szTable
,
INT
iSequenceMode
);
extern
UINT
MSI_SetFeatureStates
(
MSIPACKAGE
*
package
);
extern
UINT
msi_parse_command_line
(
MSIPACKAGE
*
package
,
LPCWSTR
szCommandLine
);
extern
UINT
msi_parse_command_line
(
MSIPACKAGE
*
package
,
LPCWSTR
szCommandLine
,
BOOL
preserve_case
);
/* record internals */
extern
UINT
MSI_RecordSetIStream
(
MSIRECORD
*
,
UINT
,
IStream
*
);
...
...
dlls/msi/package.c
View file @
ca71e5af
...
...
@@ -754,7 +754,7 @@ static UINT msi_load_admin_properties(MSIPACKAGE *package)
if
(
r
!=
ERROR_SUCCESS
)
return
r
;
r
=
msi_parse_command_line
(
package
,
(
WCHAR
*
)
data
);
r
=
msi_parse_command_line
(
package
,
(
WCHAR
*
)
data
,
TRUE
);
msi_free
(
data
);
return
r
;
...
...
dlls/msi/tests/install.c
View file @
ca71e5af
...
...
@@ -504,7 +504,7 @@ static const CHAR adm_admin_exec_seq_dat[] = "Action\tCondition\tSequence\n"
static
const
CHAR
amp_component_dat
[]
=
"Component
\t
ComponentId
\t
Directory_
\t
Attributes
\t
Condition
\t
KeyPath
\n
"
"s72
\t
S38
\t
s72
\t
i2
\t
S255
\t
S72
\n
"
"Component
\t
Component
\n
"
"augustus
\t\t
MSITESTDIR
\t
0
\t
MYPROP=2718
\t
augustus
\n
"
;
"augustus
\t\t
MSITESTDIR
\t
0
\t
MYPROP=2718
and MyProp=42
\t
augustus
\n
"
;
static
const
CHAR
rem_component_dat
[]
=
"Component
\t
ComponentId
\t
Directory_
\t
Attributes
\t
Condition
\t
KeyPath
\n
"
"s72
\t
S38
\t
s72
\t
i2
\t
S255
\t
S72
\n
"
...
...
@@ -4240,7 +4240,8 @@ static void set_admin_property_stream(LPCSTR file)
/* AdminProperties */
static
const
WCHAR
stmname
[]
=
{
0x41ca
,
0x4330
,
0x3e71
,
0x44b5
,
0x4233
,
0x45f5
,
0x422c
,
0x4836
,
0
};
static
const
WCHAR
data
[]
=
{
'M'
,
'Y'
,
'P'
,
'R'
,
'O'
,
'P'
,
'='
,
'2'
,
'7'
,
'1'
,
'8'
,
0
};
static
const
WCHAR
data
[]
=
{
'M'
,
'Y'
,
'P'
,
'R'
,
'O'
,
'P'
,
'='
,
'2'
,
'7'
,
'1'
,
'8'
,
' '
,
'M'
,
'y'
,
'P'
,
'r'
,
'o'
,
'p'
,
'='
,
'4'
,
'2'
,
0
};
MultiByteToWideChar
(
CP_ACP
,
0
,
file
,
-
1
,
fileW
,
MAX_PATH
);
...
...
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