Principle. I found a packaging program on the Internet Make_exe (from Phpnow) can put the. 7z+ Package of file interface information into an EXE run package, and automatically run the self-extracting 7z compressed package of batch files. Make_exe.zip bag contains make_exe.cmd, phpserver.sfx,phpserver.sfx.cf three files. See this, we should have a train of thought. First, press Phpserver into phpserver.7z file and configure it. Modify the PHPServer.sfx.cf file, and then run Make_exe.cmd on it.
First: Make_exe.cmd code
Copy Content to Clipboard
Code:
Set v=1.2
copy/b/y Phpserver.sfx + PHPServer.sfx.cf + *.* Phpserver%v%.exe | | Pause
It's clear! "Set v=1.2" is a version, and then requires three files, packaged.
PHPSERVER.SFX.CF code, open method, drag directly to TXT on the line
Copy Content to Clipboard
Code:
;! @Install @! utf-8!
Title= "Real Estate Information management system V1.2"
beginprompt= "# Real Estate Information Management System V1.2 installation package #nn * Verify that you are not running any other 80 port-consuming services such as IIS. n * If you have other similar kits installed, please stop or uninstall first. n * Please do not move the installation directory as soon as the installation is complete. NN author: Xilo qq:110026985 homepage http://www.xilo.cn. "
Extractdialogtext= "Please, unzip the file later ..."
Extracttitle= "is decompressing ..."
extractpathtext= "Please select the decompression path (English characters only):"
Extractcanceltext= "Cancel"
Cancelprompt= "Do you really want to quit?"
Guiflags= "4+8+32+64+256+2048"
Installpath= "D:\PHPServer"
runprogram= "Cmd/c setup.cmd"
;! @InstallEnd @!
I do not believe that I have explained what I want to show to change anything. Note that this sentence installpath= "D:\PHPServer" for the installation directory, and decompression after the operation runprogram= "cmd/c setup.cmd" This bat, that is, the command to start apache,mysql services. Here is the order of Phpserver's setup.cmd. Because too many simple stick a few words!
Setup.cmd Code:
code:
REM-http://www.xilo.cn
REM-by Xilo (qq:110026985)
setlocal enableextensions
Call Pnconfig.cmd
prompt-$g
Title initialization Phpserver%pnver%-Apache + PHP + MySQL
echo ____________________ ________________________________________
echo ^| & nbsp ^|
echo ^| ###### is installing the real Estate Information Management System Environment Kit ###### ^|
echo ^|____________________________________________________________^|
Echo.
: Copy
echo _____________________________