win32ss / supermium

Chromium fork for Windows XP/2003 and up
https://win32subsystem.live/supermium/
BSD 3-Clause "New" or "Revised" License
2.46k stars 85 forks source link

Icon change portable verion #1016

Open upseron opened 1 week ago

upseron commented 1 week ago

Greetins how i can change browser icon in portable verion on windows xp?

XakerTwo commented 1 week ago

RH, Restorator and similar tools chrome.exe for exe icon chrome.dll for window icon and few other places

sometimes you may need to replace icon in profile directory %localAppData%\Supermium\User Data\Default\Google Profile.ico under win XP it should be %appData%\Supermium\User Data\Default\Google Profile.ico note that Default is profile directory and may differs, depends on your browser config

chrome-pak-customizer for .pak files (if you would deep customization)


btw, there is a Discussions, that IMO, more suitable for such kind of questions(however i'm rare guest there)

upseron commented 1 week ago

I need to change icon in panel with runing programs how exatly to do this in portable version? I use this soft https://www.4shared.com/rar/_8GJecDG/Portable_Exe_Icon_Changer-v47.html and also ResHacker or Restorator but still on the way. Need to change icon in portable version. https://sourceforge.net/projects/portableapps/files/Supermium%20Portable/SupermiumPortable_126.0.6478.249_R3.paf.exe/download

XakerTwo commented 1 week ago

portable... ah look into ...\SupermiumPortable\App\AppInfo, probably you need appicon.ico another subject is ...\SupermiumPortable\SupermiumPortable.exe

upseron commented 1 week ago

I try but still nothing if you can do change icon to this https://easyupload.io/pzz68u or any other and send me fixed files in arhive

XakerTwo commented 1 week ago

okay, i tried it on WinXPx64. for whatever reason modifying of SupermiumPortable.exe broke it (app wouldn't start anymore). however, altering icon in chrome.exe and chrome.dll just works

so, i attach here two ico files

one is for chrome.exe and chrome.dll using RH or Restorator(i use v 2007) you should replace following icons(icon groups, not separate icons) \- `IDR_MAINFRAME` in `chrome.exe` (`...\SupermiumPortable\App\Supermium`) \- `101` in `chrome.dll` (`...\SupermiumPortable\App\Supermium\126.0.6478.249`) [chrome_ico_32only.ico](https://github.com/user-attachments/files/17802947/chrome_ico_32only.txt) (rename it from .txt to .ico)
other is for .lnk (Shortcut) file, that points to the SupermiumPortable.exe it's not necessary, just for consistency. also you may try patching `SupermiumPortable.exe` youself with RH cuz, probably, Restorator 2007 has some bugs(but it's most convenient for me) [appicon.ico](https://github.com/user-attachments/files/17802926/appicon.txt) (rename it from .txt to .ico)
extra for ...\SupermiumPortable\App\AppInfo, just for consistency `appicon.ico` can be replaces with .ico for .lnk file [appicon_x.zip](https://github.com/user-attachments/files/17802917/appicon_x.zip)
how it looks ![image](https://github.com/user-attachments/assets/fb506e56-8ba5-413f-be6c-c4befb8409f6)
Vangelis66 commented 1 week ago

for whatever reason modifying of SupermiumPortable.exe broke it (app wouldn't start anymore).

The portable launchers (PAF format) released by portableapps.com (John T. Haller) have a built-in feature that invalidates them upon modification; each launcher is shipped with a hard-coded string of its exact original file HASH and upon running the launcher an internal routine checks that current hash matches the original value; if not, further execution of the portable launcher code (and the app it's tied to) is terminated.

This measure is to ensure no-third-party (and even a mere user) can tamper with the launcher, for security reasons; if one wants to modify a portable PAF launcher, then its source code must be obtained (often it's NSIS), edited and then recompiled with the proper tools...

That is why for binary-editing a portable launcher (with Resource Hacker) I prefer to use the winPenPack X-Portable format :+1: ...

https://sourceforge.net/projects/portableapps/files/Supermium%20Portable/SupermiumPortable_126.0.6478.249_R3.paf.exe/download

126-r4 (but NOT r5) is already available:

https://sourceforge.net/projects/portableapps/files/Supermium%20Portable/SupermiumPortable_126.0.6478.254_R4.paf.exe/download

XakerTwo commented 1 week ago

The portable launchers ... by portableapps.com (John T. Haller) have a built-in feature that invalidates them upon modification

did not know that, thx for explanation

a portable PAF launcher ... source code ... often it's NSIS

btw yes - i had some guesses about this because saw traces of it inside .exe