Among the VB projects currently doing, there is a very interesting requirement: the document that requires the release is a separate executable file, in other words: Do not install the package, do not expect customers to instigate what special environment. Very natural, I thought of making a self-extracting EXE with Winzip or WinRAR.
Because everything is automating, I naturally think about this. OK, study WinRAR's command line, and find that everything is very simple:
First create a new SFXOption file, name is called: sfxoptions.txt, the content is as follows:
When the setup = file name 'is decompressed, run this file tempMode' to extract in the temporary directory Silent = 2 'uses quiet mode
Then write a file for builddeliverpackage.bat:
"C: / Program files / winrar / winrar.exe" a -sfxdefault.sfx -zsfxoptions.txt output name file 1 file 2 file 3 ....
OK. You can get the desired SFX package that runs this BAT.