I'm having trouble creating my first self-extracting installer using IExpress.exe.
HelloWorld.bat:
echo Hello
pause
HelloWorld.SED:
[Version]
Class=IEXPRESS
SEDVersion=3
[Options]
PackagePurpose=InstallApp
ShowInstallProgramWindow=0
HideExtractAnimation=0
UseLongFileName=1
InsideCompressed=0
CAB_FixedSize=0
CAB_ResvCodeSigning=0
RebootMode=N
InstallPrompt=%InstallPrompt%
DisplayLicense=%DisplayLicense%
FinishMessage=%FinishMessage%
TargetName=%TargetName%
FriendlyName=%FriendlyName%
AppLaunched=%AppLaunched%
PostInstallCmd=%PostInstallCmd%
AdminQuietInstCmd=%AdminQuietInstCmd%
UserQuietInstCmd=%UserQuietInstCmd%
SourceFiles=SourceFiles
[Strings]
InstallPrompt=
DisplayLicense=
FinishMessage=
TargetName=C:\Users\lbarnes\Documents\InstallerTest\HelloWorld.EXE
FriendlyName=HelloWorld
AppLaunched=Hello.bat
PostInstallCmd=<None>
AdminQuietInstCmd=
UserQuietInstCmd=
FILE0="Hello.bat"
[SourceFiles]
SourceFiles0=C:\Users\lbarnes\Documents\InstallerTest\
[SourceFiles0]
%FILE0%=
But when I use IExpress.exe
IExpress.exe /N HelloWorld.SED
HelloWorld.EXE
I get a pop-up window with this message
Error creating process Command /c C:\Users\lbarnes\AppData\Local\Temp\IXP000.TMP\Hello.bat
Reason: The system cannot find the file specified.
That file is present as verified using
dir C:\Users\lbarnes\AppData\Local\Temp\IXP000.TMP\Hello.bat
What am I doing wrong?
Add cmd /c hello.bat in the Install Program dropdown. It automatically pick only the batch file, you need to change the AppLaunched parameter as the above.