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
30577c25
Commit
30577c25
authored
Feb 03, 2007
by
James Hawkins
Committed by
Alexandre Julliard
Feb 05, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msi: Allow uncompressed files before compressed files in the same media.
parent
c0cb341a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
61 additions
and
1 deletion
+61
-1
files.c
dlls/msi/files.c
+6
-1
install.c
dlls/msi/tests/install.c
+55
-0
No files found.
dlls/msi/files.c
View file @
30577c25
...
...
@@ -64,6 +64,7 @@ struct media_info {
LPWSTR
cabinet
;
LPWSTR
volume_label
;
BOOL
is_continuous
;
BOOL
is_extracted
;
WCHAR
source
[
MAX_PATH
];
};
...
...
@@ -434,6 +435,9 @@ done:
msi_free
(
cabinet
);
msi_free
(
cab_path
);
if
(
ret
)
mi
->
is_extracted
=
TRUE
;
return
ret
;
}
...
...
@@ -715,7 +719,8 @@ UINT ACTION_InstallFiles(MSIPACKAGE *package)
if
(
file
->
state
!=
msifs_missing
&&
file
->
state
!=
msifs_overwrite
)
continue
;
if
(
file
->
Sequence
>
mi
->
last_sequence
||
mi
->
is_continuous
)
if
(
file
->
Sequence
>
mi
->
last_sequence
||
mi
->
is_continuous
||
(
file
->
IsCompressed
&&
!
mi
->
is_extracted
))
{
rc
=
ready_media
(
package
,
file
,
mi
);
if
(
rc
!=
ERROR_SUCCESS
)
...
...
dlls/msi/tests/install.c
View file @
30577c25
...
...
@@ -202,6 +202,18 @@ static const CHAR co2_media_dat[] = "DiskId\tLastSequence\tDiskPrompt\tCabinet\t
"2
\t
12
\t\t
test3.cab
\t
DISK3
\t\n
"
"3
\t
2
\t\t
test2.cab
\t
DISK2
\t\n
"
;
static
const
CHAR
mm_file_dat
[]
=
"File
\t
Component_
\t
FileName
\t
FileSize
\t
Version
\t
Language
\t
Attributes
\t
Sequence
\n
"
"s72
\t
s72
\t
l255
\t
i4
\t
S72
\t
S20
\t
I2
\t
i2
\n
"
"File
\t
File
\n
"
"maximus
\t
maximus
\t
maximus
\t
500
\t\t\t
512
\t
1
\n
"
"augustus
\t
augustus
\t
augustus
\t
500
\t\t\t
512
\t
2
\n
"
"caesar
\t
caesar
\t
caesar
\t
500
\t\t\t
16384
\t
3"
;
static
const
CHAR
mm_media_dat
[]
=
"DiskId
\t
LastSequence
\t
DiskPrompt
\t
Cabinet
\t
VolumeLabel
\t
Source
\n
"
"i2
\t
i4
\t
L64
\t
S255
\t
S32
\t
S72
\n
"
"Media
\t
DiskId
\n
"
"1
\t
3
\t\t
test1.cab
\t
DISK1
\t\n
"
;
typedef
struct
_msi_table
{
const
CHAR
*
filename
;
...
...
@@ -262,6 +274,18 @@ static const msi_table co2_tables[] =
ADD_TABLE
(
property
),
};
static
const
msi_table
mm_tables
[]
=
{
ADD_TABLE
(
cc_component
),
ADD_TABLE
(
directory
),
ADD_TABLE
(
cc_feature
),
ADD_TABLE
(
cc_feature_comp
),
ADD_TABLE
(
mm_file
),
ADD_TABLE
(
install_exec_seq
),
ADD_TABLE
(
mm_media
),
ADD_TABLE
(
property
),
};
/* cabinet definitions */
/* make the max size large so there is only one cab file */
...
...
@@ -967,6 +991,36 @@ static void test_caborder(void)
DeleteFile
(
msifile
);
}
static
void
test_mixedmedia
(
void
)
{
UINT
r
;
CreateDirectoryA
(
"msitest"
,
NULL
);
create_file
(
"msitest
\\
maximus"
,
500
);
create_file
(
"msitest
\\
augustus"
,
500
);
create_file
(
"caesar"
,
500
);
create_database
(
msifile
,
mm_tables
,
sizeof
(
mm_tables
)
/
sizeof
(
msi_table
));
MsiSetInternalUI
(
INSTALLUILEVEL_NONE
,
NULL
);
create_cab_file
(
"test1.cab"
,
MEDIA_SIZE
,
"caesar
\0
"
);
r
=
MsiInstallProductA
(
msifile
,
NULL
);
ok
(
r
==
ERROR_SUCCESS
,
"Expected ERROR_SUCCESS, got %u
\n
"
,
r
);
ok
(
delete_pf
(
"msitest
\\
augustus"
,
TRUE
),
"File not installed
\n
"
);
ok
(
delete_pf
(
"msitest
\\
caesar"
,
TRUE
),
"File not installed
\n
"
);
ok
(
delete_pf
(
"msitest
\\
maximus"
,
TRUE
),
"File not installed
\n
"
);
ok
(
delete_pf
(
"msitest"
,
FALSE
),
"File not installed
\n
"
);
DeleteFile
(
"maximus"
);
DeleteFile
(
"augustus"
);
DeleteFile
(
"caesar"
);
RemoveDirectory
(
"msitest"
);
DeleteFile
(
"test1.cab"
);
DeleteFile
(
msifile
);
}
START_TEST
(
install
)
{
DWORD
len
;
...
...
@@ -989,6 +1043,7 @@ START_TEST(install)
test_packagecoltypes
();
test_continuouscabs
();
test_caborder
();
test_mixedmedia
();
SetCurrentDirectoryA
(
prev_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