MAKEMSI quickly and reliably creates MSI files in a non-programmatic way
Have your say! Join the MAKEMSI discussion list or view archive! Suggest improvements. No question too simple or too complex.
[Bottom][Contents][Prev]: InstallShield Version 6.00.000[Next]: Repackaging an InstallShield MSI based EXE
Have your say! Join the MAKEMSI discussion list or view archive! Suggest improvements. No question too simple or too complex.
\->Building or Updating MSIs->Repackaging - Converting an EXE to MSI->Wrap Existing Installers->InstallShield->InstallShield Version 7.00

InstallShield Version 7.00

EXAMPLE

;----------------------------------------------------------------------------
;--- "SETUP-I.ISS" points here! ---------------------------------------------
;----------------------------------------------------------------------------
<$DirectoryTree Key="PRODUCTDIR" Dir="c:\Program Files\WrappedProducGoesHere">


;----------------------------------------------------------------------------
;--- Install the CD-IMAGE here ----------------------------------------------
;----------------------------------------------------------------------------
<$DirectoryTree Key="INSTALLDIR" Dir="[PRODUCTDIR]\MsiSource (wrapper)" CHANGE="\">


;----------------------------------------------------------------------------
;--- Set up the response file created with "setup.exe /r" (created in "c:\winnt" dir) ---
;----------------------------------------------------------------------------
#(
    #define AddResponseFile
    <$File Source="{$ISS}" Destination="[INSTALLDIR]\{$ISS}" Comment=^Response file for {$FOR} (renamed "setup.iss" file). Generated by manual {$FOR} of product using "setup.exe /r".^>
    <$SourceFile FileName="{$ISS}" HTML="Y">
#)
<$AddResponseFile ISS="setup-I.iss"  FOR="installation">
<$AddResponseFile ISS="setup-UI.iss" FOR="uninstallation">


;----------------------------------------------------------------------------
;--- Install InstallShield based Installer ----------------------------------
;----------------------------------------------------------------------------
#(
    <$WrapInstall
        ;--- Where is the CD Image? -----------------------------------------
        CdImage=".\CD-IMAGE"

        ;--- INSTALL --------------------------------------------------------
         EXE="[INSTALLDIR]setup.exe"
        Args='/s /f1"[INSTALLDIR]setup-I.iss" /f2"[INSTALLDIR]setup-I-<$ProductVersion>.log"'

        ;--- UNINSTALL ------------------------------------------------------
         UninstallExe="[INSTALLDIR]setup.exe"
        UninstallArgs='/s /f1"[INSTALLDIR]setup-UI.iss" /f2"[INSTALLDIR]setup-UI-<$ProductVersion>.log"'

        ;--- VALIDATION -----------------------------------------------------
        UninstallKey="{149511F11-4375-4557-5541-8F9217A15480}"
    >
#)


Microsoft awarded me an MVP (Most Valuable Professional award) in 2004, 2005, 2006 & 2007 for the Windows SDK (Windows Installer) area.This external link was OK when tested at 27 Dec 2008Please email me any feedback, additional information or corrections.
See this page online (look for updates)

[Top][Contents][Prev]: InstallShield Version 6.00.000[Next]: Repackaging an InstallShield MSI based EXE


MAKEMSI© is (C)opyright Dennis Bareis 2003-2008 (All rights reserved).
Saturday December 27 2008 at 3:15pm
Visit MAKEMSI's Home PageThis external link was OK when tested at 7 Dec 2008

HTML page dated Mon, 29 Jan 2007 00:11:11 GMT
Microsoft awarded me an MVP (Most Valuable Professional award) in 2004, 2005, 2006 & 2007 for the Windows SDK (Windows Installer) area.This external link was OK when tested at 27 Dec 2008