China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --

Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
DOS stands for freedom, openness and progress. Let us work hard, learn from the openness and GNU spirit of FreeDOS and Linux, and together build and grow a free GNU GPL world!

中国DOS联盟论坛
The time now is 2026-06-25 18:44
中国DOS联盟论坛 » DOS疑难解答 & 问题讨论 (解答室) » Making regedit.exe "lose weight" View 954 Replies 4
Original Poster Posted 2003-04-11 00:00 ·  中国 香港
管理员
★★★★
專業島民
Credits 4,869
Posts 1,633
Joined 2002-12-10 00:00
23-year member
UID 465
Gender Male
Status Offline
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
我的網站:http://mw16.2ya.com/ 我的網誌: http://scrappedblog.blogspot.com/
~
我的Winamp正在播放的歌曲:
Floor 2 Posted 2003-04-11 00:00 ·  中国 湖北 武汉 电信
元老会员
★★★★★
步行的人
Credits 9,654
Posts 3,351
Joined 2003-03-11 00:00
23-year member
UID 1113
Gender Male
From 湖北
Status Offline
Thanks so much, could you do the same with msd too?


弄花香满衣,掬水月在手。
明月鹭鸟飞, 芦花白马走。
我自一过后,野渡现横舟。
青云碧空在,净瓶水不流。
http://dos.e-stone.cn/guestbook/index.asp
======中國DOS聯盟=====
我的新网页http://rsds.7i24.com欢迎光顾
Floor 3 Posted 2003-04-11 00:00 ·  中国 香港 有线宽频用户
管理员
★★★★
專業島民
Credits 4,869
Posts 1,633
Joined 2002-12-10 00:00
23-year member
UID 465
Gender Male
Status Offline
MSD is not a DOS/WIN32 dual-purpose program
我的網站:http://mw16.2ya.com/ 我的網誌: http://scrappedblog.blogspot.com/
~
我的Winamp正在播放的歌曲:
Floor 4 Posted 2003-04-12 00:00 ·  美国 肯塔基州 费耶特县 列克星敦 Charter_Communications
系统支持
★★★★★★
“新DOS时代”站长
Credits 27,736
Posts 10,521
Joined 2002-10-09 12:00
23-year member
UID 9
Status Offline
Of course MSD can't use this method. Also, besides ePack, will COMPREXE work?
Wengier - 新DOS时代

欢迎大家来到我的“新DOS时代”网站,里面有各类DOS软件和资料,地址:
http://wendos.mycool.net/

E-Mail & MSN: wengierwu AT hotmail.com (最近比较忙,有事请联系DOSroot和雨露,谢谢!)

Floor 5 Posted 2003-04-12 00:00 ·  中国 香港 有线宽频用户
管理员
★★★★
專業島民
Credits 4,869
Posts 1,633
Joined 2002-12-10 00:00
23-year member
UID 465
Gender Male
Status Offline
I tried it, it doesn't work.
But ePack+aPack does work.
我的網站:http://mw16.2ya.com/ 我的網誌: http://scrappedblog.blogspot.com/
~
我的Winamp正在播放的歌曲:
Forum Jump: