PHP packaged into EXE

Source: Internet
Author: User
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   _____________________________
<

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.