Ec (2); principle. On the Internet, I found a package program make_exe(?phpnow=which can pack the file interface information after .7z + into an EXE running package and automatically run the batch files in the 7z compressed package after self-decompression. Make_exe.zip contains three files: Make_exe.cmd, PHPServer. sfx, and PHPServer. sfx. cf. You should have thought about this. First, compress the PHPServer with script ec (2) and script
Principle. On the Internet, I found a package program make_exe(?phpnow=which can pack the file interface information after .7z + into an EXE running package and automatically run the batch files in the 7z compressed package after self-decompression. Make_exe.zip contains three files: Make_exe.cmd, PHPServer. sfx, and PHPServer. sfx. cf. You should have thought about this. First, compress PHPServer into the PHPServer.7z file and configure it. Modify the PHPServer. sfx. cf file and run Make_exe.cmd.
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
Very clear! "Set v = 1.2" is the version, and then three files are required for packaging.
PHPServer. sfx. cf code. Open the method and drag it directly to the TXT file.
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 * confirm that you have not run other services that occupy port 80, such as IIS. N * if you have other similar packages installed, stop or uninstall them first. After installing n *, do not move the installation directory. Nn Author: yuno QQ: 110026985 home page http://www.xilo.cn. "
ExtractDialogText = "Please wait and unzip the file ..."
ExtractTitle = "extracting ..."
ExtractPathText = "select the extract path (only English characters ):"
ExtractCancelText = "cancel"
CancelPrompt = "are you sure you want to exit? "
GUIFlags = "4 + 8 + 32 + 64 + 256 + 2048"
InstallPath = "D: \ PHPServer"
RunProgram = "cmd/c setup. cmd"
;! @ InstallEnd @!
I believe I will not explain this, but I will change it if I want to display it. Note that InstallPath = "D: \ PHPServer" is the installation directory, and RunProgram = "cmd/c setup is also run after decompression. cmd "this BAT, that is, the command to start apache and mysql services. The following is the setup. cmd command of PHPServer. Because there are too many simple comments!
Setup. cmd code:
Code:
@ Echo off
Rem -- http://www.xilo.cn
Rem -- By yuno (QQ: 110026985)
Setlocal enableextensions
Call Pnconfig. cmd
Prompt-$ g
Title initialize PHPserver % pnver %-Apache + PHP + MySQL
Echo ____________________________________________________________
Echo ^ |
Echo ^ | ###### installing haobo real estate information management system environment suite #######^ |
Echo ^ | ____________________________________________________________________ ^ |
Echo.
: Copy
Echo _____________________________<