InstallAware for Windows Installer
 

Web Media Block

This command is directive for the compiler, and is not constrained by conditional execution blocks. It has meaning only when used with Web builds and has no effect on Uncompressed or Compressed build types. However, at least one web media block must be defined before any build type may be compiled.

The Web Media Block command indicates that each installation command which installs files on the target system should place those files in the named source media block. Multiple media blocks may be defined and re-defined in any order. Each media block is effective until a subsequent media block is encountered.

Web Media Block Name

The name of the web media block. The web media block name must be a legal file name (long names may be used). When the installation is built, each file belonging to this media block will be placed inside an archive called <web media block name>.7zip.

Password

Specifying different passwords for each web media block increases the security of your setups, since when a password becomes compromised, other web media blocks are not affected (and, each web media block can use a password different from the global setup password).

This field has effect only when a compressed, encrypted build is being performed. If left empty, the default project password will be used to encrypt this web media block. If non-empty, the given password will be used to encrypt this web media block only, overriding the default project password.

Specifying a password when a non-encrypted build is being performed has no effect. Note that an encrypted build may be performed with an empty global password, in which case web media blocks are encrypted only if this field has been populated.

Download URLs

Specify the full list of HTTP download URLs where the media block can be downloaded from at install time. The file <web media block name>.7zip should be uploaded and available at the exact specified locations for immediate download. You may rename the web media block file. The full file name should be included as part of each URL specified in this field.

Enter one URL per line in this field. To facilitate failsafe download locations, you may enter multiple URLs, and you must provide at least one URL in this field. When a given URL fails, the installer will attempt to download the web media block from the next listed URL, until all available URLs have been exhausted, before raising a failure condition.

Skip on Build

If files in your media block have not changed since the last time you built this setup, check this box to skip rebuilding this media block. Since media blocks are highly compressed, generating them takes time. This will save you time when you are testing and rebuilding your setup, and the media block in question has not been effected.

 Notes

  • If you specify an empty string in the Web Media Block Name field, an OFFLINE CONTENT block will be defined instead. This block will not be converted into a downloadable web media block, but instead packaged with the main setup executable itself. Use this option to include files which you will always install in your main setup program.
  • Splice your entire setup into as many media blocks as required. You may use any combination and number of web and offline blocks to achieve your desired effect. We recommend you install your essential application files in an offline block, and place all of your runtime component updates and optional application features each in their own media blocks.
  • Wizard generated projects contain an offline block for Feature Independent files, a seperate web block for each defined application feature, and again a seperate web block for each component update to be installed.
  • The installer automatically saves downloaded web media blocks during installation. Interrupted downloads are automatically resumed, and data which is locally available is not re-downloaded. However, this saved data is deleted when the product is uninstalled, and unavailable for further archival or re-use after uninstallation. See the $COPYWEBLOCK$ pre-defined variable for information on saving downloaded web media blocks for further archival or re-use after uninstallation.
  • See the #SKIP_WEBLOCK_SIGN# compiler variable for information on disabling automatic code signing for web media blocks.