SED File format

The Self Extraction Directive (SED) file controls the options used when building an installation (INF-based setup) package.

Most of these can be discovered by trial and error, run iexpress.exe, select a few items in the wizard and then view the resulting SED file.

[ Version ]

[ Options ]
ExtractOnly=0/1                            ; 1 = execute nothing after extraction. If missing will create only a cab file.
ShowInstallProgramWindow=0/1/2/3           ; How the window for installation program will look
                                           ; 0-default , 1- hidden ,2-minimized ,3-maximized
HideExtractAnimation=1/0                   ;                                 
RebootMode=0/1/2 or A/I/N/S                ; 0 = Do not reboot machine afer installation, 1 = force a restart, 2 = restart if needed.
ShowRebootUI=1/0                           ; 1 = prompt user for restart, 2 = restart without prompt
CAB_FixedSize=0                            ;
CAB_ResvCodeSigning=6144                   ;
PackageInstallSpace(KB)=xxxx               ;
InsideCompressed=1                         ;   
CompressionType=[ MSZIP | LZX | QUANTUM ]  ;
Quantum=7                                  ;
KeepCabinet=1/0                            ;
SourceFiles="SampleApp"                    ;
Strings="Strings"                          ; The section in which additional info will be stored/
InstallPrompt=%InstallPrompt%              ; Prompt message before the extraction (with yes/no button). Actual value is in [Strings] section
DisplayLicense=%DisplayLicense%            ; Location to a file containing license message.. Actual value is in [Strings] section
AppLaunched=%AppLaunched%                  ; The Application that will be launched after the extraction
AppLaunched="#Setup"                       ; A setup file with post-extraction commands.

PostInstallCmd="SomeCommand.exe"           ; A command to run after the installer.
AdminQuietInstCmd="SomeCommand.exe"        ; A command that will be executed with admin privileges?
UserQuietInstCmd="SomeCommand.exe"         ; A command that will be executed without admin permissions?
PackagePurpose=Purpose                     ; CreateCAB or InstallApp
IEXP_LayoutINF=infFile                     ; Link to the .inf file that will be used by makecab, when PackagePurpose=CreateCAB

EndMessage=%FinishMessage%                 ; Post installation message (with OK button). Actual value is in [Strings] section
TargetName=%TargetName%                    ; The name of the .exe that will be created
FriendlyName=%FriendlyName%                ; String that will be used as a title in installation windows
AppLaunched2=%AppLaunched2%                ;
UseLongFileName=1                          ; Store files with long filenames inside the package. Only Win95 requires short names.

; in Build 306:
CheckAdminRights=1/0                       ; Specify whether the install will require admin rights (1) or not (0)
AdminQuietInstCmd=string                   ; When running Iexpress /Q switch specify the command to use for the internal .EXE.
UserQuietInstCmd=string                    ;

[ SampleApp ]
Source1=Source.prog   ;Path to source files. UNC or C:\

[ Source.dat ]
%File1%   ;Can be localizable strings or exact file names

[ Source.prog ]

[ Setup ] (Optional)

[ Strings ]      ;(Mainly used by localizers)
InstallPrompt="Do you wish to install this Sample App?"
FinishMessage="Thank you installing Sample App"
FriendlyName="Microsoft Cool App"

If the %AppLaunched% property is set to run a batch file (.BAT or .CMD) it will fail with the following error: "Error creating process /c ... " Reason: The system cannot find the file specified.

A workaround is to use "cmd.exe /c example.cmd"

If the source files are in a path that contains spaces the IEXPRESS will throw an error.

“He can compress the most words into the smallest ideas of any man I ever met” ~ Abraham Lincoln (attr.)


IEXPRESS - Create a self extracting ZIP file archive

Copyright © 1999-2019
Some rights reserved