In the documentation is mentioned the possibility to create a self-extracting archive:
copy /b extract.exe+self1.cab self.exe ; self.exe is self-extracting
But extract is no more available nor in Vista neither in Win7.But after few tests I succeeded to create a self-extracting exe with extrac32.exe .extrac32.exe is an UI application and does not print any help but when executed with an .CAB file as a parameter it will extract it (may be with makecab generated inf file it will be possible to do more things?).
and here's a pretty pretty simple script that creates an self-extracting file:
Code: Select all
@echo off
if "%~2" equ "" (
echo creates self-extracting exe
echo USAGE: %~n0 target destination
)
makecab "%~f1" "%temp%\%~n1.cab"
copy /b "%windir%\system32\extrac32.exe"+"%temp%\%~n1.cab" "%~dpn2.exe"
del /q /f "%temp%\%~n1.cab"
EDIT:
extrac32 is not an UI app. to get the help use more --> http_://researchbin.blogspot.com/2012/05/making-and-extracting-cab-files-in.html