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
7bf2a1b2
Commit
7bf2a1b2
authored
Sep 26, 2018
by
Hans Leidekker
Committed by
Alexandre Julliard
Sep 26, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msi: Allow recursive changes to the target folder path.
Signed-off-by:
Hans Leidekker
<
hans@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
6a3e79b0
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
23 deletions
+11
-23
action.c
dlls/msi/action.c
+3
-7
msi.c
dlls/msi/tests/msi.c
+8
-16
No files found.
dlls/msi/action.c
View file @
7bf2a1b2
...
...
@@ -2394,15 +2394,11 @@ void msi_resolve_target_folder( MSIPACKAGE *package, const WCHAR *name, BOOL loa
else
path
=
msi_build_directory_name
(
2
,
folder
->
TargetDefault
,
NULL
);
}
normalized_path
=
msi_normalize_path
(
path
);
msi_free
(
path
);
if
(
folder
->
ResolvedTarget
&&
!
strcmpiW
(
normalized_path
,
folder
->
ResolvedTarget
))
{
TRACE
(
"%s already resolved to %s
\n
"
,
debugstr_w
(
name
),
debugstr_w
(
folder
->
ResolvedTarget
));
msi_free
(
normalized_path
);
return
;
}
msi_set_property
(
package
->
db
,
folder
->
Directory
,
normalized_path
,
-
1
);
msi_free
(
path
);
msi_free
(
folder
->
ResolvedTarget
);
folder
->
ResolvedTarget
=
normalized_path
;
...
...
dlls/msi/tests/msi.c
View file @
7bf2a1b2
...
...
@@ -336,16 +336,18 @@ static const char spf_custom_action_dat[] =
"Action
\t
Type
\t
Source
\t
Target
\t
ISComments
\n
"
"s72
\t
i2
\t
S64
\t
S0
\t
S255
\n
"
"CustomAction
\t
Action
\n
"
"SetFolderProp
\t
51
\t
MSITESTDIR
\t
[ProgramFilesFolder]
\\
msitest
\\
added
\t\n
"
;
"SetFolderProp
\t
51
\t
MSITESTDIR
\t
[ProgramFilesFolder]
\\
msitest
\\
added
\t\n
"
"SetFolderProp2
\t
51
\t
MSITESTDIR
\t
[ProgramFilesFolder]
\\
msitest
\\
added
\\
added2
\t\n
"
;
static
const
char
spf_install_exec_seq_dat
[]
=
"Action
\t
Condition
\t
Sequence
\n
"
"s72
\t
S255
\t
I2
\n
"
"InstallExecuteSequence
\t
Action
\n
"
"CostFinalize
\t\t
1000
\n
"
"CostInitialize
\t\t
800
\n
"
"FileCost
\t\t
900
\n
"
"SetFolderProp
\t\t
950
\n
"
"SetFolderProp2
\t\t
960
\n
"
"CostFinalize
\t\t
1000
\n
"
"InstallFiles
\t\t
4000
\n
"
"InstallServices
\t\t
5000
\n
"
"InstallFinalize
\t\t
6600
\n
"
...
...
@@ -14095,7 +14097,6 @@ static void test_setpropertyfolder(void)
{
UINT
r
;
CHAR
path
[
MAX_PATH
];
DWORD
attr
;
if
(
is_process_limited
())
{
...
...
@@ -14120,19 +14121,10 @@ static void test_setpropertyfolder(void)
goto
error
;
}
ok
(
r
==
ERROR_SUCCESS
,
"Expected ERROR_SUCCESS, got %u
\n
"
,
r
);
attr
=
GetFileAttributesA
(
path
);
if
(
attr
!=
INVALID_FILE_ATTRIBUTES
&&
(
attr
&
FILE_ATTRIBUTE_DIRECTORY
))
{
ok
(
delete_pf
(
"msitest
\\
added
\\
maximus"
,
TRUE
),
"File not installed
\n
"
);
ok
(
delete_pf
(
"msitest
\\
added"
,
FALSE
),
"Directory not created
\n
"
);
ok
(
delete_pf
(
"msitest"
,
FALSE
),
"Directory not created
\n
"
);
}
else
{
trace
(
"changing folder property not supported
\n
"
);
ok
(
delete_pf
(
"msitest
\\
maximus"
,
TRUE
),
"File not installed
\n
"
);
ok
(
delete_pf
(
"msitest"
,
FALSE
),
"Directory not created
\n
"
);
}
ok
(
delete_pf
(
"msitest
\\
added
\\
added2
\\
maximus"
,
TRUE
),
"File not installed
\n
"
);
ok
(
delete_pf
(
"msitest
\\
added
\\
added2"
,
FALSE
),
"Directory not created
\n
"
);
ok
(
delete_pf
(
"msitest
\\
added"
,
FALSE
),
"Directory not created
\n
"
);
ok
(
delete_pf
(
"msitest"
,
FALSE
),
"Directory not created
\n
"
);
error:
DeleteFileA
(
msifile
);
...
...
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