中国DOS联盟论坛

China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --
Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
Guest | Log in | Register | Members | Search | China DOS Union
中国DOS联盟论坛
The time now is 2026-08-15 16:12
47,813 topics / 349,903 posts / today 1 new / 48,257 members
DOS疑难解答 & 问题讨论 (解答室) » Making regedit.exe "lose weight"
Printable Version  1,024 / 4
Floor1 Roy Posted 2003-04-11 00:00
管理员 Posts 1,633 Credits 4,869
A lot of people would like to put regedit.exe onto a boot disk, so that they can back up and restore the registry in DOS.
But putting a Windows program onto a boot disk, isn't that too much of a waste of space?
Now I'll teach everyone a method-----trimming down regedit.exe.
Some people may ask: wouldn't it be enough to compress it with UPX or PKLite?
But regedit.exe is not an ordinary executable.
UPX will only compress the Windows (PE) part,
while PKLite will make regedit.exe unable to run normally.
Actually, the Windows (PE) part is nothing but garbage in DOS,
so we can remove it.
Originally, regedit.exe in Windows 98SE is 122,880 bytes in size.
After "losing weight" it is only 41,049 btyes.
Then after using epack it is only 30,306 btyes.
I'm attaching my result hereopen attachment
Floor2 如是大师 Posted 2003-04-11 00:00
元老会员 Posts 3,351 Credits 9,654 From 湖北
Thanks so much, could you do the same with msd too?


Floor3 Roy Posted 2003-04-11 00:00
管理员 Posts 1,633 Credits 4,869
MSD is not a DOS/WIN32 dual-purpose program
Floor4 Wengier Posted 2003-04-12 00:00
系统支持 Posts 10,521 Credits 27,736
Of course MSD can't use this method. Also, besides ePack, will COMPREXE work?
Floor5 Roy Posted 2003-04-12 00:00
管理员 Posts 1,633 Credits 4,869
I tried it, it doesn't work.
But ePack+aPack does work.
[ Contact the Union admin team - 中国DOS联盟 - Standard version ]
Sponsored by ifanr Inc | © 2001–2023