January 29, 2010

Windows Installer 4.5 Support - InstallShield 2010 SP1

This post focuses on modifying the installer for Windows Installer (MSI) 4.5 Support for Basic MSI and InstallShield MSI Projects.

 Steps:
  • Open the existing InstallShield project in InstallShield 2010 SP1 IDE.
  • Modify the  Schema under General Information - Summary Information Stream to specify the minimum Windows Installer version that is required for your Installation package. Say 405 to support Windows Installer 4.5
  • If the selected minimun Windows Installer version is not available on the target system, then the installer will prompt a message and abort the installation.
  • Also, you can select the Windows Installer 4.5 pre-requisite for the supported operating system from Application Data - Redistributable.
    For Pre-requisite integration, you can choose either of the following 3 options based on various factors
Extract From Setup.exe - The pre-requisites will be bundled with the installer. This is applicable if the Installation Package size is not a constraint / if you want to distribute the installation package as a single compressed file.
Copy From Source Media - The pre-requisite will be stored in a folder 'ISSetupPrerequisites' parallel to the installer.
Download from the Web - At the time of installation, the pre-requisite will be downloaded on the fly from the web and installed. Internet connection is required during installation.
  • If you have not downloaded the pre-requisites already to your installer development machine, right click the Pre-req and click "Dowload the selected Item".
Refer here for dependency errors and solution related to Windows Installer 4.5 Integration.

January 13, 2010

Did you get these MSI 4.5 PreReq Integration Errors in InstallShield 2010 SP1

This post focuses on the compilation error's, - 1007 and 5054, when the pre-requisites that has other dependency is include for the installer. This article is validated against InstallShield 2010 SP1

For a requirement to support Windows Installer 4.5, for both Windows XP SP3 and Windows Server 2003 SP2 Operating System, the following Pre-Requisites were selected from Application Data -> Reditributables.
  • Windows Installer 4.5 Update for Windows Server 2003 SP2 and later (x86)
  • Windows Installer 4.5 Update for Windows XP SP3 and later (x86)
and during compilation (either from IDE or Stand Alone Builder), the following error messages were displayed.
  1. ISDEV : error -1007: Cannot copy source '<ISPRODUCT>\SetupPrerequisites\Windows Installer\4.5\x86\Pre-Vista\WindowsServer2003-KB942288-v4-x86.exe' to target '<ISPROJECT>\Product Configuration 1\Release\DiskImages\DISK1\ISSetupPrerequisites\{a0f7f2eb-ed14-4351-a30e-ef802db4b38f}\WindowsServer2003-KB942288-v4-x86.exe'
  2. ISDEV : error -5054: Could not determine the size of the file "<ISPROJECT>\Product Configuration 1\Release 1\DiskImages\DISK1\ISSetupPrerequisites\{a0f7f2eb-ed14-4351-a30e-ef802db4b38f}\WindowsServer2003-KB942288-v4-x86.exe"
  3. ISDEV : error -1007: Cannot copy source '<ISPRODUCT>\SetupPrerequisites\Windows Installer\4.5\x86\Pre-Vista\WindowsXP-KB942288-v3-x86.exe' to target '<ISPROJECT>\Product Configuration 1\Release 1\DiskImages\DISK1\ISSetupPrerequisites\{22aa129a-8e5d-45ae-a3e4-d110703ef141}\WindowsXP-KB942288-v3-x86.exe'
  4. ISDEV : error -5054: Could not determine the size of the file "<ISPROJECT>\Product Configuration 1\Release 1\DiskImages\DISK1\ISSetupPrerequisites\{22aa129a-8e5d-45ae-a3e4-d110703ef141}\WindowsXP-KB942288-v3-x86.exe"
 The reason for the error is, the two selected pre-requisites has dependency on the other pre-requisites -
Windows Installer 4.5 Update for Windows Server 2003 SP1 and later (x86)
Windows Installer 4.5 Update for Windows XP SP2 and later (x86)
Selecting these pre-requisites did help to go past the errors.

Hint :- For the compilation -1007 & -5054, open the selected pre-requisite in edit mode to view the dependencies, if any, then include the dependency file too.