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, 2008 & 2009 for the Windows SDK (Windows Installer) area.Please 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).
Friday October 13 2017 at 2:08pm
Visit MAKEMSI's Home Page
Microsoft awarded me an MVP (Most Valuable Professional award) in 2004, 2005, 2006, 2007, 2008 & 2009 for the Windows SDK (Windows Installer) area.