487
edits
(New page: {{Nav PHP WinBinder}} '''''Windows Project 2''''' The Bat To Exe Converter from Fatih Kodak is a very solid utility that offers more than its name implies. One neat feature is its ability...) |
(Proofreading and grammatical changes; some minor reformatting) |
||
Line 2: | Line 2: | ||
'''''Windows Project 2''''' | '''''Windows Project 2''''' | ||
The | The Bat2Exe Converter from Fatih Kodak is a very solid utility that offers more than its name implies. One neat feature is its ability to compress and add extra files to the .exe created. | ||
This combined | This combined with WinBinder’s flexibility allows you to produce a Windows application coded in PHP without the need for compiling. An entire windows project can be distributed and run as a single (exe) file. | ||
== Project configuration == | == Project configuration == | ||
For quickness I will use [[PHP WinBinder: Tab Control | example 4]] as a template for the new application. | For quickness I will use [[PHP WinBinder: Tab Control | example 4]] as a template for the new application. | ||
In order to package files into a single exe requires the file structure be flat. In this respect WinBinder places no restrictions | In order to package files into a single .exe requires the file structure be flat. In this respect, WinBinder places no restrictions. Just copy the files to a single folder and change paths accordingly. This step-by-step guides explains how. | ||
I have assumed you installed the plugin to Uniform Server's plugin folder. | I have assumed you installed the plugin to Uniform Server's plugin folder. | ||
Line 68: | Line 68: | ||
== Test == | == Test == | ||
Check the configuration works by running test_4.bat | Check that the configuration works by running test_4.bat | ||
You now have a working project template | You now have a working project template. Use this to develop your application. | ||
'''''[[#top | Top]]''''' | '''''[[#top | Top]]''''' | ||
== New batch file == | == New batch file == | ||
After completing your application create a new batch file named '''test_5.bat''' (or any name you like) with the following content: | After completing your application create a new batch file named '''test_5.bat''' (or any name you like) with the following content: | ||
Line 79: | Line 78: | ||
php.exe -c php-wb.ini test_4.phpw | php.exe -c php-wb.ini test_4.phpw | ||
</pre> | </pre> | ||
When run will automatically close the command window after application is closed. | When run, it will automatically close the command window after application is closed. | ||
'''''[[#top | Top]]''''' | '''''[[#top | Top]]''''' | ||
== Create a single EXE file == | == Create a single EXE file == | ||
The following step-by-step guide explains how to package all required files into a single executable. | The following step-by-step guide explains how to package all required files into a single executable. | ||
Line 114: | Line 112: | ||
* '''G)''' Select '''include''' tab | * '''G)''' Select '''include''' tab | ||
* '''H)''' Click '''Add''' button. With the exception of the two batch files select all files in folder C:\'''project2'''. | * '''H)''' Click '''Add''' button. With the exception of the two batch files, select all files in folder C:\'''project2'''. | ||
'''''Note'':''' Depending on your application there may be resource files, include scripts and images these all | '''''Note'':''' Depending on your application there may be resource files, include scripts and images these all need to be included. | ||
| | | | ||
[[Image:Bat2exe_4.gif]] | [[Image:Bat2exe_4.gif]] | ||
|-valign="top" | |-valign="top" | ||
| | | | ||
'''''Note'':''' Steps I) and J) are optional only required if using an icon for the exe file. | '''''Note'':''' Steps I) and J) are optional and only required if using an icon for the .exe file. | ||
Line 148: | Line 146: | ||
'''''Note 2'':''' | '''''Note 2'':''' | ||
Project folder size is 7.58 MB and executable compresses to 2.59 MB | Project folder size is 7.58 MB and executable compresses to 2.59 MB. This is reasonable for an un-compiled windows application. | ||
| | | | ||
[[Image:Bat2exe_5.gif]] | [[Image:Bat2exe_5.gif]] | ||
Line 156: | Line 154: | ||
== Summary == | == Summary == | ||
I have shown how to use this plugin independently of Uniform Server. It allows you | I have shown how to use this plugin independently of Uniform Server. It allows you to create Windows applications that are coded in PHP without the need for any compiling. | ||
With this plugin installed to UniServer’s plugins folder it allows you to tap into 5-Nano’s control core. | With this plugin installed to UniServer’s plugins folder it allows you to tap into 5-Nano’s control core. The advantage of this is that you can create a Windows application to provide an alternative control interface. | ||
More importantly you can tailor an application to meet your specific requirements. | More importantly you can tailor an application to meet your specific requirements. | ||
Line 164: | Line 162: | ||
UniController from UniServer 4-Mona series remains a popular control interface and makes an ideal vehicle for explaining programming techniques involved in producing an alternative controller. | UniController from UniServer 4-Mona series remains a popular control interface and makes an ideal vehicle for explaining programming techniques involved in producing an alternative controller. | ||
The remaining part of this tutorial covers UniController for the 5-Nano series. See [[PHP WinBinder: Alternative control 1 | '''next page''']] for an introduction. | |||
'''''[[#top | Top]]''''' | '''''[[#top | Top]]''''' |