无忧启动论坛

 找回密码
 注册
搜索
系统gho:最纯净好用系统下载站投放广告、加入VIP会员,请联系 微信:wuyouceo
查看: 703|回复: 17
打印 上一主题 下一主题

[讨论] 程序图标修改后遗症

[复制链接]
跳转到指定楼层
1#
发表于 7 天前 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
使用ResourceHacker修改替换了图标后程序就打不开了,请大佬们科普原因以及解决办法(我不懂编程见笑了)

测试的软件:
  1. https://www.123912.com/s/eweA-kpoKd
复制代码





2#
发表于 6 天前 | 只看该作者
本帖最后由 窄口牛 于 2025-7-13 08:18 编辑

一直没注意,它居然是auto3的。xp和2003打了onecoreapi,它就不能用了;64win2003打了api倒是没问题。
回复

使用道具 举报

3#
发表于 6 天前 | 只看该作者
这个程序加了一个upx壳,先脱壳之后再替换图标没有问题。

点评

谢谢解答 这对我来说太难了 不知道有没有傻瓜点的工具  详情 回复 发表于 6 天前
关于 Muires.exe,目前确实没有微软官方授权的第三方下载地址。该工具是 Windows SDK/WDK(Windows Driver Kit) 的内置组件,微软不提供独立分发版本。 请问哪里可单独下载 Muires.exe ?  详情 回复 发表于 6 天前
回复

使用道具 举报

4#
发表于 6 天前 | 只看该作者
YWFhYmJi 发表于 2025-7-13 08:06
这个程序加了一个upx壳,先脱壳之后再替换图标没有问题。

关于 Muires.exe,目前确实没有微软官方授权的第三方下载地址。该工具是 Windows SDK/WDK(Windows Driver Kit) 的内置组件,微软不提供独立分发版本。

请问哪里可单独下载 Muires.exe ?
回复

使用道具 举报

5#
发表于 6 天前 | 只看该作者
martin313 发表于 2025-7-13 10:19
关于 Muires.exe,目前确实没有微软官方授权的第三方下载地址。该工具是 Windows SDK/WDK(Windows Drive ...

SDK/WDK里的哪个组件?我装的SDK、WDK里都没有这个文件。
这个文件是干什么用的?

点评

可以自动化修改mui文件  详情 回复 发表于 6 天前
回复

使用道具 举报

6#
发表于 6 天前 | 只看该作者
来看看了
回复

使用道具 举报

7#
发表于 6 天前 | 只看该作者
YWFhYmJi 发表于 2025-7-13 10:51
SDK/WDK里的哪个组件?我装的SDK、WDK里都没有这个文件。
这个文件是干什么用的?


可以自动化修改mui文件
回复

使用道具 举报

8#
发表于 6 天前 | 只看该作者
本帖最后由 YWFhYmJi 于 2025-7-13 13:26 编辑
martin313 发表于 2025-7-13 12:20
可以自动化修改mui文件

修改mui文件用Resource Hacker就可以。这个程序网上找不到任何资料,你确定微软有过这个程序?不是AI瞎编的?

点评

Resource Hacker 不能自动化批处理 不知道有没有瞎编,应该不会的吧  详情 回复 发表于 6 天前
回复

使用道具 举报

9#
发表于 6 天前 | 只看该作者
YWFhYmJi 发表于 2025-7-13 13:24
修改mui文件用Resource Hacker就可以。这个程序网上找不到任何资料,你确定微软有过这个程序?不是AI瞎编 ...

Resource Hacker 不能自动化批处理

不知道有没有瞎编,应该不会的吧
回复

使用道具 举报

10#
发表于 6 天前 | 只看该作者
martin313 发表于 2025-7-13 14:15
Resource Hacker 不能自动化批处理

不知道有没有瞎编,应该不会的吧

可以的,命令行运行
  1. ResourceHacker.exe -help commandline
  2. ResourceHacker.exe -help script
复制代码

可以得到用法帮助。
  1. ====================================
  2. Resource Hacker Command Line Syntax:
  3. ====================================

  4. Command line instructions ...

  5. Switch     Parameter
  6. =========  ====================================================================
  7. -open    : filename - the name of the file that is to be modified ...
  8.            Windows PE file (*.exe, *.dll etc) or resouce file (*.res or *.rc)
  9. -save    : filename - the new name of the modified or newly created file ...
  10.            either a modified opened file or an extracted resource
  11. -resource: filename - contains a resource being added to the opened file.
  12. -action  : action to be performed on the opened file
  13.            add             - add a resource, fails if it already exists
  14.            addoverwrite - add a resource, overwrites if it already exists
  15.            addskip        - add a resource, skips if it already exists
  16.            compile        - compiles a text resource file (*.rc)
  17.            delete          - delete a resource
  18.            extract         - extract a resource
  19.            modify         - modify a resource
  20.            changelanguage(langID) - changes the language of ALL resources (nb: avoid any spaces)

  21. -mask    : resource mask - Type,Name,Language
  22.            commas are mandatory but each of type, name & language are optional
  23. -log     : filename or CONSOLE or NUL
  24.            CONSOLE: can be abbreviated to CON
  25.            logs details of the operation performed
  26.            switch is optional - if omited, defaults to resourcehacker.log
  27. -script  : filename - contains a multi-command script, NOT a resource script
  28.            for more info: -help script
  29.            other switches are ignored.
  30. -help    : options - commandline or script (always logged to CONSOLE)
  31.            other switches are ignored.
  32. =========  ====================================================================

  33. Notes:
  34. 1. Switch identifiers may be abbreviated down to a single char (eg -res or -r).
  35. 2. Switch instructions do not have to be in any particular order.
  36. 3. File names that contain spaces must be encased within double quotes.
  37. 4. The changelanguage action changes the language ID of ALL resources irrespective of any mask.


  38. Batch file Examples:
  39. ====================

  40. CommandlineInstructions.bat:
  41.   ResourceHacker.exe -help commandline
  42.   @pause  :: and let's see the console output before the CMD window closes :)

  43. Compile.bat:
  44.   ResourceHacker.exe -open resources.rc -save resources.res -action compile -log NUL

  45. AddIcon.bat:
  46.   ResourceHacker.exe -open ".\In\old.exe" -save ".\Out\new.exe" -action addskip -res ".\In\missing.ico" -mask ICONGROUP,MAINICON,

  47. ExtractIcon.bat:
  48.   ResourceHacker.exe -open source.exe -save savedicon.ico -action extract -mask ICONGROUP,MAINICON, -log CONSOLE
  49.   @pause

  50. ExtractAllIcons.bat:
  51.   ResourceHacker.exe -open source.exe -save savedicons.rc -action extract -mask ICONGROUP,, -log savedicons.log

  52. RunScript.bat:
  53.   ResourceHacker.exe -script myscript.txt

  54. ====================================
  55. Resource Hacker Script Syntax:
  56. ====================================

  57. ResourceHacker.exe -script filename

  58. A script file is a text file with the following layout:
  59. =======================================================

  60.   //comments are preceded by double slashes

  61.   [FILENAMES]
  62.   Open=
  63.   Save=
  64.   Log=

  65.   [COMMANDS]
  66.   //one or more of the following commands ...
  67.   -add          ResourceSrc, ResourceMask
  68.   -addskip      ResourceSrc, ResourceMask
  69.   -addoverwrite ResourceSrc, ResourceMask
  70.   -addoverwrite ResourceSrc, ResourceMask
  71.   -modify       ResourceSrc, ResourceMask
  72.   -extract      ResourceTgt, ResourceMask
  73.   -delete       ResourceMask
  74.   -changelanguage(langID)

  75. =======================================================

  76. Notes:

  77. Filenames that include spaces must be enclosed within double quotes.
  78. ResourceSrc and ResourceTgt represent filenames.
  79. The changelanguage() action changes the language ID of ALL resources


  80. ResourceMask:
  81.   Format - Type,Name,Language
  82.   Each of Type, Name & Language are optional but the 2 commas are mandatory.
  83.   'Type' may be either an integer or text but text should be encased within
  84.   double quotes to differentiate it from integer identifiers.
  85.   'Name' if defined may be either an integer or text.
  86.   'Language' if defined must be an integer.
  87.   Predefined Resource Type identifiers are listed here:
  88.   [https://]msdn.microsoft.com/en-us/library/windows/desktop/aa381043.aspx

  89. Log:
  90.   Can be either a filename or CONSOLE or NUL
  91.   It's optional and if it's omitted defaults to resourcehacker.log.

  92. =======================================================

  93. Example 1: rh_script_myprog_rus.txt

  94.   //This script deletes all Language Neutral (0)
  95.   //string-table, menu and dialog resource items
  96.   //in MyProg.exe before replacing them
  97.   //with Russian language items...

  98.   [FILENAMES]
  99.   Open = MyProg.exe
  100.   Save = MyProg_Rus.exe
  101.   Log  = CONSOLE

  102.   [COMMANDS]
  103.   -delete  MENU,,0
  104.   -delete  DIALOG,,0
  105.   -delete  STRINGTABLE,,0
  106.   -add     MyProg_Rus.res, MENU,,
  107.   -add     MyProg_Rus.res, DIALOG,,
  108.   -add     MyProg_Rus.res, STRINGTABLE,,
  109.   -changelanguage(1049)

  110. Example 2: rh_script_myprog_upd_images.txt

  111.   //This script updates 2 bitmaps and an
  112.   //icon in MyProg.exe ...

  113.   [FILENAMES]
  114.   Exe=    MyProg.exe
  115.   SaveAs= MyProg_Updated.exe

  116.   [COMMANDS]
  117.   -addoverwrite Bitmap128.bmp, BITMAP,128,
  118.   -addoverwrite Bitmap129.bmp, BITMAP,129,0
  119.   -addoverwrite MainIcon.ico, ICONGROUP,MAINICON,0

  120. Example 3: rh_script_myprog_upd_all.txt

  121.   //This script replaces all resources
  122.   //in MyProg.exe with all the resources
  123.   //in MyProgNew.res

  124.   [FILENAMES]
  125.   Exe=    MyProg.exe
  126.   SaveAs= MyProg_Updated.exe

  127.   [COMMANDS]
  128.   -delete  ,,,            //delete all resources before...
  129.   -add MyProgNew.res ,,,  //adding all the new resources
复制代码

点评

好的,了解了 只是作为命令行运行的话,其体积本身太大了些。有没有其他小巧的?  详情 回复 发表于 6 天前
回复

使用道具 举报

11#
发表于 6 天前 | 只看该作者
YWFhYmJi 发表于 2025-7-13 14:41
可以的,命令行运行

可以得到用法帮助。


好的,了解了

只是作为命令行运行的话,其体积本身太大了些。有没有其他小巧的?
回复

使用道具 举报

12#
发表于 6 天前 | 只看该作者
martin313 发表于 2025-7-13 15:08
好的,了解了

只是作为命令行运行的话,其体积本身太大了些。有没有其他小巧的?

你可以换一个旧版的Resource Hacker并使用UPX压缩,这样体积会小很多。

点评

好的,谢谢 但暂时放弃了  详情 回复 发表于 6 天前
回复

使用道具 举报

13#
发表于 6 天前 | 只看该作者
YWFhYmJi 发表于 2025-7-13 15:23
你可以换一个旧版的Resource Hacker并使用UPX压缩,这样体积会小很多。


好的,谢谢

但暂时放弃了
回复

使用道具 举报

14#
 楼主| 发表于 6 天前 | 只看该作者
YWFhYmJi 发表于 2025-7-13 08:06
这个程序加了一个upx壳,先脱壳之后再替换图标没有问题。

谢谢解答 这对我来说太难了 不知道有没有傻瓜点的工具
回复

使用道具 举报

15#
发表于 6 天前 | 只看该作者
感谢分享!
回复

使用道具 举报

16#
发表于 6 天前 | 只看该作者
a20120227 发表于 2025-7-13 19:48
谢谢解答 这对我来说太难了 不知道有没有傻瓜点的工具

upx官方工具直接就可以脱壳,下载upx工具之后运行upx -d "MyBrowser.exe"可以脱壳,脱壳之后就可以用Resource Hacker修改了。

upx工具链接:github.com/upx/upx/releases/download/v5.0.1/upx-5.0.1-win64.zip
如果github上不去,我在网盘上也传了一份upx:pan.huang1111.cn/s/4RPQRTg
如果实在不想脱壳,我在网盘传了一份已经脱好壳的MyBrowser.exe文件(这个文件脱壳前后杀软都报毒,加了一层压缩,无密码):pan.huang1111.cn/s/5XP3BUl?password=upxd

点评

很好用非常感谢  详情 回复 发表于 6 天前

评分

参与人数 1无忧币 +1 收起 理由
a20120227 + 1 很给力!

查看全部评分

回复

使用道具 举报

17#
发表于 6 天前 | 只看该作者

感谢分享!
回复

使用道具 举报

18#
 楼主| 发表于 6 天前 | 只看该作者
YWFhYmJi 发表于 2025-7-13 19:56
upx官方工具直接就可以脱壳,下载upx工具之后运行upx -d "MyBrowser.exe"可以脱壳,脱壳之后就可以用Reso ...

很好用非常感谢
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|Archiver|捐助支持|无忧启动 ( 闽ICP备05002490号-1 )

闽公网安备 35020302032614号

GMT+8, 2025-7-19 21:46

Powered by Discuz! X3.3

© 2001-2017 Comsenz Inc.

快速回复 返回顶部 返回列表