Windows Installer Editor Reference
242
Organizing Your Installation Into Releases
Example: Spanning an Installation Across Media and Sharing Media
Size Information
You can span an installation across CDs and use the Share media destinations/size
info with previous media entry option. Assume the following:
z
The files for your application use 1.5 GB of uncompressed disk space.
z
You want to distribute the application on two CDs.
z
For each of the two CDs, you can safely assume a maximum size of 550 MB, which
means that you need to compress some, but not all of your files.
z
Your application includes some features that are always installed on the destination
computer. These are the files you compress.
z
The application also includes some features that the end user can either install or
run from the CD-ROM. These are the files you don’t compress.
This scenario means that you need to create two media items:
z
One media item for those features and components that are always installed,
compressed into one big .CAB file.
z
A second media item for those files that can be run from the CD and that you
therefore don’t compress.
To create media items with shared size information
The following steps are for the first media item.
1. Select Installation Expert > Media page.
2. Click Add at the right of the Media page. The Media Details dialog box appears.
3. Complete the dialog box.
Media Name
Enter a name for the first media item. Example: Compressed Files.
Compression Option
Select Compress files into external Cab files.
Cab Options
Select One Cab (including modules).
Max Media Size
Enter 550 MB.
Cluster Size
Select 2048 Bytes.
4. In the Media Destinations section, click Add. The Media Destination Details dialog
box appears.
5. Make the following entries for the first CD:
Destination Directory
C:\My Installation\CD 1
This assumes that you have a directory named My Installation on your C drive.
Volume Label
CD One