3

I am starting to use PHP desktop to create a desktop application and it works great, just want to know if there's any settings to change the main windows icon, i know to change the pop-up windows icon can be change on settings.json, but i cannot find any settings to change the main windows.

enter image description here

Note: im using Inno Compiler to distribute my application, but the compiler only change the set-up icon not the main application.

KaoriYui
  • 912
  • 1
  • 13
  • 43
  • I'm not familiar with PHP Desktop, but you can try replacing the icon.ico file with your own. – D. R. May 16 '17 at 00:04
  • Well if you look at the respiratory of PHP desktop on github there's no .ico file inside. i updated my question including using inno compiler software to distribute my application. – KaoriYui May 16 '17 at 00:08
  • 1
    [Yes, there is](https://github.com/cztomczak/phpdesktop/blob/master/phpdesktop-chrome/icon.ico) – D. R. May 16 '17 at 00:12
  • Thanks for pointing that out D.R but i am using the package with a PHP 5.6 version inside. – KaoriYui May 16 '17 at 00:18
  • 1
    Ok so after looking i found that the package with PHP 5.4 has a main window icon settings, so i copied the settings to PHP 5.6 and successfully changed it. – KaoriYui May 16 '17 at 00:26

2 Answers2

12

I had the same problem, the solution is provided by the creator -

If you would like to change the icon that is embedded in the executable file then do the following steps:

Download Resource Hacker and run it. From the "File" menu select open, navigate and choose "phpdesktop-msie.exe" (or "phpdesktop-chrome.exe").

On the left side there should be a tree control, expand "/Icon Group/128/1033", right click on the "1033", select "Replace Resource..." and replace that resource with your icon.

That's it, save it and see the changes by running the executable file. When you change icon embedded in the executable file you do not need to set it anymore in the settings file.

Vinayak
  • 151
  • 1
  • 7
3

php desktop add icon

Put .ico image inside your folder and edit setting.json file like below

"main_window": {
    "title": "----",
    "icon": "ico.ico",
     ----},
mufazmi
  • 1,103
  • 4
  • 18
  • 37